CMS 3D CMS Logo

DTnoiseDBValidation.h
Go to the documentation of this file.
1 #ifndef DTnoiseDBValidation_H
2 #define DTnoiseDBValidation_H
3 
20 
21 #include <map>
22 #include <string>
23 #include <vector>
24 
25 class DTGeometry;
26 class DTChamberId;
27 class DTStatusFlag;
28 class TFile;
29 
31 public:
36 
38  ~DTnoiseDBValidation() override;
39 
41  void beginRun(const edm::Run &run, const edm::EventSetup &setup) override;
42  void endRun(edm::Run const &, edm::EventSetup const &) override;
43  void endJob() override;
44  void analyze(const edm::Event &event, const edm::EventSetup &setup) override {}
45 
46 protected:
47 private:
48  void bookHisto(const DTChamberId &);
49 
51  // The DB label
57 
60 
61  // The DTGeometry
64 
65  // The noise map
68 
69  // the total number of noisy cell
72  // the histos
78  std::map<DTChamberId, MonitorElement *> noiseHistoMap_;
79 };
80 #endif
DTGeometry
Definition: DTGeometry.h:28
DTnoiseDBValidation::sectorTestName_
std::string sectorTestName_
Definition: DTnoiseDBValidation.h:56
DTnoiseDBValidation::noiseMap
const DTStatusFlag * noiseMap
Definition: DTnoiseDBValidation.h:55
DTnoiseDBValidation::noiseRefMap
const DTStatusFlag * noiseRefMap
Definition: DTnoiseDBValidation.h:54
DTnoiseDBValidation::DTnoiseDBValidation
DTnoiseDBValidation(const edm::ParameterSet &pset)
Constructor.
Definition: DTnoiseDBValidation.cc:37
DTnoiseDBValidation::noiseHistoMap_
std::map< DTChamberId, MonitorElement * > noiseHistoMap_
Definition: DTnoiseDBValidation.h:78
ESHandle.h
DTnoiseDBValidation::bookHisto
void bookHisto(const DTChamberId &)
Definition: DTnoiseDBValidation.cc:269
edm::Run
Definition: Run.h:45
DTnoiseDBValidation::diffHisto_
MonitorElement * diffHisto_
Definition: DTnoiseDBValidation.h:73
DTnoiseDBValidation::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTnoiseDBValidation.h:62
DQMStore.h
DTnoiseDBValidation::endJob
void endJob() override
Definition: DTnoiseDBValidation.cc:263
DTnoiseDBValidation::dtGeom
const DTGeometry * dtGeom
Definition: DTnoiseDBValidation.h:63
DTStatusFlagRcd.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
DTnoiseDBValidation::endRun
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: DTnoiseDBValidation.cc:195
EDAnalyzer.h
DTnoiseDBValidation::layerHisto_
MonitorElement * layerHisto_
Definition: DTnoiseDBValidation.h:77
DTnoiseDBValidation::diffTestName_
std::string diffTestName_
Definition: DTnoiseDBValidation.h:56
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
DTnoiseDBValidation::noiseRefMap_
const DTStatusFlag * noiseRefMap_
Definition: DTnoiseDBValidation.h:67
DTnoiseDBValidation::stationHisto_
MonitorElement * stationHisto_
Definition: DTnoiseDBValidation.h:75
MakerMacros.h
dqm::legacy::DQMStore
Definition: DQMStore.h:728
DTnoiseDBValidation::noiseMap_
const DTStatusFlag * noiseMap_
Definition: DTnoiseDBValidation.h:66
Service.h
DTnoiseDBValidation::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: DTnoiseDBValidation.h:33
DTnoiseDBValidation::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: DTnoiseDBValidation.h:32
DTnoiseDBValidation::~DTnoiseDBValidation
~DTnoiseDBValidation() override
Destructor.
Definition: DTnoiseDBValidation.cc:74
DTnoiseDBValidation::outputFileName_
std::string outputFileName_
Definition: DTnoiseDBValidation.h:59
DTnoiseDBValidation::analyze
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
Definition: DTnoiseDBValidation.h:44
DTnoiseDBValidation::labelDB_
edm::ESGetToken< DTStatusFlag, DTStatusFlagRcd > labelDB_
Definition: DTnoiseDBValidation.h:53
DTnoiseDBValidation::outputMEsInRootFile_
bool outputMEsInRootFile_
Definition: DTnoiseDBValidation.h:58
edm::ParameterSet
Definition: ParameterSet.h:47
DTnoiseDBValidation::noisyCellsValid_
int noisyCellsValid_
Definition: DTnoiseDBValidation.h:71
DTnoiseDBValidation::layerTestName_
std::string layerTestName_
Definition: DTnoiseDBValidation.h:56
DTnoiseDBValidation
Definition: DTnoiseDBValidation.h:30
DTnoiseDBValidation::sectorHisto_
MonitorElement * sectorHisto_
Definition: DTnoiseDBValidation.h:76
edm::EventSetup
Definition: EventSetup.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ESGetToken< DTStatusFlag, DTStatusFlagRcd >
DTnoiseDBValidation::stationTestName_
std::string stationTestName_
Definition: DTnoiseDBValidation.h:56
DTnoiseDBValidation::wheelTestName_
std::string wheelTestName_
Definition: DTnoiseDBValidation.h:56
DTnoiseDBValidation::labelDBRef_
edm::ESGetToken< DTStatusFlag, DTStatusFlagRcd > labelDBRef_
Definition: DTnoiseDBValidation.h:52
writedatasetfile.run
run
Definition: writedatasetfile.py:27
Frameworkfwd.h
DTnoiseDBValidation::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
Operations.
Definition: DTnoiseDBValidation.cc:76
MuonServiceProxy.h
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
MuonGeometryRecord.h
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
DTnoiseDBValidation::dbe_
DQMStore * dbe_
Definition: DTnoiseDBValidation.h:50
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DTnoiseDBValidation::wheelHisto_
MonitorElement * wheelHisto_
Definition: DTnoiseDBValidation.h:74
DTStatusFlag
Definition: DTStatusFlag.h:74
DTnoiseDBValidation::noisyCellsRef_
int noisyCellsRef_
Definition: DTnoiseDBValidation.h:70