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