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 
19 
20 #include "TH2F.h"
21 
22 #include <iostream>
23 #include <string>
24 #include <map>
25 
26 class DTGeometry;
27 class DTChamberId;
28 class DQMStore;
29 
30 #include "TFile.h"
31 #include "TNtuple.h"
32 
34 
35 public:
36 
39 
41  virtual ~DTOccupancyTest();
42 
43 protected:
44 
46  void beginJob();
47 
49  void beginRun(edm::Run const& run, edm::EventSetup const& context) ;
50 
52  void endJob();
53 
54  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
55 
57  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context);
58 
59 
61  void analyze(const edm::Event& event, const edm::EventSetup& context);
62 
63 private:
64 
66  void bookHistos(const int wheelId, std::string folder, std::string histoTag);
67 
69  std::string getMEName(std::string histoTag, const DTChamberId& chId);
70 
71  // Run the test on the occupancy histos
72  int runOccupancyTest(TH2F *histo, const DTChamberId& chId, float& chamberPercentage);
73 
74  std::string topFolder() const;
75 
76  int nevents;
77 
79 
81 
82  // wheel summary histograms
83  std::map< int, MonitorElement* > wheelHistos;
86 
87  std::set<DTLayerId> monitoredLayers;
88 
89  int lsCounter;
90  int nMinEvts;
91 
93  TFile *rootFile;
94  TNtuple *ntuple;
95  bool tpMode;
96 
101 
102 };
103 
104 #endif
std::map< int, MonitorElement * > wheelHistos
void analyze(const edm::Event &event, const edm::EventSetup &context)
Analyze.
int runOccupancyTest(TH2F *histo, const DTChamberId &chId, float &chamberPercentage)
MonitorElement * summaryHisto
std::string nameMonitoredHisto
void beginJob()
BeginJob.
virtual ~DTOccupancyTest()
Destructor.
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
DTOccupancyTest(const edm::ParameterSet &ps)
Constructor.
void endJob()
Endjob.
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
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
DQM Client Diagnostic.
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::ESHandle< DTGeometry > muonGeom
void bookHistos(const int wheelId, std::string folder, std::string histoTag)
book the summary histograms
std::set< DTLayerId > monitoredLayers
std::string topFolder() const
Definition: Run.h:41
MonitorElement * glbSummaryHisto