CMS 3D CMS Logo

SiStripOfflineDQM.h
Go to the documentation of this file.
1 #ifndef SiStripMonitorClient_SiStripOfflineDQM_h
2 #define SiStripMonitorClient_SiStripOfflineDQM_h
3 // -*- C++ -*-
4 //
5 // Package: SiStripMonitorClient
6 // Class : SiStripOfflineDQM
7 //
18 //
19 // Original Author: Samvel Khalatyan (ksamdev at gmail dot com)
20 // Created: Wed Oct 5 16:47:14 CET 2006
21 //
22 
23 #include <string>
24 
33 
34 // Cabling
38 
39 #include <iostream>
40 #include <fstream>
41 #include <string>
42 #include <vector>
43 #include <map>
44 #include <TTree.h>
45 
46 class SiStripDetCabling;
47 class RunInfo;
48 
49 class SiStripOfflineDQM : public edm::one::EDProducer<edm::one::WatchLuminosityBlocks,
50  edm::one::WatchRuns,
51  edm::EndRunProducer,
52  edm::EndLuminosityBlockProducer,
53  edm::one::SharedResources> {
54 public:
57 
59 
60 private:
61  void beginJob() override;
62  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
63  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup) override{};
64  void produce(edm::Event& e, edm::EventSetup const& eSetup) override;
65  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup) override;
67  void endRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
68  void endRunProduce(edm::Run&, edm::EventSetup const&) override{};
69  void endJob() override;
70 
71  void checkTrackerFEDs(edm::Event const& e);
72  bool openInputFile(DQMStore& dqm_store);
73 
75 
84  TTree* tkinfoTree_{nullptr};
90 
91  struct MapOptions {
94  bool useSSQ;
96 
97  MapOptions(const std::string type_,
98  edm::ParameterSet&& pset_,
99  bool useSSQ_,
101  : type(type_), pset(std::move(pset_)), useSSQ(useSSQ_), token(std::move(token_)) {}
102  };
103  std::vector<MapOptions> tkMapOptions_;
104 };
105 #endif
std::string const inputFileName_
SiStripOfflineDQM(edm::ParameterSet const &ps)
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) override
std::vector< MapOptions > tkMapOptions_
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
void endLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) override
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > token
bool openInputFile(DQMStore &dqm_store)
bool const createTkInfoFile_
dqm::harvesting::DQMStore DQMStore
edm::ESGetToken< TkDetMap, TrackerTopologyRcd > tkDetMapToken_
void endJob() override
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
void endRunProduce(edm::Run &, edm::EventSetup const &) override
void produce(edm::Event &e, edm::EventSetup const &eSetup) override
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) override
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
void beginJob() override
dqm::harvesting::MonitorElement MonitorElement
std::string const outputFileName_
SiStripActionExecutor actionExecutor_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
MapOptions(const std::string type_, edm::ParameterSet &&pset_, bool useSSQ_, edm::ESGetToken< SiStripQuality, SiStripQualityRcd > &&token_)
void checkTrackerFEDs(edm::Event const &e)
edm::ESGetToken< GeometricDet, IdealGeometryRecord > geomDetToken_
def move(src, dest)
Definition: eostools.py:511
Definition: Run.h:45