CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTSegmentAnalysisTask.h
Go to the documentation of this file.
1 
2 #ifndef DTSegmentAnalysisTask_H
3 #define DTSegmentAnalysisTask_H
4 
23 //RecHit
25 
26 #include <string>
27 #include <map>
28 #include <vector>
29 
30 
31 class DTGeometry;
32 class DQMStore;
33 class MonitorElement;
35 
37 
38 
39 public:
42 
44  virtual ~DTSegmentAnalysisTask();
45 
47  void beginRun(const edm::Run& , const edm::EventSetup&);
48 
50  void endJob();
51 
52  // Operations
53  void analyze(const edm::Event& event, const edm::EventSetup& setup);
54 
56  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& eSetup);
57  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& eSetup);
58 
59 
60 protected:
61 
62 
63 private:
64 
65  // The BE interface
67 
68  // Switch for detailed analysis
70 
71  // Get the DT Geometry
73 
74  // Lable of 4D segments in the event
76 
77  // Get the map of noisy channels
79 
81 
82  // book the histos
83  void bookHistos(DTChamberId chamberId);
84  // Fill a set of histograms for a given chamber
85  void fillHistos(DTChamberId chamberId,
86  int nHits,
87  float chi2);
88 
89  // the histos
90  std::map<DTChamberId, std::vector<MonitorElement*> > histosPerCh;
91  std::map< int, MonitorElement* > summaryHistos;
92  std::map<int, std::map<int, DTTimeEvolutionHisto*> > histoTimeEvol;
93 
94  int nevents;
97 
98  // # of bins in the time histos
99  int nTimeBins;
100  // # of LS per bin in the time histos
102  // switch on/off sliding bins in time histos
104  // top folder for the histograms in DQMStore
106  // hlt DQM mode
108  // max phi angle of reconstructed segments
109  double phiSegmCut;
110  // min # hits of segment used to validate a segment in WB+-2/SecX/MB1
111  int nhitsCut;
112 
114 
115 };
116 #endif
117 
118 
119 /* Local Variables: */
120 /* show-trailing-whitespace: t */
121 /* truncate-lines: t */
122 /* End: */
void fillHistos(DTChamberId chamberId, int nHits, float chi2)
void analyze(const edm::Event &event, const edm::EventSetup &setup)
DTTimeEvolutionHisto * hNevtPerLS
std::map< int, MonitorElement * > summaryHistos
std::map< DTChamberId, std::vector< MonitorElement * > > histosPerCh
edm::ParameterSet parameters
edm::ESHandle< DTGeometry > dtGeom
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
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup)
Summary.
void beginRun(const edm::Run &, const edm::EventSetup &)
BeginRun.
virtual ~DTSegmentAnalysisTask()
Destructor.
MonitorElement * nEventMonitor
std::map< int, std::map< int, DTTimeEvolutionHisto * > > histoTimeEvol
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
DTSegmentAnalysisTask(const edm::ParameterSet &pset)
Constructor.
Definition: Run.h:41
void bookHistos(DTChamberId chamberId)