AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TPCCmpTr Class Reference

Public Member Functions

 TPCCmpTr ()
 
 TPCCmpTr (char *fnRecTracks, char *fnGenTracks="genTracks.root", char *fnCmpRes="cmpTracks.root", char *fnGalice="galice.root", Int_t nEvents=1, Int_t firstEvent=0)
 
virtual ~TPCCmpTr ()
 
void Reset ()
 
Int_t Exec ()
 
Int_t Exec (Int_t nEvents, Int_t firstEventNr)
 
void CreateTreeCmp ()
 
void CloseOutputFile ()
 
Bool_t ConnectGenTree ()
 
Int_t TreeGenLoop (Int_t eventNr)
 
Int_t TreeTLoop (Int_t eventNr)
 
void SetFirstEventNr (Int_t i)
 
void SetNEvents (Int_t i)
 
void SetDebug (Int_t level)
 
Float_t TR2LocalX (AliTrackReference *trackRef, AliTPCParam *paramTPC)
 

Private Attributes

digitRowfDigitRow
 pointer to the object saved in Branch More...
 
Int_t fEventNr
 current event number More...
 
Int_t fLabel
 track label More...
 
Int_t fNEvents
 number of events to process More...
 
Int_t fFirstEventNr
 first event to process More...
 
char * fFnCmp
 output file name with cmp tracks More...
 
TFile * fFileCmp
 output file with cmp tracks More...
 
TTree * fTreeCmp
 output tree with cmp tracks More...
 
char * fFnGenTracks
 input file name with gen tracks More...
 
TFile * fFileGenTracks
 
TTree * fTreeGenTracks
 
char * fFnHits
 input file name with gAlice object (needed for B) More...
 
TFile * fFileHits
 input file with gAlice More...
 
char * fFnRecTracks
 input file name with tpc rec. tracks More...
 
TFile * fFileRecTracks
 input file with reconstructed tracks More...
 
TTree * fTreeRecTracks
 tree with reconstructed tracks More...
 
AliTPCtrack * fTPCTrack
 pointer to TPC track to connect branch More...
 
Int_t * fIndexRecTracks
 index of particle label in the TreeT_TPC More...
 
Int_t fRowsWithDigitsInn
 number of rows with digits in the inner sectors More...
 
Int_t fRowsWithDigits
 number of rows with digits in the outer sectors More...
 
Int_t fRowsTrackLength
 last - first row with digit More...
 
Int_t fDigitsInSeed
 digits in the default seed rows More...
 
TParticle * fParticle
 generated particle More...
 
Double_t fVDist [4]
 distance of the particle vertex from primary vertex More...
 
AliTrackReference * fTrackRef
 track reference saved in the output tree More...
 
Int_t fReconstructed
 flag if track was reconstructed More...
 
AliTPCParamfParamTPC
 AliTPCParam. More...
 
Int_t fNParticles
 number of particles in the input tree genTracks More...
 
Int_t fDebug
 debug flag More...
 
Int_t fNextTreeGenEntryToRead
 last entry already read from genTracks tree More...
 
TPCGenInfofGenInfo
 container for all the details More...
 
Double_t fRecPhi
 reconstructed phi angle (0;2*kPI) More...
 
Double_t fLambda
 reconstructed More...
 
Double_t fRecPt_1
 reconstructed More...
 
Float_t fdEdx
 reconstructed dEdx More...
 

Detailed Description

Definition at line 852 of file AliTPCCmpNG.C.

Constructor & Destructor Documentation

TPCCmpTr::TPCCmpTr ( )

Definition at line 933 of file AliTPCCmpNG.C.

TPCCmpTr::TPCCmpTr ( char *  fnRecTracks,
char *  fnGenTracks = "genTracks.root",
char *  fnCmpRes = "cmpTracks.root",
char *  fnGalice = "galice.root",
Int_t  nEvents = 1,
Int_t  firstEvent = 0 
)

Definition at line 939 of file AliTPCCmpNG.C.

TPCCmpTr::~TPCCmpTr ( )
virtual

Definition at line 983 of file AliTPCCmpNG.C.

Member Function Documentation

void TPCCmpTr::CloseOutputFile ( )

Definition at line 1127 of file AliTPCCmpNG.C.

Referenced by Exec().

Bool_t TPCCmpTr::ConnectGenTree ( )

