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 }
20 
21 class TFile;
22 class DTTimeBoxFitter;
23 class DTSuperLayerId;
24 class DTTtrig;
25 
26 
28 public:
31 
33  virtual ~DTTTrigWriter();
34 
35  // Operations
36 
38  void analyze(const edm::Event & event, const edm::EventSetup& eventSetup);
39 
41  void endJob();
42 
43 
44 protected:
45 
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 };
68 #endif
DTTimeBoxFitter * theFitter
Definition: DTTTrigWriter.h:62
std::string theRootInputFile
Definition: DTTTrigWriter.h:59
def analyze(function, filename, filter=None)
Definition: Profiling.py:11
TFile * theFile
Definition: DTTTrigWriter.h:56
DTTtrig * tTrig
Definition: DTTTrigWriter.h:65
HLT enums.
Definition: event.py:1