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 
21 
22 #include "TH2F.h"
23 
24 #include <iostream>
25 #include <string>
26 #include <map>
27 
28 class DTGeometry;
29 class DTChamberId;
30 class DQMStore;
31 
32 #include "TFile.h"
33 #include "TNtuple.h"
34 
36 
37 public:
38 
41 
43  virtual ~DTOccupancyTest();
44 
45 protected:
46 
48  void beginJob();
49 
51  void beginRun(edm::Run const& run, edm::EventSetup const& context) ;
52 
54  void endJob();
55 
56  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
57 
59  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context);
60 
61 
63  void analyze(const edm::Event& event, const edm::EventSetup& context);
64 
65 private:
66 
68  void bookHistos(const int wheelId, std::string folder, std::string histoTag);
69 
71  std::string getMEName(std::string histoTag, const DTChamberId& chId);
72 
73  // Run the test on the occupancy histos
74  int runOccupancyTest(TH2F *histo, const DTChamberId& chId, float& chamberPercentage);
75 
76  std::string topFolder() const;
77 
78  int nevents;
79 
81 
83 
84  // wheel summary histograms
85  std::map< int, MonitorElement* > wheelHistos;
88 
89  std::set<DTLayerId> monitoredLayers;
90 
91  int lsCounter;
92  int nMinEvts;
93 
95  TFile *rootFile;
96  TNtuple *ntuple;
97  bool tpMode;
98 
102  std::string nameMonitoredHisto;
103 
104 };
105 
106 #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:33
MonitorElement * glbSummaryHisto