]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliPlaneEff.h
solved problems with the cycles when running QA during reconstruction
[u/mrichter/AliRoot.git] / STEER / AliPlaneEff.h
1 #ifndef ALIPLANEEFF_H
2 #define ALIPLANEEFF_H
3 /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 #include <TObject.h>
7 #include <TString.h>
8 #include "AliLog.h"
9
10 //class Alisegmentation;
11 //class Aligeom;
12
13 ////////////////////////////////////////////////////
14 //                                                //
15 // Virtual base class for Plane Efficiency        //
16 // Origin: Giuseppe.Bruno@ba.infn.it              //
17 //                                                //
18 ////////////////////////////////////////////////////
19
20 class AliPlaneEff : public TObject {
21  public:
22  
23     AliPlaneEff();// Default constructor
24     virtual ~AliPlaneEff(){;}; 
25     // copy constructor. See detector specific implementation.
26     AliPlaneEff(const AliPlaneEff &source);
27     // Assignment operator. See detector specific implementation.
28     AliPlaneEff& operator=(const AliPlaneEff &source);
29     // Average Plane efficiency (including dead/noisy)
30     //Int_t   GetRunNumber() const {return fRunNumber;}
31     //void    SetRunNumber(Int_t n) {fRunNumber=n;}
32     //
33     // Write into (read from) the data base 
34     virtual Bool_t WriteIntoCDB() const
35        {AliError("This method must be implemented in a derived class"); return kFALSE;};
36     virtual Bool_t ReadFromCDB()
37        {AliError("This method must be implemented in a derived class"); return kFALSE;};
38     virtual Bool_t AddFromCDB()
39        {AliError("This method must be implemented in a derived class"); return kFALSE;};
40     // Write/read Histograms to/from File
41     virtual Bool_t WriteHistosToFile(TString ,Option_t* )
42        {AliError("This method must be implemented in a derived class"); return kFALSE; }
43     virtual Bool_t ReadHistosFromFile(TString )
44        {AliError("This method must be implemented in a derived class"); return kFALSE; }
45     virtual Bool_t GetCreateHistos() const
46        {AliError("This method must be implemented in a derived class"); return kFALSE; }
47
48  protected:
49
50     virtual void InitCDB(){;};
51     virtual void Copy(TObject &obj) const;
52     //Int_t     fRunNumber;     //! run number (to access CDB)
53     //TString   fCDBUri;        //! Uri of the default CDB storage
54     //Bool_t    fInitCDBCalled; //! flag to check if CDB storages are already initialized
55    
56  private:
57     //Int_t     fRunNumber;     // run number (to access CDB)
58
59     ClassDef(AliPlaneEff,1) // Plane Efficiency virtual base class 
60 };
61 #endif