]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSPlaneEff.h
track labels added
[u/mrichter/AliRoot.git] / ITS / AliITSPlaneEff.h
index 52d3fd40c86bed44781e22f5399a3ae26a1926a5..331d2d2d9ea821e662041a850e750b0c31d74420 100644 (file)
@@ -29,7 +29,7 @@ class AliITSPlaneEff : public AliPlaneEff {
     // copy constructor. See detector specific implementation.
     AliITSPlaneEff(const AliITSPlaneEff &source);
     // Assignment operator. See detector specific implementation.
-    virtual AliITSPlaneEff& operator=(const AliITSPlaneEff &source);
+    AliITSPlaneEff& operator=(const AliITSPlaneEff &source);
     // Simple way to add another class (i.e. statistics). 
     //AliITSPlaneEff& operator +=( const AliITSPlaneEff &){return *this};
     // Average Plane efficiency (including dead/noisy)
@@ -74,22 +74,34 @@ class AliITSPlaneEff : public AliPlaneEff {
       {AliError("This method must be implemented in a derived class"); return 999999;};
     virtual Bool_t GetBlockBoundaries(const UInt_t,Float_t&,Float_t&,Float_t&,Float_t&) const
       {AliError("This method must be implemented in a derived class"); return kFALSE;};
+  // Methods for dealing with auxiliary histograms
+    // method to set on/off the creation/updates of histograms (Histos are created/destroyed)
+    virtual void   SetCreateHistos(Bool_t)
+      {AliError("This method must be implemented in a derived class"); return; }
+    virtual Bool_t GetCreateHistos() const {return fHis;};
+    virtual Bool_t FillHistos(UInt_t, Bool_t, Float_t*, Float_t*, Int_t*, Float_t*)
+      {AliError("This method must be implemented in a derived class"); return kFALSE; }
+    virtual Bool_t WriteHistosToFile(TString ,Option_t*)
+      {AliError("This method must be implemented in a derived class"); return kFALSE; }
+    virtual Bool_t ReadHistosFromFile(TString )
+      {AliError("This method must be implemented in a derived class"); return kFALSE; }
+    void InitCDB();
 
  protected:
 
-    void InitCDB();
     virtual void Copy(TObject &obj) const;
     void NotImplemented(const char *method) const {if(gDebug>0)
          Warning(method,"This method is not implemented for this sub-class");}
     Int_t      fRunNumber;     //! run number (to access CDB)
     TString    fCDBUri;        //! Uri of the default CDB storage
     Bool_t     fInitCDBCalled; //! flag to check if CDB storages are already initialized
+    Bool_t      fHis;           //! if true, then histograms are created and filled 
    
  private:
     //Int_t*   fFound;         // number of associated clusters into a given block (e.g. SPD 1200 chip)
     //Int_t*   fTries;         // number of exspected  clusters into a given block (e.g. SPD 1200 chip)
     //Int_t    fRunNumber;     // run number (to access CDB)
 
-    ClassDef(AliITSPlaneEff,1) // ITS Plane Efficiency virtual base class 
+    ClassDef(AliITSPlaneEff,2) // ITS Plane Efficiency virtual base class 
 };
 #endif