class AliPHOSGetter : public TObject {
public:
- AliPHOSGetter(){ // ctor: this is a singleton, the ctor should never be called but cint needs it as public
- Fatal("ctor", "AliPHOSGetter is a singleton default ctor not callable") ;
- }
+ // ctor: this is a singleton, the ctor should never be called but cint needs it as public
+ AliPHOSGetter() ;
public:
- AliPHOSGetter(const AliPHOSGetter & obj) : TObject(obj) {
- // cpy ctor requested by Coding Convention
- Fatal("cpy ctor", "not implemented") ;
- }
-
+ AliPHOSGetter(const AliPHOSGetter & obj) ;
AliPHOSGetter & operator = (const AliPHOSGetter & ) {
// assignement operator requested by coding convention, but not needed
Fatal("operator =", "not implemented") ;
virtual AliPHOSClusterizer * Clusterizer() ;
virtual TString GetRecPointsFileName() const { return PhosLoader()->GetRecPointsFileName() ; }
virtual Int_t LoadRecPoints(Option_t* opt="") const { return PhosLoader()->LoadRecPoints(opt) ; }
- virtual Int_t LoadClusterizer(Option_t* opt="") const {
- return PhosLoader()->LoadClusterizer(opt) ; }
virtual Int_t WriteRecPoints(Option_t* opt="") const { return PhosLoader()->WriteRecPoints(opt) ; }
- virtual Int_t WriteClusterizer(Option_t* opt="") const {
- return PhosLoader()->WriteClusterizer(opt) ; }
//========== TrackSegments TClonesArray * TrackSegments(const char * name = 0) {
virtual TClonesArray * TrackSegments() const;
virtual Int_t ReadRaw(AliRawReader *rawReader,Bool_t isOldRCUFormat) ;
void SetDebug(Int_t level) {fgDebug = level;} // Set debug level
- virtual void PostClusterizer(AliPHOSClusterizer * clu)
- const{PhosLoader()->PostClusterizer(clu) ; }
- virtual void PostPID(AliPHOSPID * pid)
- const{PhosLoader()->PostPID(pid) ; }
- virtual void PostTrackSegmentMaker(AliPHOSTrackSegmentMaker * tr)
- const{PhosLoader()->PostTrackSegmentMaker(tr) ; }
virtual void PostSDigitizer (AliPHOSSDigitizer * sdigitizer)
const {PhosLoader()->PostSDigitizer(sdigitizer);}
virtual void PostDigitizer (AliPHOSDigitizer * digitizer)
virtual AliESD * ESD() const { return fESD ; }
protected :
- AliPHOSGetter(Int_t /*i*/){ // special constructor for onflight
-
- }
+ AliPHOSGetter(Int_t /*i*/) ;
+
protected:
static AliPHOSGetter * fgObjGetter; // pointer to the unique instance of the singleton