AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TPCFindGenTracks Class Reference

Public Member Functions

 TPCFindGenTracks ()
 
 TPCFindGenTracks (char *fnHits, char *fnDigits="tpc.digits.root", char *fnRes="genTracks.root", Int_t nEvents=1, Int_t firstEvent=0)
 
virtual ~TPCFindGenTracks ()
 
void Reset ()
 
Int_t Exec ()
 
Int_t Exec (Int_t nEvents, Int_t firstEventNr)
 
void CreateTreeGenTracks ()
 
void CloseOutputFile ()
 
Int_t TreeKLoop ()
 
Int_t TreeTRLoop ()
 
Int_t TreeDLoop ()
 
void SetFirstEventNr (Int_t i)
 
void SetNEvents (Int_t i)
 
void SetDebug (Int_t level)
 
Float_t TR2LocalX (AliTrackReference *trackRef, AliTPCParam *paramTPC)
 

Public Attributes

Int_t fDebug
 debug flag 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...
 
Int_t fNParticles
 number of particles in TreeK More...
 
TTree * fTreeGenTracks
 output tree with generated tracks More...
 
char * fFnRes
 output file name with stored tracks More...
 
char * fFnHits
 input file name with hits More...
 
char * fFnDigits
 input file name with digits More...
 
TFile * fFileGenTracks
 output file with stored fTreeGenTracks More...
 
TFile * fFileHits
 input file with hits More...
 
TFile * fFileTreeD
 input file with digits More...
 
digitRowfDigitRow
 pointer to the object saved in Branch More...
 
digitRowfContainerDigitRow
 big container for partial information More...
 
AliTrackReference * fTrackRef
 track reference saved in the output tree More...
 
AliTrackReference * fContainerTR
 big container for partial information More...
 
Int_t * fIndexTR
 index of particle label in the fContainerTR More...
 
Int_t fLastIndexTR
 last used index in fIndexTR More...
 
AliTPCParamfParamTPC
 AliTPCParam. More...
 
Double_t fVPrim [3]
 primary vertex position More...
 
Double_t fVDist [4]
 distance of the particle vertex from primary vertex More...
 
TParticle * fParticle
 generated particle 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...
 

Static Private Attributes

static const Int_t seedRow11 = 158
 nRowUp - 1 More...
 
static const Int_t seedRow12 = 139
 nRowUp - 1 - (Int_t) 0.125*nRowUp More...
 
static const Int_t seedRow21 = 149
 seedRow11 - shift More...
 
static const Int_t seedRow22 = 130
 seedRow12 - shift More...
 
static const Double_t kRaddeg = 180./TMath::Pi()
 
static const Int_t fgMaxIndexTR = 50000
 maximum number of tracks with a track ref More...
 
static const Int_t fgMaxParticles = 2000000
 maximum number of generated particles More...
 
static const Double_t fgPtCut = .001
 do not store particles with generated pT less than this More...
 
static const Float_t fgTrackRefLocalXMax = 82.95
 
static const Float_t fgTrackRefLocalXMaxDelta = 500.
 

Detailed Description

Definition at line 392 of file AliTPCCmpNG.C.

Constructor & Destructor Documentation

TPCFindGenTracks::TPCFindGenTracks ( )
TPCFindGenTracks::TPCFindGenTracks ( char *  fnHits,
char *  fnDigits = "tpc.digits.root",
char *  fnRes = "genTracks.root",
Int_t  nEvents = 1,
Int_t  firstEvent = 0 
)

Definition at line 475 of file AliTPCCmpNG.C.

TPCFindGenTracks::~TPCFindGenTracks ( )
virtual

Definition at line 514 of file AliTPCCmpNG.C.

Member Function Documentation

void TPCFindGenTracks::CloseOutputFile ( )

Definition at line 617 of file AliTPCCmpNG.C.

Referenced by Exec().

void TPCFindGenTracks::CreateTreeGenTracks ( )

Definition at line 590 of file AliTPCCmpNG.C.

Referenced by Exec().

Int_t TPCFindGenTracks::Exec ( )

Definition at line 527 of file AliTPCCmpNG.C.

Referenced by Exec().

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

Definition at line 519 of file AliTPCCmpNG.C.

void TPCFindGenTracks::Reset ( )

Definition at line 488 of file AliTPCCmpNG.C.

Referenced by TPCFindGenTracks().

void TPCFindGenTracks::SetDebug ( Int_t  level)
inline