connect all branches from the genTracksTree use the same variables as for the new cmp tree, it may work

Definition at line 1063 of file AliTPCCmpNG.C.

Referenced by Exec().

void TPCCmpTr::CreateTreeCmp ( )

Definition at line 1097 of file AliTPCCmpNG.C.

Referenced by Exec().

Int_t TPCCmpTr::Exec ( )

Definition at line 996 of file AliTPCCmpNG.C.

Referenced by Exec().

Int_t TPCCmpTr::Exec ( Int_t  nEvents,
Int_t  firstEventNr 
)

Definition at line 988 of file AliTPCCmpNG.C.

void TPCCmpTr::Reset ( )

Definition at line 955 of file AliTPCCmpNG.C.

Referenced by TPCCmpTr().

void TPCCmpTr::SetDebug ( Int_t  level)
inline

Definition at line 872 of file AliTPCCmpNG.C.

void TPCCmpTr::SetFirstEventNr ( Int_t  i)
inline

Definition at line 870 of file AliTPCCmpNG.C.

void TPCCmpTr::SetNEvents ( Int_t  i)
inline

Definition at line 871 of file AliTPCCmpNG.C.

Float_t TPCCmpTr::TR2LocalX ( AliTrackReference *  trackRef,
AliTPCParam paramTPC 
)

Definition at line 1142 of file AliTPCCmpNG.C.

Referenced by TreeGenLoop().

Int_t TPCCmpTr::TreeGenLoop ( Int_t  eventNr)

loop over all entries for a given event, find corresponding rec. track and store in the fTreeCmp

Definition at line 1191 of file AliTPCCmpNG.C.

Referenced by Exec().

Int_t TPCCmpTr::TreeTLoop ( Int_t  eventNr)

loop over all TPC reconstructed tracks and store info in memory

Definition at line 1153 of file AliTPCCmpNG.C.

Referenced by Exec().

Member Data Documentation

Int_t TPCCmpTr::fDebug
private

debug flag

Definition at line 915 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), Exec(), Reset(), SetDebug(), TreeGenLoop(), and TreeTLoop().

Float_t TPCCmpTr::fdEdx
private

reconstructed dEdx

Definition at line 923 of file AliTPCCmpNG.C.

Referenced by TreeGenLoop().

digitRow* TPCCmpTr::fDigitRow
private

pointer to the object saved in Branch

Definition at line 879 of file AliTPCCmpNG.C.

Referenced by CreateTreeCmp(), Exec(), and Reset().

Int_t TPCCmpTr::fDigitsInSeed
private

digits in the default seed rows

Definition at line 906 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), CreateTreeCmp(), and Reset().

Int_t TPCCmpTr::fEventNr
private

current event number

Definition at line 880 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), CreateTreeCmp(), Exec(), Reset(), TPCCmpTr(), and TreeGenLoop().

TFile* TPCCmpTr::fFileCmp
private

output file with cmp tracks

Definition at line 886 of file AliTPCCmpNG.C.

Referenced by CloseOutputFile(), and CreateTreeCmp().

TFile* TPCCmpTr::fFileGenTracks
private

Definition at line 890 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), Reset(), and TreeGenLoop().

TFile* TPCCmpTr::fFileHits
private

input file with gAlice

Definition at line 894 of file AliTPCCmpNG.C.

Referenced by Exec(), and Reset().

TFile* TPCCmpTr::fFileRecTracks
private

input file with reconstructed tracks

Definition at line 897 of file AliTPCCmpNG.C.

Referenced by Reset(), and TreeTLoop().

Int_t TPCCmpTr::fFirstEventNr
private

first event to process

Definition at line 883 of file AliTPCCmpNG.C.

Referenced by Exec(), SetFirstEventNr(), and TPCCmpTr().

char* TPCCmpTr::fFnCmp
private

output file name with cmp tracks

Definition at line 885 of file AliTPCCmpNG.C.

Referenced by CloseOutputFile(), CreateTreeCmp(), Reset(), and TPCCmpTr().

char* TPCCmpTr::fFnGenTracks
private

input file name with gen tracks

Definition at line 889 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), and TPCCmpTr().

char* TPCCmpTr::fFnHits
private

input file name with gAlice object (needed for B)

Definition at line 893 of file AliTPCCmpNG.C.

Referenced by Exec(), Reset(), and TPCCmpTr().

