Added ability to store original parton type - by default set to 0
[u/mrichter/AliRoot.git] / PHOS / AliPHOSReconstructor.h
CommitLineData
f444a19f 1#ifndef ALIPHOSRECONSTRUCTOR_H
2#define ALIPHOSRECONSTRUCTOR_H
d15a28e7 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6ad0bfa0 6/* $Id$ */
7
b2a60966 8//_________________________________________________________________________
9a6ec61a 9// Wrapping class for reconstruction
a3dfe79c 10//*--
7acf6008 11//*-- Author: Gines Martinez & Yves Schutz (SUBATECH)
12//*-- Dmitri Peressounko (SUBATECH & Kurchatov Institute)
d15a28e7 13
14// --- ROOT system ---
15
7acf6008 16#include "TTask.h"
17class AliPHOSDigitizer ;
18class AliPHOSClusterizer ;
19class AliPHOSTrackSegmentMaker ;
20class AliPHOSPID ;
21class AliPHOSSDigitizer ;
35293055 22class AliESD ;
d15a28e7 23
24// --- Standard library ---
25
26// --- AliRoot header files ---
27
f444a19f 28class AliPHOSReconstructor : public TTask {
d15a28e7 29
30public:
31
f444a19f 32 AliPHOSReconstructor() ; //ctor
33 AliPHOSReconstructor(const char * headerFile, const char * branchName = "Default",const TString taskName="CTP");
34 AliPHOSReconstructor(const AliPHOSReconstructor & rec) : TTask(rec) {
7acf6008 35 // cpy ctor:
839ffcb3 36 // requested by the Coding Convention
f1611b7c 37 Fatal("cpy ctor", "not implemented") ;
839ffcb3 38 }
39
f444a19f 40 virtual ~AliPHOSReconstructor() ;
d15a28e7 41
35293055 42 virtual void Exec(Option_t *) ;
43 void Clusters2Tracks(Int_t ievent, AliESD *event);
d15a28e7 44
baef0810 45 AliPHOSClusterizer * GetClusterizer()const { return fClusterizer ; }
46 AliPHOSPID * GetPID() const { return fPID; }
47 AliPHOSTrackSegmentMaker * GetTSMaker() const { return fTSMaker ; }
d7d3b67b 48 void SetEventRange(Int_t first=0, Int_t last=-1) ;
7acf6008 49
90cceaf6 50 void Print()const ;
364de5c6 51
f444a19f 52 AliPHOSReconstructor & operator = (const AliPHOSReconstructor & /*rvalue*/) {
a3dfe79c 53 // assignement operator requested by coding convention but not needed
35293055 54 Fatal("operator =", "not implemented") ;
839ffcb3 55 return *this ;
56 }
57
d15a28e7 58
59private:
7acf6008 60 void Init() ;
61
62private:
d15a28e7 63
81b0fcd1 64 TString fRecPointBranch ; // Title of RecPoints branch
65 TString fTSBranch ; // Title of TrackSegments branch
66 TString fRecPartBranch ; // Title of RecParticles branch
7acf6008 67
68
81b0fcd1 69 AliPHOSClusterizer * fClusterizer ; //! Pointer to AliPHOSClusterizer
70 AliPHOSPID * fPID ; //! Pointer to AliPHOSPID
71 AliPHOSTrackSegmentMaker * fTSMaker ; //! Pointer to AliPHOSTrackSegmentMaker
d7d3b67b 72 Bool_t fIsInitialized ; // kTRUE if reconstructioner is initialized
73 Int_t fFirstEvent; // first event to process
74 Int_t fLastEvent; // last event to process
92862013 75
f444a19f 76 ClassDef(AliPHOSReconstructor,1) // Reconstruction algorithm class (Base Class)
d15a28e7 77
78};
79
f444a19f 80#endif // ALIPHOSRECONSTRUCTOR_H