CMS 3D CMS Logo

DTTTrigCalibration.h
Go to the documentation of this file.
1 #ifndef CalibMuon_DTTTrigCalibration_H
2 #define CalibMuon_DTTTrigCalibration_H
3 
15 
16 #include <string>
17 #include <map>
18 
19 namespace edm {
20  class ParameterSet;
21  class Event;
22  class EventSetup;
23 } // namespace edm
24 
25 class TFile;
26 class TH1F;
27 class DTTimeBoxFitter;
28 class DTTTrigBaseSync;
29 class DTTtrig;
30 
32 public:
35 
37  ~DTTTrigCalibration() override;
38 
39  // Operations
40 
42  void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override;
43 
45  void endJob() override;
46 
47 protected:
48 private:
49  // Generate the time box name
50  std::string getTBoxName(const DTSuperLayerId& slId) const;
51  // Generate the time box name
52  std::string getOccupancyName(const DTLayerId& slId) const;
53 
54  // Print computed ttrig
55  void dumpTTrigMap(const DTTtrig* tTrig) const;
56 
57  // Plot computed ttrig
58  void plotTTrig(const DTTtrig* tTrig) const;
59 
60  // Debug flag
61  bool debug;
62 
63  // The label used to retrieve digis from the event
65 
66  // The TDC time-window
68  //The maximum number of digis per layer
70 
71  // The file which will contain the time boxes
72  TFile* theFile;
73 
74  // Map of the histograms by SL
75  std::map<DTSuperLayerId, TH1F*> theHistoMap;
76  std::map<DTLayerId, TH1F*> theOccupancyMap;
77 
78  // Switch for t0 subtraction
80  // Switch for checking of noisy channels
82  //card to switch on/off the DB writing
84  // the kfactor to be uploaded in the ttrig DB
85  double kFactor;
86 
87  // The fitter
88  std::unique_ptr<DTTimeBoxFitter> theFitter;
89  // The module for t0 subtraction
90  std::unique_ptr<DTTTrigBaseSync> theSync; //FIXME: should be const
91 };
92 #endif
std::map< DTSuperLayerId, TH1F * > theHistoMap
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
std::unique_ptr< DTTimeBoxFitter > theFitter
std::unique_ptr< DTTTrigBaseSync > theSync
HLT enums.
std::map< DTLayerId, TH1F * > theOccupancyMap
Definition: event.py:1