CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
30  DTTTrigWriter(const edm::ParameterSet& pset);
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
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup)
Compute the ttrig by fiting the TB rising edge.
TFile * theFile
Definition: DTTTrigWriter.h:56
void endJob()
Write ttrig in the DB.
DTTTrigWriter(const edm::ParameterSet &pset)
Constructor.
std::string getTBoxName(const DTSuperLayerId &slId) const
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
DTTtrig * tTrig
Definition: DTTTrigWriter.h:65
virtual ~DTTTrigWriter()
Destructor.