class AliEMCALGeometry ;
class AliEMCALClusterizer ;
class AliEMCALRecPoint ;
-class AliEMCALTowerRecPoint ;
class AliEMCALTrackSegmentMaker ;
class AliEMCALTrackSegment ;
class AliEMCALPID ;
//=========== Instantiators ================
static AliEMCALGetter * Instance(const char* headerFile,
- const char* version = AliConfig::fgkDefaultEventFolderName,
+ const char* version = AliConfig::GetDefaultEventFolderName(),
Option_t * openingOption = "READ" ) ;
static AliEMCALGetter * Instance() ;
static void Print() ;
// //=========== General information about run ==============
- Bool_t IsLoaded(const TString tree) const { return fLoadingStatus.Contains(tree) ; }
- void SetLoaded(const TString tree) { fLoadingStatus += tree ; }
+ Bool_t IsLoaded(TString tree) const { return fLoadingStatus.Contains(tree) ; }
+ void SetLoaded(TString tree) { fLoadingStatus += tree ; }
Int_t MaxEvent() const ;
Int_t EventNumber() const ;
AliEMCALGeometry * EMCALGeometry() const ;
// //========== Methods to read something from file ==========
- void Event(const Int_t event, const char * opt = "HSDRP") ;
- void Track(const Int_t itrack) ;
+ void Event(Int_t event, const char * opt = "HSDRP") ;
+ void Track(Int_t itrack) ;
// //-----------------now getter's data--------------------------------------
// // AliEMCALCalibrationDB * CalibrationDB(){return fcdb; }
TClonesArray * Primaries(void) ;
TParticle * Primary(Int_t index) const ;
Int_t NPrimaries()const { return fNPrimaries; }
- TParticle * Secondary(const TParticle * p, const Int_t index=1) const ;
+ TParticle * Secondary(const TParticle * p, Int_t index=1) const ;
// //=========== Hits =================
// TTree * TreeH(TString filename="") ;
TClonesArray * Hits(void) const ;
- AliEMCALHit * Hit(const Int_t index) const { return dynamic_cast<AliEMCALHit*>(Hits()->At(index) );}
+ AliEMCALHit * Hit(Int_t index) const { return dynamic_cast<AliEMCALHit*>(Hits()->At(index) );}
TTree * TreeH() const ;
//=========== SDigits ==============
TClonesArray * SDigits() const ;
- AliEMCALDigit * SDigit(const Int_t index) const { return static_cast<AliEMCALDigit *>(SDigits()->At(index)) ;}
+ AliEMCALDigit * SDigit(Int_t index) const { return static_cast<AliEMCALDigit *>(SDigits()->At(index)) ;}
TTree * TreeS() const ;
AliEMCALSDigitizer * SDigitizer() ;
//========== Digits ================
TClonesArray * Digits() const ;
- AliEMCALDigit * Digit(const Int_t index) const { return static_cast<AliEMCALDigit *>(Digits()->At(index)) ;}
+ AliEMCALDigit * Digit(Int_t index) const { return static_cast<AliEMCALDigit *>(Digits()->At(index)) ;}
TTree * TreeD() const ;
AliEMCALDigitizer * Digitizer() ;
TString GetDigitsFileName() const { return EmcalLoader()->GetDigitsFileName() ; }
//========== RecPoints =============
TObjArray * ECARecPoints() const;
- AliEMCALTowerRecPoint * ECARecPoint(const Int_t index) const{ return static_cast<AliEMCALTowerRecPoint *>(ECARecPoints()->At(index)) ;}
+ AliEMCALRecPoint * ECARecPoint(Int_t index) const{ return static_cast<AliEMCALRecPoint *>(ECARecPoints()->At(index)) ;}
TTree * TreeR() const ;
AliEMCALClusterizer * Clusterizer() ;
TString GetRecPointsFileName() const { return EmcalLoader()->GetRecPointsFileName() ; }
//========== TrackSegments TClonesArray * TrackSegments(const char * name = 0) {
TClonesArray * TrackSegments() const ;
- AliEMCALTrackSegment * TrackSegments(const Int_t index) const { return static_cast<AliEMCALTrackSegment *>(TrackSegments()->At(index)) ;}
+ AliEMCALTrackSegment * TrackSegments(Int_t index) const { return static_cast<AliEMCALTrackSegment *>(TrackSegments()->At(index)) ;}
TTree * TreeT() const ;
AliEMCALTrackSegmentMaker * TrackSegmentMaker() ;
TString GetTracksFileName() const { return EmcalLoader()->GetTracksFileName() ; }
//========== RecParticles ===========
TClonesArray * RecParticles() const ;
- AliEMCALRecParticle * RecPaticles(const Int_t index) const { return static_cast<AliEMCALRecParticle *>(RecParticles()->At(index)) ;}
+ AliEMCALRecParticle * RecParticle(Int_t index) const { return static_cast<AliEMCALRecParticle *>(RecParticles()->At(index)) ;}
TTree * TreeP() const ;
AliEMCALPID * PID() ;
TString GetRecParticlesFileName() const { return EmcalLoader()->GetRecParticlesFileName() ; }
TString Version() const { return EmcalLoader()->GetTitle() ; }
AliEMCALLoader * EmcalLoader() const { return fgEmcalLoader ; }
- void Reset() {fgEmcalLoader = 0; fgObjGetter = 0; }
+ void Reset() ;
private:
AliEMCALGetter(const char* headerFile,
- const char* version = AliConfig::fgkDefaultEventFolderName,
+ const char* version = AliConfig::GetDefaultEventFolderName(),
Option_t * openingOption = "READ") ;
Int_t ReadTreeD(void) ;
enum EDataTypes{kHits,kSDigits,kDigits,kRecPoints,kTracks,kNDataTypes};
- ClassDef(AliEMCALGetter,2) // Algorithm class that provides methods to retrieve objects from a list knowing the index
+ ClassDef(AliEMCALGetter,3) // Algorithm class that provides methods to retrieve objects from a list knowing the index
};