CMS 3D CMS Logo

DTTTrigWriter.h
Go to the documentation of this file.
1 #ifndef DTTTrigWriter_H
2 #define DTTTrigWriter_H
3 
4 /* Program to evaluate ttrig and sigma ttrig from TB histograms
5  * and write the results to a file for each SL
6 
7  * \author S. Bolognesi
8  */
9 
11 // #include "DataFormats/MuonDetId/interface/DTSuperLayerId.h"
12 
13 #include <string>
14 
15 namespace edm {
16  class ParameterSet;
17  class Event;
18  class EventSetup;
19 } // namespace edm
20 
21 class TFile;
22 class DTTimeBoxFitter;
23 class DTSuperLayerId;
24 class DTTtrig;
25 
27 public:
30 
32  ~DTTTrigWriter() override;
33 
34  // Operations
35 
37  void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override;
38 
40  void endJob() override;
41 
42 protected:
43 private:
44  // Generate the time box name
45  std::string getTBoxName(const DTSuperLayerId& slId) const;
46 
47  // Debug flag
48  bool debug;
49  // the kfactor to be uploaded in the ttrig DB
50  double kFactor;
51 
52  // The file which contains the tMax histograms
53  TFile* theFile;
54 
55  // The name of the input root file which contains the tMax histograms
57 
58  // The fitter
60 
61  // The object to be written to DB
63 };
64 #endif
DTTimeBoxFitter * theFitter
Definition: DTTTrigWriter.h:59
std::string theRootInputFile
Definition: DTTTrigWriter.h:56
TFile * theFile
Definition: DTTTrigWriter.h:53
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
DTTtrig * tTrig
Definition: DTTTrigWriter.h:62
HLT enums.
Definition: event.py:1