]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSGetter.h
Inserting TMath.h where required by the new version of ROOT
[u/mrichter/AliRoot.git] / PHOS / AliPHOSGetter.h
index 5495eeb17e477443d64c9695648d6c3e97ae281c..030b7cb79ba12398faf1b7a1ceee05c67e620203 100644 (file)
@@ -37,7 +37,6 @@ class TF1 ;
 #include "AliPHOSDigitizer.h"
 #include "AliPHOSSDigitizer.h"
 #include "AliPHOSCalibData.h"
-#include "AliPHOSAlignData.h"
 
 class AliPHOS ;  
 class AliPHOSGeometry ;
@@ -51,16 +50,11 @@ class AliRawReader ;
 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") ;
@@ -93,7 +87,7 @@ public:
   
   //========== Methods to read something from file ==========
   virtual void   Event(Int_t event, const char * opt = "HSDRTP") ;    
-  void   Event(AliRawReader *rawReader, const char * opt = "W") ;    
+  void   Event(AliRawReader *rawReader, const char * opt = "W",Bool_t isOldRCUFormat = kFALSE) ;    
   virtual void   Track(Int_t itrack) ;
  
   
@@ -113,12 +107,12 @@ public:
   
   //=========== Hits =================
   virtual TClonesArray *  Hits(void) const ; 
-  virtual AliPHOSHit *    Hit(Int_t index) { return dynamic_cast<AliPHOSHit*>(Hits()->At(index) );}
+  virtual AliPHOSHit *    Hit(Int_t index) const { return dynamic_cast<AliPHOSHit*>(Hits()->At(index) );}
   virtual TTree *         TreeH() const ; 
   
   //=========== SDigits ==============
   virtual TClonesArray *      SDigits() const ;  
-  virtual AliPHOSDigit *      SDigit(Int_t index) { return static_cast<AliPHOSDigit *>(SDigits()->At(index)) ;} 
+  virtual AliPHOSDigit *      SDigit(Int_t index) const { return static_cast<AliPHOSDigit *>(SDigits()->At(index)) ;} 
   virtual TTree *             TreeS() const ; 
   virtual AliPHOSSDigitizer * SDigitizer() ;  
   
@@ -131,7 +125,7 @@ public:
   
   //========== Digits ================
   virtual TClonesArray * Digits() const ;
-  virtual AliPHOSDigit * Digit(Int_t index) { return static_cast<AliPHOSDigit *>(Digits()->At(index)) ;} 
+  virtual AliPHOSDigit * Digit(Int_t index) const { return static_cast<AliPHOSDigit *>(Digits()->At(index)) ;} 
   virtual TTree *        TreeD() const ; 
   virtual AliPHOSDigitizer * Digitizer() ;
   virtual TString             GetDigitsFileName() const { return PhosLoader()->GetDigitsFileName() ; }  
@@ -148,9 +142,9 @@ public:
   
   //========== RecPoints =============
   virtual TObjArray *           EmcRecPoints() const;
-  virtual AliPHOSEmcRecPoint *  EmcRecPoint(Int_t index) { return static_cast<AliPHOSEmcRecPoint *>(EmcRecPoints()->At(index)) ;} 
+  virtual AliPHOSEmcRecPoint *  EmcRecPoint(Int_t index) const { return static_cast<AliPHOSEmcRecPoint *>(EmcRecPoints()->At(index)) ;} 
   virtual TObjArray *           CpvRecPoints() const ; 
-  virtual AliPHOSCpvRecPoint *  CpvRecPoint(Int_t index) { return static_cast<AliPHOSCpvRecPoint *>(CpvRecPoints()->At(index)) ;} 
+  virtual AliPHOSCpvRecPoint *  CpvRecPoint(Int_t index) const { return static_cast<AliPHOSCpvRecPoint *>(CpvRecPoints()->At(index)) ;} 
   virtual TTree *               TreeR() const ;
   virtual AliPHOSClusterizer * Clusterizer() ;
   virtual TString               GetRecPointsFileName() const { return PhosLoader()->GetRecPointsFileName() ; } 
@@ -163,7 +157,7 @@ public:
   
   //========== TrackSegments   TClonesArray * TrackSegments(const char * name = 0) { 
   virtual TClonesArray *           TrackSegments() const;
-  virtual AliPHOSTrackSegment *  TrackSegment(Int_t index) { return static_cast<AliPHOSTrackSegment *>(TrackSegments()->At(index)) ;} 
+  virtual AliPHOSTrackSegment *  TrackSegment(Int_t index) const { return static_cast<AliPHOSTrackSegment *>(TrackSegments()->At(index)) ;} 
   virtual TTree *               TreeT() const ;
   virtual AliPHOSTrackSegmentMaker * TrackSegmentMaker() ;
   virtual TString               GetTracksFileName() const { return PhosLoader()->GetTracksFileName() ; } 
@@ -176,7 +170,7 @@ public:
   
   //========== RecParticles ===========
   virtual TClonesArray *         RecParticles() const;
-  virtual AliPHOSRecParticle *   RecParticle(Int_t index) { return static_cast<AliPHOSRecParticle *>(RecParticles()->At(index)) ;} 
+  virtual AliPHOSRecParticle *   RecParticle(Int_t index) const { return static_cast<AliPHOSRecParticle *>(RecParticles()->At(index)) ;} 
   virtual TTree *               TreeP() const ;
   virtual AliPHOSPID * PID() ;
   virtual TString               GetRecParticlesFileName() const { return PhosLoader()->GetRecParticlesFileName() ; } 
@@ -188,7 +182,7 @@ public:
     return  PhosLoader()->WritePID(opt) ; }
 
   //========== Raw ===========
-  virtual Int_t ReadRaw(AliRawReader *rawReader) ; 
+  virtual Int_t ReadRaw(AliRawReader *rawReader,Bool_t isOldRCUFormat) ; 
 
   void SetDebug(Int_t level) {fgDebug = level;} // Set debug level 
   virtual void PostClusterizer(AliPHOSClusterizer * clu) 
@@ -209,9 +203,8 @@ public:
   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 
   
@@ -221,12 +214,12 @@ private:
                Option_t * openingOption = "READ") ;
 private:
   
-  Int_t ReadTreeD(void) ;
-  Int_t ReadTreeH(void) ;
-  Int_t ReadTreeR(void) ;
-  Int_t ReadTreeT(void) ;
-  Int_t ReadTreeS(void) ;
-  Int_t ReadTreeP(void) ;
+  Int_t ReadTreeD(void) const ;
+  Int_t ReadTreeH(void) const ;
+  Int_t ReadTreeR(void) const ;
+  Int_t ReadTreeT(void) const ;
+  Int_t ReadTreeS(void) const ;
+  Int_t ReadTreeP(void) const ;
 
   Int_t ReadTreeE(Int_t event) ;    
   Bool_t OpenESDFile() ;
@@ -251,8 +244,8 @@ private:
   
   Bool_t            fRawDigits ;         //! true is raw data
 
-  AliPHOSCalibrationDB * fcdb ;       //!
-  static AliPHOSCalibData * fgCalibData;
+  AliPHOSCalibrationDB * fcdb ;          //! Calibration DB for beam test run 2004
+  static AliPHOSCalibData * fgCalibData; //! instance of AliPHOSCalibData
 
   static AliPHOSLoader * fgPhosLoader ; // the loader for the NewIO