CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/CondTools/Ecal/interface/EcalErrorMask.h

Go to the documentation of this file.
00001 #ifndef EcalErrorMask_H
00002 #define EcalErrorMask_H
00003 
00004 #include <cstdlib>
00005 #include <map>
00006 
00007 class EcalCondDBInterface;
00008 
00009 class EcalLogicID;
00010 
00011 class RunCrystalErrorsDat;
00012 class RunTTErrorsDat;
00013 class RunPNErrorsDat;
00014 class RunMemChErrorsDat;
00015 class RunMemTTErrorsDat;
00016 class RunIOV;
00017 
00018 class EcalErrorMask {
00019 
00020  public:
00021 
00022   static void readDB( EcalCondDBInterface* eConn, RunIOV* runIOV ) throw( std::runtime_error );
00023 
00024   static void fetchDataSet( std::map< EcalLogicID, RunCrystalErrorsDat>* fillMap );
00025   static void fetchDataSet( std::map< EcalLogicID, RunTTErrorsDat>* fillMap );
00026   static void fetchDataSet( std::map< EcalLogicID, RunPNErrorsDat>* fillMap );
00027   static void fetchDataSet( std::map< EcalLogicID, RunMemChErrorsDat>* fillMap );
00028   static void fetchDataSet( std::map< EcalLogicID, RunMemTTErrorsDat>* fillMap );
00029 
00030  private:
00031 
00032   static int runNb_;
00033 
00034   static std::map<EcalLogicID, RunCrystalErrorsDat> mapCrystalErrors_;
00035   static std::map<EcalLogicID, RunTTErrorsDat>      mapTTErrors_;
00036   static std::map<EcalLogicID, RunPNErrorsDat>      mapPNErrors_;
00037   static std::map<EcalLogicID, RunMemChErrorsDat>   mapMemChErrors_;
00038   static std::map<EcalLogicID, RunMemTTErrorsDat>   mapMemTTErrors_;
00039 
00040 };
00041 
00042 #endif // EcalErrorMask_H