CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTOccupancyTest.h
Go to the documentation of this file.
1 #ifndef DTOccupancyTest_H
2 #define DTOccupancyTest_H
3 
4 
22 
24 
25 
26 #include "TH2F.h"
27 
28 #include <iostream>
29 #include <string>
30 #include <map>
31 
32 class DTGeometry;
33 class DTChamberId;
34 class DQMStore;
35 
36 #include "TFile.h"
37 #include "TNtuple.h"
38 
40 
41 public:
42 
45 
47  virtual ~DTOccupancyTest();
48 
49 protected:
50 
52  void beginRun(edm::Run const& run, edm::EventSetup const& context) ;
53 
56 
58 
60 
61 private:
62 
64  void bookHistos(DQMStore::IBooker &, const int wheelId, std::string folder, std::string histoTag);
65 
67  std::string getMEName(std::string histoTag, const DTChamberId& chId);
68 
69  // Run the test on the occupancy histos
70  int runOccupancyTest(TH2F *histo, const DTChamberId& chId, float& chamberPercentage);
71 
72  std::string topFolder() const;
73 
74  int nevents;
75 
77 
78  // wheel summary histograms
79  std::map< int, MonitorElement* > wheelHistos;
82 
83  std::set<DTLayerId> monitoredLayers;
84 
85  int lsCounter;
86  int nMinEvts;
87 
89  TFile *rootFile;
90  TNtuple *ntuple;
91  bool tpMode;
92 
97 
99 
100 };
101 
102 #endif
std::map< int, MonitorElement * > wheelHistos
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
DQM Client Diagnostic.
int runOccupancyTest(TH2F *histo, const DTChamberId &chId, float &chamberPercentage)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)
Endjob.
MonitorElement * summaryHisto
std::string nameMonitoredHisto
virtual ~DTOccupancyTest()
Destructor.
DTOccupancyTest(const edm::ParameterSet &ps)
Constructor.
void bookHistos(DQMStore::IBooker &, const int wheelId, std::string folder, std::string histoTag)
book the summary histograms
std::string getMEName(std::string histoTag, const DTChamberId &chId)
Get the ME name.
void beginRun(edm::Run const &run, edm::EventSetup const &context)
BeginRun.
bool runOnAllHitsOccupancies
edm::ESHandle< DTGeometry > muonGeom
std::set< DTLayerId > monitoredLayers
std::string topFolder() const
Definition: Run.h:41
MonitorElement * glbSummaryHisto