Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaVDCTrackID.cxx
Go to the documentation of this file.
1//*-- Author : Ole Hansen 09-Mar-02
2
4//
5// THaVDCTrackID
6//
7// This is a utility class for the VDC tracking classes.
8// It allows unique identification of tracks.
9//
11
12#include "THaVDCTrackID.h"
13#include "THaVDCCluster.h"
14#include "THaVDCPoint.h"
15#include <iostream>
16#include <iomanip>
17
18using namespace std;
19
20//_____________________________________________________________________________
22 const THaVDCPoint* upper)
23 : fLowerU(-1), fLowerV(-1), fUpperU(-1), fUpperV(-1)
24{
25 // Constructor that automatically determines pivot numbers
26 // from the given THaVDCPoints.
27
28 if( lower ) {
29 if( auto* cluster = lower->GetUCluster())
30 fLowerU = cluster->GetPivotWireNum();
31 if( auto* cluster = lower->GetVCluster())
32 fLowerV = cluster->GetPivotWireNum();
33 }
34 if( upper ) {
35 if( auto* cluster = upper->GetUCluster())
36 fUpperU = cluster->GetPivotWireNum();
37 if( auto* cluster = upper->GetVCluster())
38 fUpperV = cluster->GetPivotWireNum();
39 }
40}
41
42//_____________________________________________________________________________
44{
45 // Print ID description
46
47 cout << " "
48 << setw(5) << fLowerU
49 << setw(5) << fLowerV
50 << setw(5) << fUpperU
51 << setw(5) << fUpperV
52 << endl;
53}
const char Option_t
THaVDCCluster * GetVCluster() const
Definition THaVDCPoint.h:29
THaVDCCluster * GetUCluster() const
Definition THaVDCPoint.h:28
virtual void Print(Option_t *opt="") const
STL namespace.
ClassImp(TPyArg)