Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-17 23:26:23

0001 #ifndef EcalCondDBWriter_H
0002 #define EcalCondDBWriter_H
0003 
0004 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0005 
0006 #include "DBWriterWorkers.h"
0007 
0008 #include "OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h"
0009 
0010 class EcalCondDBWriter : public DQMEDHarvester {
0011 public:
0012   EcalCondDBWriter(edm::ParameterSet const &);
0013   ~EcalCondDBWriter() override;
0014 
0015 private:
0016   void beginRun(edm::Run const &, edm::EventSetup const &) override;
0017   void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
0018 
0019   // DON'T CHANGE - ORDER MATTERS IN DB
0020   enum Tasks {
0021     Integrity = 0,
0022     Cosmic = 1,
0023     Laser = 2,
0024     Pedestal = 3,
0025     Presample = 4,
0026     TestPulse = 5,
0027     BeamCalo = 6,
0028     BeamHodo = 7,
0029     TriggerPrimitives = 8,
0030     Cluster = 9,
0031     Timing = 10,
0032     Led = 11,
0033     RawData = 12,
0034     Occupancy = 13,
0035     nTasks = 14
0036   };
0037 
0038   int runNumber_;
0039   EcalCondDBInterface *db_;
0040   std::string location_;
0041   std::string runType_;
0042   std::string runGeneralTag_;
0043   std::string monRunGeneralTag_;
0044   std::vector<std::string> inputRootFiles_;
0045   ecaldqm::DBWriterWorker *workers_[nTasks];
0046   ecaldqm::SummaryWriter summaryWriter_;
0047 
0048   int verbosity_;
0049   bool executed_;
0050 };
0051 
0052 #endif