]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSLoader.h
EMCAL geometry can be created independently form anything now
[u/mrichter/AliRoot.git] / PHOS / AliPHOSLoader.h
index 6b85599405a2f2c83c13f0f3f0434e4b04087d12..46c342611b964f7ff6cf64474477e779a4b14fb4 100644 (file)
@@ -5,6 +5,17 @@
 
 /* $Id$ */
 
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.11  2006/08/01 12:15:03  cvetan
+ * Adding a constructor from TFolder. Needed by AliReconstruction plugin scheme
+ *
+ * Revision 1.10  2005/05/28 14:19:04  schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
 //_________________________________________________________________________
 //  A singleton that returns various objects 
 //  Should be used on the analysis stage to avoid confusing between different
@@ -53,8 +64,9 @@ class AliPHOSLoader : public AliLoader {
 public:
 
   AliPHOSLoader();
-  AliPHOSLoader(const AliPHOSLoader & obj) : AliLoader(obj) {}
+  AliPHOSLoader(const AliPHOSLoader & obj);
   AliPHOSLoader(const Char_t *detname,const Char_t *eventfoldername); 
+  AliPHOSLoader(const Char_t *detname,TFolder *topfolder);
   
   virtual ~AliPHOSLoader() ; 
 
@@ -72,20 +84,20 @@ public:
   Int_t   LoadTracks(Option_t* opt="");  //reads Tracks from disk and sends them to folder; array as well as tree
   Int_t   LoadRecParticles(Option_t* opt="");
    
-  Int_t   PostHits();  //Posts the 
-  Int_t   PostSDigits();
-  Int_t   PostDigits();
-  Int_t   PostRecPoints();
-  Int_t   PostTracks();
-  Int_t   PostRecParticles();
+  Int_t   PostHits()const;  //Posts the 
+  Int_t   PostSDigits()const;
+  Int_t   PostDigits()const;
+  Int_t   PostRecPoints()const;
+  Int_t   PostTracks()const;
+  Int_t   PostRecParticles()const;
   
   void    CleanFolders();//cleans all the stuff loaded by this detector + calls AliLoader::Clean
 
-  void    CleanHits();
-  void    CleanSDigits();
-  void    CleanDigits();
-  void    CleanRecPoints();
-  void    CleanTracks();
+  void    CleanHits()const;
+  void    CleanSDigits()const;
+  void    CleanDigits()const;
+  void    CleanRecPoints()const;
+  void    CleanTracks()const;
   void    CleanRecParticles();
 
 //up to now it is only here -> no definition about global/incremental tracking/PID
@@ -177,8 +189,10 @@ public:
   
   void   SetDebug(Int_t level) {fDebug = level;} // Set debug level
   void   SetBranchTitle(const TString& btitle);
-  
-  AliPHOSCalibrationDB * CalibrationDB(){return  fcdb; }
+
+  Int_t   GetDebug()                     const {return fDebug;      }
+  TString GetBranchTitle()               const {return fBranchTitle;}
+  AliPHOSCalibrationDB * CalibrationDB() const {return fcdb;        }
   void ReadCalibrationDB(const char * name, const char * filename);
   
 protected: