]>
Commit | Line | Data |
---|---|---|
23904d16 | 1 | #include "AliPHOSTracker.h" |
4b598bb1 | 2 | #include "AliPHOSClusterizerv1.h" |
23904d16 | 3 | #include "AliPHOSTrackSegmentMakerv1.h" |
4b598bb1 | 4 | #include "AliPHOSTrackSegmentMakerv2.h" |
23904d16 | 5 | #include "AliPHOSPIDv1.h" |
6 | #include "AliRunLoader.h" | |
7 | #include "AliESD.h" | |
8 | ||
9 | //------------------------------------------------------------------------- | |
10 | // PHOS tracker. | |
11 | // Matches ESD tracks with the PHOS and makes the PID. | |
12 | // Currently, has only one function implemented : PropagateBack(AliESD*) | |
13 | //------------------------------------------------------------------------- | |
14 | ||
15 | ClassImp(AliPHOSTracker) | |
16 | ||
17 | Bool_t AliPHOSTracker::fgDebug = kFALSE ; | |
18 | ||
19 | Int_t AliPHOSTracker::PropagateBack(AliESD *esd) { | |
20 | // Called by AliReconstruction | |
21 | // Creates the tracksegments and Recparticles | |
22 | // Makes the PID | |
23 | ||
24 | Int_t eventNumber = fRunLoader->GetEventNumber() ; | |
25 | ||
26 | TString headerFile(fRunLoader->GetFileName()) ; | |
27 | TString branchName(fRunLoader->GetEventFolder()->GetName()) ; | |
4b598bb1 | 28 | |
23904d16 | 29 | AliPHOSTrackSegmentMakerv1 tsm(headerFile, branchName); |
4b598bb1 | 30 | // AliPHOSTrackSegmentMakerv2 tsm(headerFile, branchName); |
23904d16 | 31 | tsm.SetESD(esd) ; |
32 | AliPHOSPIDv1 pid(headerFile, branchName); | |
4b598bb1 | 33 | pid.SetESD(esd) ; |
34 | ||
c1247f84 | 35 | //PH SetDebug() ; |
23904d16 | 36 | |
37 | // do current event; the loop over events is done by AliReconstruction::Run() | |
38 | tsm.SetEventRange(eventNumber, eventNumber) ; | |
39 | pid.SetEventRange(eventNumber, eventNumber) ; | |
40 | if ( Debug() ) { | |
41 | tsm.ExecuteTask("deb all") ; | |
42 | pid.ExecuteTask("deb all") ; | |
43 | } | |
44 | else { | |
45 | tsm.ExecuteTask("") ; | |
46 | pid.ExecuteTask("") ; | |
47 | } | |
48 | ||
49 | return 0; | |
50 | } |