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
SiStripOfflineDQM::endRun
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition: SiStripOfflineDQM.cc:149
SiStripOfflineDQM::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) override
Definition: SiStripOfflineDQM.h:63
SiStripOfflineDQM::tkMapOptions_
std::vector< MapOptions > tkMapOptions_
Definition: SiStripOfflineDQM.h:103
SiStripOfflineDQM::checkTrackerFEDs
void checkTrackerFEDs(edm::Event const &e)
SiStripActionExecutor.h
EDProducer.h
SiStripOfflineDQM::geomDetToken_
edm::ESGetToken< GeometricDet, IdealGeometryRecord > geomDetToken_
Definition: SiStripOfflineDQM.h:88
SiStripOfflineDQM::trackerFEDsFound_
bool trackerFEDsFound_
Definition: SiStripOfflineDQM.h:82
RunSummaryRcd.h
ESHandle.h
SiStripOfflineDQM::actionExecutor_
SiStripActionExecutor actionExecutor_
Definition: SiStripOfflineDQM.h:74
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
LuminosityBlock.h
SiStripOfflineDQM::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiStripOfflineDQM.h:86
SiStripOfflineDQM::createTkInfoFile_
const bool createTkInfoFile_
Definition: SiStripOfflineDQM.h:78
SiStripOfflineDQM::openInputFile
bool openInputFile(DQMStore &dqm_store)
Definition: SiStripOfflineDQM.cc:203
DQMStore.h
SiStripOfflineDQM::DQMStore
dqm::harvesting::DQMStore DQMStore
Definition: SiStripOfflineDQM.h:56
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
edm::one::EDProducer
Definition: EDProducer.h:30
SiStripOfflineDQM::tkinfoTree_
TTree * tkinfoTree_
Definition: SiStripOfflineDQM.h:84
SiStripOfflineDQM::SiStripOfflineDQM
SiStripOfflineDQM(edm::ParameterSet const &ps)
Definition: SiStripOfflineDQM.cc:48
RunInfo
Definition: RunInfo.h:18
SiStripDetCabling.h
SiStripOfflineDQM::runInfoToken_
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
Definition: SiStripOfflineDQM.h:89
SiStripOfflineDQM
Definition: SiStripOfflineDQM.h:49
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripOfflineDQM::globalStatusFilling_
int globalStatusFilling_
Definition: SiStripOfflineDQM.h:81
SiStripOfflineDQM::tkDetMapToken_
edm::ESGetToken< TkDetMap, TrackerTopologyRcd > tkDetMapToken_
Definition: SiStripOfflineDQM.h:87
SiStripOfflineDQM::endRunProduce
void endRunProduce(edm::Run &, edm::EventSetup const &) override
Definition: SiStripOfflineDQM.h:68
SiStripOfflineDQM::MapOptions::useSSQ
bool useSSQ
Definition: SiStripOfflineDQM.h:94
SiStripOfflineDQM::outputFileName_
const std::string outputFileName_
Definition: SiStripOfflineDQM.h:80
SiStripDetCabling
Definition: SiStripDetCabling.h:21
SiStripOfflineDQM::MapOptions::token
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > token
Definition: SiStripOfflineDQM.h:95
Run.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripOfflineDQM::usedWithEDMtoMEConverter_
bool usedWithEDMtoMEConverter_
Definition: SiStripOfflineDQM.h:76
SiStripOfflineDQM::endLuminosityBlockProduce
void endLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) override
Definition: SiStripOfflineDQM.h:66
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripOfflineDQM::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) override
Definition: SiStripOfflineDQM.cc:139
SiStripOfflineDQM::detCablingToken_
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
Definition: SiStripOfflineDQM.h:85
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
SiStripOfflineDQM::printFaultyModuleList_
bool printFaultyModuleList_
Definition: SiStripOfflineDQM.h:83
SiStripOfflineDQM::MapOptions::pset
edm::ParameterSet pset
Definition: SiStripOfflineDQM.h:93
SiStripOfflineDQM::beginRun
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition: SiStripOfflineDQM.cc:111
SiStripOfflineDQM::MapOptions::type
std::string type
Definition: SiStripOfflineDQM.h:92
SiStripOfflineDQM::beginJob
void beginJob() override
Definition: SiStripOfflineDQM.cc:98
SiStripOfflineDQM::MapOptions
Definition: SiStripOfflineDQM.h:91
edm::EventSetup
Definition: EventSetup.h:58
SiStripOfflineDQM::inputFileName_
const std::string inputFileName_
Definition: SiStripOfflineDQM.h:79
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd >
SiStripActionExecutor
Definition: SiStripActionExecutor.h:22
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
writedatasetfile.run
run
Definition: writedatasetfile.py:27
EventSetup.h
SiStripDetCablingRcd.h
SiStripOfflineDQM::endJob
void endJob() override
Definition: SiStripOfflineDQM.cc:190
ParameterSet.h
SiStripOfflineDQM::MapOptions::MapOptions
MapOptions(const std::string type_, edm::ParameterSet &&pset_, bool useSSQ_, edm::ESGetToken< SiStripQuality, SiStripQualityRcd > &&token_)
Definition: SiStripOfflineDQM.h:97
edm::Event
Definition: Event.h:73
SiStripOfflineDQM::createTkMap_
const bool createTkMap_
Definition: SiStripOfflineDQM.h:78
SiStripOfflineDQM::produce
void produce(edm::Event &e, edm::EventSetup const &eSetup) override
Definition: SiStripOfflineDQM.cc:137
SiStripOfflineDQM::createSummary_
bool createSummary_
Definition: SiStripOfflineDQM.h:77
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
SiStripOfflineDQM::MonitorElement
dqm::harvesting::MonitorElement MonitorElement
Definition: SiStripOfflineDQM.h:55