char* TPCCmpTr::fFnRecTracks
private

input file name with tpc rec. tracks

Definition at line 896 of file AliTPCCmpNG.C.

Referenced by Reset(), TPCCmpTr(), and TreeTLoop().

TPCGenInfo* TPCCmpTr::fGenInfo
private

container for all the details

Definition at line 918 of file AliTPCCmpNG.C.

Referenced by Reset().

Int_t* TPCCmpTr::fIndexRecTracks
private

index of particle label in the TreeT_TPC

Definition at line 901 of file AliTPCCmpNG.C.

Referenced by Exec(), TreeGenLoop(), and TreeTLoop().

Int_t TPCCmpTr::fLabel
private

track label

Definition at line 881 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), CreateTreeCmp(), and TreeGenLoop().

Double_t TPCCmpTr::fLambda
private

reconstructed

Definition at line 921 of file AliTPCCmpNG.C.

Referenced by TreeGenLoop().

Int_t TPCCmpTr::fNEvents
private

number of events to process

Definition at line 882 of file AliTPCCmpNG.C.

Referenced by Exec(), Reset(), SetNEvents(), and TPCCmpTr().

Int_t TPCCmpTr::fNextTreeGenEntryToRead
private

last entry already read from genTracks tree

Definition at line 917 of file AliTPCCmpNG.C.

Referenced by Exec(), and TreeGenLoop().

Int_t TPCCmpTr::fNParticles
private

number of particles in the input tree genTracks

Definition at line 914 of file AliTPCCmpNG.C.

Referenced by Exec(), and TreeGenLoop().

AliTPCParam* TPCCmpTr::fParamTPC
private

AliTPCParam.

Definition at line 912 of file AliTPCCmpNG.C.

Referenced by Exec(), Reset(), and TreeGenLoop().

TParticle* TPCCmpTr::fParticle
private

generated particle

Definition at line 907 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), CreateTreeCmp(), and Reset().

Int_t TPCCmpTr::fReconstructed
private

flag if track was reconstructed

Definition at line 911 of file AliTPCCmpNG.C.

Referenced by CreateTreeCmp(), and TreeGenLoop().

Double_t TPCCmpTr::fRecPhi
private

reconstructed phi angle (0;2*kPI)

Definition at line 920 of file AliTPCCmpNG.C.

Referenced by TreeGenLoop().

Double_t TPCCmpTr::fRecPt_1
private

reconstructed

Definition at line 922 of file AliTPCCmpNG.C.

Referenced by TreeGenLoop().

Int_t TPCCmpTr::fRowsTrackLength
private

last - first row with digit

Definition at line 905 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), CreateTreeCmp(), and Reset().

Int_t TPCCmpTr::fRowsWithDigits
private

number of rows with digits in the outer sectors

Definition at line 904 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), CreateTreeCmp(), and Reset().

Int_t TPCCmpTr::fRowsWithDigitsInn
private

number of rows with digits in the inner sectors

Definition at line 903 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), CreateTreeCmp(), and Reset().

AliTPCtrack* TPCCmpTr::fTPCTrack
private

pointer to TPC track to connect branch

Definition at line 900 of file AliTPCCmpNG.C.

Referenced by CreateTreeCmp(), Reset(), TreeGenLoop(), and TreeTLoop().

AliTrackReference* TPCCmpTr::fTrackRef
private

track reference saved in the output tree

Definition at line 910 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), CreateTreeCmp(), Reset(), and TreeGenLoop().

TTree* TPCCmpTr::fTreeCmp
private

output tree with cmp tracks

Definition at line 887 of file AliTPCCmpNG.C.

Referenced by CloseOutputFile(), CreateTreeCmp(), Exec(), Reset(), and TreeGenLoop().

TTree* TPCCmpTr::fTreeGenTracks
private

Definition at line 891 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), and TreeGenLoop().

TTree* TPCCmpTr::fTreeRecTracks
private

tree with reconstructed tracks

Definition at line 898 of file AliTPCCmpNG.C.

Referenced by Exec(), Reset(), TreeGenLoop(), and TreeTLoop().

Double_t TPCCmpTr::fVDist[4]
private

distance of the particle vertex from primary vertex

Definition at line 908 of file AliTPCCmpNG.C.

Referenced by ConnectGenTree(), and CreateTreeCmp().


The documentation for this class was generated from the following file: