class AliEMCALGeometry ;
class AliEMCALClusterizer ;
class AliEMCALRecPoint ;
-class AliEMCALTowerRecPoint ;
class AliEMCALTrackSegmentMaker ;
class AliEMCALTrackSegment ;
class AliEMCALPID ;
class AliEMCALGetter : public TObject {
public:
- AliEMCALGetter(){ // ctor: this is a singleton, the ctor should never be called but cint needs it as public
+ AliEMCALGetter() {
+ // ctor: this is a singleton, the ctor should never be called but cint needs it as public
Fatal("ctor", "AliEMCALGetter is a singleton default ctor not callable") ;
}
AliEMCALGetter(const AliEMCALGetter & obj):TObject(obj) {
//=========== Instantiators ================
static AliEMCALGetter * Instance(const char* headerFile,
- const char* version = AliConfig::fgkDefaultEventFolderName,
+ const char* version = AliConfig::GetDefaultEventFolderName(),
Option_t * openingOption = "READ" ) ;
static AliEMCALGetter * Instance() ;
+ void OpenFile(const char* headerFile,
+ const char* version = AliConfig::GetDefaultEventFolderName(),
+ Option_t * openingOption = "READ" );
static void Print() ;
//=========== Primaries ============
// TTree * TreeK(TString filename="") ;
- TClonesArray * Primaries(void) ;
TParticle * Primary(Int_t index) const ;
- Int_t NPrimaries()const { return fNPrimaries; }
+ Int_t NPrimaries() const;
TParticle * Secondary(const TParticle * p, Int_t index=1) const ;
// //=========== Hits =================
//========== RecPoints =============
TObjArray * ECARecPoints() const;
- AliEMCALTowerRecPoint * ECARecPoint(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() ; }
//========== RecParticles ===========
TClonesArray * RecParticles() const ;
- AliEMCALRecParticle * RecPaticles(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() ; }
Int_t WritePID(Option_t* opt="") const {
return EmcalLoader()->WritePID(opt) ; }
+ //========== Raw ===========
+ Int_t ReadRaw(Int_t event) ;
void SetDebug(Int_t level) {fgDebug = level;} // Set debug level
void PostClusterizer(AliEMCALClusterizer * clu)
const {EmcalLoader()->PostDigitizer(dynamic_cast<AliDigitizer *>(digitizer));}
TString Version() const { return EmcalLoader()->GetTitle() ; }
- AliEMCALLoader * EmcalLoader() const { return fgEmcalLoader ; }
- void Reset() {fgEmcalLoader = 0; fgObjGetter = 0; }
+ AliEMCALLoader * EmcalLoader() const { return fgEmcalLoader; }
+ void Reset() ;
private:
AliEMCALGetter(const char* headerFile,
- const char* version = AliConfig::fgkDefaultEventFolderName,
- Option_t * openingOption = "READ") ;
+ const char* version = AliConfig::GetDefaultEventFolderName(),
+ Option_t * openingOption = "READ") ;
+
Int_t ReadTreeD(void) ;
Int_t ReadTreeH(void) ;
static Int_t fgDebug ; //! Debug level
TString fLoadingStatus ; //! tells which trees are loaded
- Int_t fNPrimaries ; //! # of primaries
- TClonesArray * fPrimaries ; //! list of lists of primaries
+ static TString fVersion; //! stores the current folder name
// AliEMCALCalibrationDB * fcdb ; //!
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,5) // Algorithm class that provides methods to retrieve objects from a list knowing the index
};