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 
12 // #include "DataFormats/MuonDetId/interface/DTSuperLayerId.h"
15 
16 #include <string>
17 
18 namespace edm {
19  class ParameterSet;
20  class Event;
21  class EventSetup;
22 } // namespace edm
23 
24 class TFile;
25 class DTTimeBoxFitter;
26 class DTSuperLayerId;
27 class DTTtrig;
28 
30 public:
33 
35  ~DTTTrigWriter() override;
36 
37  // Operations
38 
40  void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override;
41 
43  void endJob() override;
44 
45 protected:
46 private:
47  // Generate the time box name
48  std::string getTBoxName(const DTSuperLayerId& slId) const;
49 
50  // Debug flag
51  bool debug;
52  // the kfactor to be uploaded in the ttrig DB
53  double kFactor;
54 
55  // The file which contains the tMax histograms
56  TFile* theFile;
57 
58  // The name of the input root file which contains the tMax histograms
60 
61  // The fitter
63 
64  // The object to be written to DB
66 
67  //geom
70 };
71 #endif
DTTimeBoxFitter * theFitter
Definition: DTTTrigWriter.h:62
std::string theRootInputFile
Definition: DTTTrigWriter.h:59
TFile * theFile
Definition: DTTTrigWriter.h:56
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Compute the ttrig by fiting the TB rising edge.
DTTTrigWriter(const edm::ParameterSet &pset)
Constructor.
edm::ESHandle< DTGeometry > dtGeom
Definition: DTTTrigWriter.h:68
std::string getTBoxName(const DTSuperLayerId &slId) const
DTTtrig * tTrig
Definition: DTTTrigWriter.h:65
HLT enums.
Definition: event.py:1
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
Definition: DTTTrigWriter.h:69
void endJob() override
Write ttrig in the DB.
~DTTTrigWriter() override
Destructor.