CMS 3D CMS Logo

DTOccupancyTest.h
Go to the documentation of this file.
1 #ifndef DTOccupancyTest_H
2 #define DTOccupancyTest_H
3 
20 
22 
23 #include "TH2F.h"
24 
25 #include <iostream>
26 #include <string>
27 #include <map>
28 
29 class DTGeometry;
30 class DTChamberId;
31 
32 #include "TFile.h"
33 #include "TNtuple.h"
34 
36 public:
39 
41  ~DTOccupancyTest() override;
42 
43 protected:
45  void beginRun(edm::Run const &run, edm::EventSetup const &context) override;
46 
48  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
49 
51 
54  edm::LuminosityBlock const &,
55  edm::EventSetup const &) override;
56 
57 private:
60 
63 
64  int getIntegral(TH2F *histo, int, int, int, int, bool);
65 
66  // Run the test on the occupancy histos
67  int runOccupancyTest(TH2F *histo, const DTChamberId &chId, float &chamberPercentage);
68 
69  std::string topFolder() const;
70 
71  int nevents;
72 
74 
75  // wheel summary histograms
76  std::map<int, MonitorElement *> wheelHistos;
79 
80  std::set<DTLayerId> monitoredLayers;
81 
82  int lsCounter;
83  int nMinEvts;
86 
88  TFile *rootFile;
89  TNtuple *ntuple;
90  bool tpMode;
91 
96 
98 
101 };
102 
103 #endif
DQMEDHarvester.h
DTGeometry
Definition: DTGeometry.h:28
DTOccupancyTest::nMinEvts
int nMinEvts
Definition: DTOccupancyTest.h:83
DTOccupancyTest::wheelHistos
std::map< int, MonitorElement * > wheelHistos
Definition: DTOccupancyTest.h:76
DTOccupancyTest::nChannelTotal
int nChannelTotal
Definition: DTOccupancyTest.h:99
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
DTLayerId.h
printsummarytable.folder
folder
Definition: printsummarytable.py:7
DTOccupancyTest::topFolder
std::string topFolder() const
Definition: DTOccupancyTest.cc:369
timingPdfMaker.histo
histo
Definition: timingPdfMaker.py:279
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
EDAnalyzer.h
DTOccupancyTest::nChannelDead
int nChannelDead
Definition: DTOccupancyTest.h:100
DTOccupancyTest::rootFile
TFile * rootFile
Definition: DTOccupancyTest.h:88
DTOccupancyTest::DTOccupancyTest
DTOccupancyTest(const edm::ParameterSet &ps)
Constructor.
Definition: DTOccupancyTest.cc:26
DTOccupancyTest
Definition: DTOccupancyTest.h:35
DTOccupancyTest::nevents
int nevents
Definition: DTOccupancyTest.h:71
DTOccupancyTest::getMEName
std::string getMEName(std::string histoTag, const DTChamberId &chId)
Get the ME name.
Definition: DTOccupancyTest.cc:227
DTOccupancyTest::ntuple
TNtuple * ntuple
Definition: DTOccupancyTest.h:89
DTOccupancyTest::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Endjob.
Definition: DTOccupancyTest.cc:189
DTOccupancyTest::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
Definition: DTOccupancyTest.cc:70
DTOccupancyTest::beginRun
void beginRun(edm::Run const &run, edm::EventSetup const &context) override
BeginRun.
Definition: DTOccupancyTest.cc:63
DTOccupancyTest::runOnAllHitsOccupancies
bool runOnAllHitsOccupancies
Definition: DTOccupancyTest.h:92
edm::ESHandle< DTGeometry >
DTOccupancyTest::tpMode
bool tpMode
Definition: DTOccupancyTest.h:90
DTOccupancyTest::runOnNoiseOccupancies
bool runOnNoiseOccupancies
Definition: DTOccupancyTest.h:93
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTOccupancyTest::bookingdone
bool bookingdone
Definition: DTOccupancyTest.h:97
edm::ParameterSet
Definition: ParameterSet.h:47
DTOccupancyTest::runOnInTimeOccupancies
bool runOnInTimeOccupancies
Definition: DTOccupancyTest.h:94
dtResolutionTest_cfi.histoTag
histoTag
Definition: dtResolutionTest_cfi.py:21
DTOccupancyTest::bookHistos
void bookHistos(DQMStore::IBooker &, const int wheelId, std::string folder, std::string histoTag)
book the summary histograms
Definition: DTOccupancyTest.cc:200
DTOccupancyTest::nZeroEvtsPC
int nZeroEvtsPC
Definition: DTOccupancyTest.h:85
DTOccupancyTest::writeRootFile
bool writeRootFile
Definition: DTOccupancyTest.h:87
DTOccupancyTest::lsCounter
int lsCounter
Definition: DTOccupancyTest.h:82
DTOccupancyTest::nameMonitoredHisto
std::string nameMonitoredHisto
Definition: DTOccupancyTest.h:95
edm::EventSetup
Definition: EventSetup.h:58
DTOccupancyTest::nMinEvtsPC
int nMinEvtsPC
Definition: DTOccupancyTest.h:84
DQMEDHarvester
Definition: DQMEDHarvester.py:1
DTOccupancyTest::monitoredLayers
std::set< DTLayerId > monitoredLayers
Definition: DTOccupancyTest.h:80
writedatasetfile.run
run
Definition: writedatasetfile.py:27
DTOccupancyTest::muonGeom
edm::ESHandle< DTGeometry > muonGeom
Definition: DTOccupancyTest.h:73
Frameworkfwd.h
dqm::implementation::IGetter
Definition: DQMStore.h:484
DTOccupancyTest::runOccupancyTest
int runOccupancyTest(TH2F *histo, const DTChamberId &chId, float &chamberPercentage)
Definition: DTOccupancyTest.cc:270
DTOccupancyTest::~DTOccupancyTest
~DTOccupancyTest() override
Destructor.
Definition: DTOccupancyTest.cc:59
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTOccupancyTest::glbSummaryHisto
MonitorElement * glbSummaryHisto
Definition: DTOccupancyTest.h:78
DTChamberId
Definition: DTChamberId.h:14
DTOccupancyTest::summaryHisto
MonitorElement * summaryHisto
Definition: DTOccupancyTest.h:77
DTOccupancyTest::getIntegral
int getIntegral(TH2F *histo, int, int, int, int, bool)
Definition: DTOccupancyTest.cc:247