Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-24 04:11:46

0001 #ifndef EcalCondDBReader_H
0002 #define EcalCondDBReader_H
0003 
0004 #include "DBReaderWorkers.h"
0005 #include "DQM/EcalCommon/interface/MESet.h"
0006 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0007 #include "OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h"
0008 #include "Geometry/EcalMapping/interface/EcalMappingRcd.h"
0009 
0010 class EcalCondDBReader : public DQMEDHarvester {
0011 public:
0012   EcalCondDBReader(edm::ParameterSet const &);
0013   ~EcalCondDBReader() override;
0014 
0015 private:
0016   void dqmEndRun(DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &) override;
0017 
0018   EcalElectronicsMapping const *electronicsMap;
0019   void setElectronicsMap(edm::EventSetup const &);
0020   EcalElectronicsMapping const *GetElectronicsMap();
0021   ecaldqm::EcalDQMSetupObjects const getEcalDQMSetupObjects();
0022 
0023   // DON'T CHANGE - ORDER MATTERS IN DB
0024   enum Tasks {
0025     Integrity = 0,
0026     Cosmic = 1,
0027     Laser = 2,
0028     Pedestal = 3,
0029     Presample = 4,
0030     TestPulse = 5,
0031     BeamCalo = 6,
0032     BeamHodo = 7,
0033     TriggerPrimitives = 8,
0034     Cluster = 9,
0035     Timing = 10,
0036     Led = 11,
0037     RawData = 12,
0038     Occupancy = 13,
0039     nTasks = 14
0040   };
0041 
0042   EcalCondDBInterface *db_;
0043   MonRunIOV monIOV_;
0044   ecaldqm::DBReaderWorker *worker_;
0045   std::string formula_;
0046   ecaldqm::MESet *meSet_;
0047 
0048   int verbosity_;
0049   bool executed_;
0050   edm::ESGetToken<EcalElectronicsMapping, EcalMappingRcd> elecMapHandle;
0051 };
0052 
0053 #endif