Definition at line 411 of file AliTPCCmpNG.C.

void TPCFindGenTracks::SetFirstEventNr ( Int_t  i)
inline

Definition at line 409 of file AliTPCCmpNG.C.

void TPCFindGenTracks::SetNEvents ( Int_t  i)
inline

Definition at line 410 of file AliTPCCmpNG.C.

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

Definition at line 833 of file AliTPCCmpNG.C.

Referenced by TreeTRLoop().

Int_t TPCFindGenTracks::TreeDLoop ( )

open the file with treeD loop over all entries there and save information about some tracks

Definition at line 702 of file AliTPCCmpNG.C.

Referenced by Exec().

Int_t TPCFindGenTracks::TreeKLoop ( )

open the file with treeK loop over all entries there and save information about some tracks

Definition at line 632 of file AliTPCCmpNG.C.

Referenced by Exec().

Int_t TPCFindGenTracks::TreeTRLoop ( )

loop over TrackReferences and store the first one for each track

Definition at line 769 of file AliTPCCmpNG.C.

Referenced by Exec().

Member Data Documentation

digitRow* TPCFindGenTracks::fContainerDigitRow

big container for partial information

Definition at line 431 of file AliTPCCmpNG.C.

Referenced by Exec(), Reset(), TreeDLoop(), and TreeKLoop().

AliTrackReference* TPCFindGenTracks::fContainerTR

big container for partial information

Definition at line 433 of file AliTPCCmpNG.C.

Referenced by Exec(), Reset(), TreeKLoop(), and TreeTRLoop().

Int_t TPCFindGenTracks::fDebug

debug flag

Definition at line 417 of file AliTPCCmpNG.C.

Referenced by Exec(), Reset(), SetDebug(), TreeDLoop(), TreeKLoop(), and TreeTRLoop().

digitRow* TPCFindGenTracks::fDigitRow

pointer to the object saved in Branch

Definition at line 430 of file AliTPCCmpNG.C.

Referenced by CreateTreeGenTracks(), Exec(), Reset(), and TreeKLoop().

Int_t TPCFindGenTracks::fDigitsInSeed

digits in the default seed rows

Definition at line 447 of file AliTPCCmpNG.C.

Referenced by CreateTreeGenTracks(), and TreeKLoop().

Int_t TPCFindGenTracks::fEventNr

current event number

Definition at line 418 of file AliTPCCmpNG.C.

Referenced by CreateTreeGenTracks(), Exec(), Reset(), TPCFindGenTracks(), TreeDLoop(), and TreeKLoop().

TFile* TPCFindGenTracks::fFileGenTracks

output file with stored fTreeGenTracks

Definition at line 427 of file AliTPCCmpNG.C.

Referenced by CloseOutputFile(), CreateTreeGenTracks(), and Reset().

TFile* TPCFindGenTracks::fFileHits

input file with hits

Definition at line 428 of file AliTPCCmpNG.C.

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

TFile* TPCFindGenTracks::fFileTreeD

input file with digits

Definition at line 429 of file AliTPCCmpNG.C.

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

Int_t TPCFindGenTracks::fFirstEventNr

first event to process

Definition at line 421 of file AliTPCCmpNG.C.

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

char* TPCFindGenTracks::fFnDigits

input file name with digits

Definition at line 426 of file AliTPCCmpNG.C.

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

char* TPCFindGenTracks::fFnHits

input file name with hits

Definition at line 425 of file AliTPCCmpNG.C.

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

char* TPCFindGenTracks::fFnRes

output file name with stored tracks

Definition at line 424 of file AliTPCCmpNG.C.

Referenced by CloseOutputFile(), CreateTreeGenTracks(), Reset(), and TPCFindGenTracks().

const Int_t TPCFindGenTracks::fgMaxIndexTR = 50000
staticprivate

maximum number of tracks with a track ref

Definition at line 458 of file AliTPCCmpNG.C.

Referenced by Exec(), and TreeTRLoop().

const Int_t TPCFindGenTracks::fgMaxParticles = 2000000
staticprivate

maximum number of generated particles

Definition at line 459 of file AliTPCCmpNG.C.

const Double_t TPCFindGenTracks::fgPtCut = .001
staticprivate

do not store particles with generated pT less than this

Definition at line 460 of file AliTPCCmpNG.C.

Referenced by TreeTRLoop().

const Float_t TPCFindGenTracks::fgTrackRefLocalXMax = 82.95
staticprivate

