Line data Source code
1 : //-*- Mode: C++ -*-
2 : // ************************************************************************
3 : // This file is property of and copyright by the ALICE HLT Project *
4 : // ALICE Experiment at CERN, All rights reserved. *
5 : // See cxx source for full Copyright notice *
6 : // *
7 : //*************************************************************************
8 :
9 : #ifndef ALIHLTTPCCAMCTRACK_H
10 : #define ALIHLTTPCCAMCTRACK_H
11 :
12 : #include "AliHLTTPCCADef.h"
13 :
14 : class TParticle;
15 :
16 :
17 : /**
18 : * @class AliHLTTPCCAMCTrack
19 : * store MC track information for AliHLTTPCCAPerformance
20 : */
21 : class AliHLTTPCCAMCTrack
22 : {
23 : public:
24 :
25 : AliHLTTPCCAMCTrack();
26 : AliHLTTPCCAMCTrack( const TParticle *part );
27 :
28 : void SetTPCPar( float X, float Y, float Z, float Px, float Py, float Pz );
29 :
30 0 : int PDG() const { return fPDG;}
31 0 : const double *Par() const { return fPar; }
32 0 : const double *TPCPar() const { return fTPCPar; }
33 0 : double P() const { return fP; }
34 0 : double Pt() const { return fPt; }
35 :
36 0 : int NHits() const { return fNHits;}
37 0 : int NMCPoints() const { return fNMCPoints;}
38 0 : int FirstMCPointID() const { return fFirstMCPointID;}
39 0 : int NReconstructed() const { return fNReconstructed; }
40 0 : int Set() const { return fSet; }
41 0 : int NTurns() const { return fNTurns; }
42 :
43 0 : void SetP ( float v ) { fP = v; }
44 0 : void SetPt( float v ) { fPt = v; }
45 0 : void SetPDG( int v ) { fPDG = v; }
46 0 : void SetPar( int i, double v ) { fPar[i] = v; }
47 0 : void SetTPCPar( int i, double v ) { fTPCPar[i] = v; }
48 0 : void SetNHits( int v ) { fNHits = v; }
49 0 : void SetNMCPoints( int v ) { fNMCPoints = v; }
50 0 : void SetFirstMCPointID( int v ) { fFirstMCPointID = v;}
51 0 : void SetNReconstructed( int v ) { fNReconstructed = v; }
52 0 : void SetSet( int v ) { fSet = v; }
53 0 : void SetNTurns( int v ) { fNTurns = v; }
54 :
55 : protected:
56 :
57 : int fPDG; //* particle pdg code
58 : double fPar[7]; //* x,y,z,ex,ey,ez,q/p
59 : double fTPCPar[7]; //* x,y,z,ex,ey,ez,q/p at TPC entrance (x=y=0 means no information)
60 : double fP, fPt; //* momentum and transverse momentum
61 : int fNHits; //* N TPC clusters
62 : int fNMCPoints; //* N MC points
63 : int fFirstMCPointID; //* id of the first MC point in the points array
64 : int fNReconstructed; //* how many times is reconstructed
65 : int fSet; //* set of tracks 0-OutSet, 1-ExtraSet, 2-RefSet
66 : int fNTurns; //* N of turns in the current sector
67 :
68 : };
69 :
70 : #endif //AliHLTTPCCAMCTrack
|