CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTLocalTriggerSynchTask.h
Go to the documentation of this file.
1 #ifndef DTLocalTriggerSynchTask_H
2 #define DTLocalTriggerSynchTask_H
3 
4 /*
5  * \file DTLocalTriggerSynchTask.h
6  *
7  * $Date: 2010/03/05 09:11:52 $
8  * $Revision: 1.4 $
9  * \author C. Battilana - CIEMAT
10  *
11 */
12 
18 
21 
23 
27 
30 
31 #include <vector>
32 #include <string>
33 #include <map>
34 
35 class DTGeometry;
36 class DTChamberId;
37 class DTRecSegment4D;
38 class DTTTrigBaseSync;
39 class DTLocalTrigger;
40 class L1MuDTChambPhDigi;
41 class L1MuDTChambThDigi;
42 
43 
45 
46  friend class DTMonitorModule;
47 
48  public:
49 
52 
54  virtual ~DTLocalTriggerSynchTask();
55 
56  protected:
57 
58  // BeginJob
59  void beginJob();
60 
62  void bookHistos(const DTChamberId& dtCh );
63 
65  void analyze(const edm::Event& event, const edm::EventSetup& context);
66 
68  void beginRun(const edm::Run& run, const edm::EventSetup& context);
69 
71  void endJob(void);
72 
73  std::string & baseDir() { return baseDirectory; }
74 
75  private:
76 
77  int nevents;
78 
79  int phCodeBestDCC[6][5][13];
80  int phCodeBXDCC[6][5][13][3];
81  int phCodeBestDDU[6][5][13];
82  int thCodeBestDDU[6][5][13];
83  int segHitBest[6][5][13];
84 
85  float bxTime;
86  bool rangeInBX;
87  int nBXLow;
88  int nBXHigh;
89  float angleRange;
90  float minHitsPhi;
91  int fineDelay;
93 
94  std::string baseDirectory;
95 
99  std::map<uint32_t, std::map<std::string, MonitorElement*> > triggerHistos;
101 
102 };
103 
104 #endif
void beginRun(const edm::Run &run, const edm::EventSetup &context)
Begin Run.
edm::ESHandle< DTGeometry > muonGeom
void analyze(const edm::Event &event, const edm::EventSetup &context)
Analyze.
virtual ~DTLocalTriggerSynchTask()
Destructor.
DTLocalTriggerSynchTask(const edm::ParameterSet &ps)
Constructor.
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
std::map< uint32_t, std::map< std::string, MonitorElement * > > triggerHistos
Definition: Run.h:33
void bookHistos(const DTChamberId &dtCh)
Book the histograms.