Definition at line 461 of file AliTPCCmpNG.C.

Referenced by TreeTRLoop().

const Float_t TPCFindGenTracks::fgTrackRefLocalXMaxDelta = 500.
staticprivate

Definition at line 462 of file AliTPCCmpNG.C.

Referenced by TreeTRLoop().

Int_t* TPCFindGenTracks::fIndexTR

index of particle label in the fContainerTR

Definition at line 434 of file AliTPCCmpNG.C.

Referenced by Exec(), Reset(), TreeKLoop(), and TreeTRLoop().

Int_t TPCFindGenTracks::fLabel

track label

Definition at line 419 of file AliTPCCmpNG.C.

Referenced by CreateTreeGenTracks(), and TreeKLoop().

Int_t TPCFindGenTracks::fLastIndexTR

last used index in fIndexTR

Definition at line 435 of file AliTPCCmpNG.C.

Referenced by Reset(), and TreeTRLoop().

Int_t TPCFindGenTracks::fNEvents

number of events to process

Definition at line 420 of file AliTPCCmpNG.C.

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

Int_t TPCFindGenTracks::fNParticles

number of particles in TreeK

Definition at line 422 of file AliTPCCmpNG.C.

Referenced by Exec(), TreeDLoop(), TreeKLoop(), and TreeTRLoop().

AliTPCParam* TPCFindGenTracks::fParamTPC

AliTPCParam.

Definition at line 437 of file AliTPCCmpNG.C.

Referenced by Exec(), Reset(), TreeDLoop(), and TreeTRLoop().

TParticle* TPCFindGenTracks::fParticle

generated particle

Definition at line 442 of file AliTPCCmpNG.C.

Referenced by CreateTreeGenTracks(), Reset(), and TreeKLoop().

Int_t TPCFindGenTracks::fRowsTrackLength

last - first row with digit

Definition at line 446 of file AliTPCCmpNG.C.

Referenced by CreateTreeGenTracks(), and TreeKLoop().

Int_t TPCFindGenTracks::fRowsWithDigits

number of rows with digits in the outer sectors

Definition at line 445 of file AliTPCCmpNG.C.

Referenced by CreateTreeGenTracks(), and TreeKLoop().

Int_t TPCFindGenTracks::fRowsWithDigitsInn

number of rows with digits in the inner sectors

Definition at line 444 of file AliTPCCmpNG.C.

Referenced by CreateTreeGenTracks(), and TreeKLoop().

AliTrackReference* TPCFindGenTracks::fTrackRef

track reference saved in the output tree

Definition at line 432 of file AliTPCCmpNG.C.

Referenced by CreateTreeGenTracks(), Reset(), and TreeKLoop().

TTree* TPCFindGenTracks::fTreeGenTracks

output tree with generated tracks

Definition at line 423 of file AliTPCCmpNG.C.

Referenced by CloseOutputFile(), CreateTreeGenTracks(), Exec(), Reset(), and TreeKLoop().

Double_t TPCFindGenTracks::fVDist[4]

distance of the particle vertex from primary vertex

Definition at line 440 of file AliTPCCmpNG.C.

Referenced by CreateTreeGenTracks(), and TreeKLoop().

Double_t TPCFindGenTracks::fVPrim[3]

primary vertex position

Definition at line 439 of file AliTPCCmpNG.C.

Referenced by Reset(), and TreeKLoop().

const Double_t TPCFindGenTracks::kRaddeg = 180./TMath::Pi()
staticprivate

Definition at line 456 of file AliTPCCmpNG.C.

const Int_t TPCFindGenTracks::seedRow11 = 158
staticprivate

nRowUp - 1

Definition at line 452 of file AliTPCCmpNG.C.

Referenced by TreeKLoop().

const Int_t TPCFindGenTracks::seedRow12 = 139
staticprivate

nRowUp - 1 - (Int_t) 0.125*nRowUp

Definition at line 453 of file AliTPCCmpNG.C.

Referenced by TreeKLoop().

const Int_t TPCFindGenTracks::seedRow21 = 149
staticprivate

seedRow11 - shift

Definition at line 454 of file AliTPCCmpNG.C.

Referenced by TreeKLoop().

const Int_t TPCFindGenTracks::seedRow22 = 130
staticprivate

seedRow12 - shift

Definition at line 455 of file AliTPCCmpNG.C.

Referenced by TreeKLoop().


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