CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TSync_Offline.h
Go to the documentation of this file.
1 #ifndef DQMOffline_L1Trigger_L1TSync_Offline_h
2 #define DQMOffline_L1Trigger_L1TSync_Offline_h
3 
4 /*
5  * \class L1TSync_Offline
6  *
7  *
8  * Description: offline DQM module for L1Trigger/bunchStructure synchronization
9  *
10  * Implementation:
11  * <TODO: enter implementation details>
12  *
13  * \author: Pietro Vischia - LIP Lisbon pietro.vischia@gmail.com
14  *
15  * Changelog:
16  * 2012/08/10 11:01:01: First creation. Dummy module with actual code commented.
17  *
18  * Todo:
19  * - implement the module in offline
20  * - check if there are user includes specific for offline/online that should be changed
21  *
22  *
23  */
24 
25 // System include files
26 #include <memory>
27 #include <unistd.h>
28 
29 // User include files
36 
38 
43 
44 //L1 includes and dataformats
48 
50 
51 #include <TString.h>
52 
53 #include <iostream>
54 #include <fstream>
55 #include <string>
56 #include <vector>
57 
58 // Forward declarations
59 
60 // Class declaration
62 
63  public:
64 
65  enum BeamMode{
66  NOMODE=1,
67  SETUP=2,
72  RAMP=7,
74  QUEEZE=9,
75  ADJUST=10,
76  STABLE=11,
81  INJDUMP=16,
83  ABORT=18,
84  CYCLING=19,
85  WBDUMP=20,
86  NOBEAM=21
87  };
88 
89  enum Errors{
90  UNKNOWN = 1,
97  };
98 
99 
100  public:
101  // Constructor
103  // Destructor
104  virtual ~L1TSync_Offline();
105 
106  protected:
107 
108  void analyze (const edm::Event& e, const edm::EventSetup& c); // Analyze
109  virtual void beginLuminosityBlock(edm::LuminosityBlock const& lumiBlock, edm::EventSetup const& c);
110  virtual void dqmBeginRun(const edm::Run&, const edm::EventSetup&);
111  virtual void bookHistograms(DQMStore::IBooker &ibooker, const edm::Run&, const edm::EventSetup&) override;
112 // no lumi block // virtual void endLuminosityBlock (edm::LuminosityBlock const& lumiBlock, edm::EventSetup const& c);
113 
114 
115  // Private Methods
116  private:
117 
118  void getBeamConfOffline(const edm::Event&);
119 // no lumi block // void doFractionInSync(bool iForce=false, bool iBad=false);
120 // no lumi block // void certifyLSBlock (std::string iTrigger, int iInitLs, int iEndLs ,float iValue);
121 
122  // Variables
123  private:
124 
125  // Input parameters
127 
128  // ROOT output filename
130 
131  // bool
132  bool m_verbose;
135 
136  // Int
138  unsigned int m_currentLS; // Current LS
139  //unsigned int m_eventLS;
140  unsigned int m_lhcFill; //
141 
142  // Vectors
143  L1TBeamConfiguration m_beamConfig; // Current Bunch Structure
144 
145  // Const Vectors
146  const std::vector< std::vector<int> >* ListsPrescaleFactors; // Collection os all sets of prescales
147 
148  // Maps
149  std::map<TString,int> m_algoBit;
150  std::map<TString,unsigned int> m_certFirstLS; // First uncertified LS
151  std::map<TString,unsigned int> m_certLastLS; // Last uncertified LS
152  std::map<TString,MonitorElement*> m_algoCertification;
153  std::map<TString,MonitorElement*> m_algoVsBunchStructure;
154  std::map<std::string,bool> m_algoAutoSelect; // Map of categories to monitor
155  std::map<std::string,std::string> m_selectedTriggers; // Map of what trigger to monitor for each category
156 
157  // MonitorElement
159 
160  // Input tags
163 
164 };
165 
166 #endif
void getBeamConfOffline(const edm::Event &)
std::map< TString, unsigned int > m_certLastLS
MonitorElement * m_ErrorMonitor
L1TSync_Offline(const edm::ParameterSet &ps)
std::map< std::string, std::string > m_selectedTriggers
std::map< TString, unsigned int > m_certFirstLS
virtual void bookHistograms(DQMStore::IBooker &ibooker, const edm::Run &, const edm::EventSetup &) override
BeginRun.
virtual void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
edm::ParameterSet m_parameters
virtual void beginLuminosityBlock(edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
std::map< TString, int > m_algoBit
std::string m_outputFile
unsigned int m_lhcFill
virtual ~L1TSync_Offline()
void analyze(const edm::Event &e, const edm::EventSetup &c)
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > m_l1GtDataDaqInputTag
std::map< TString, MonitorElement * > m_algoCertification
unsigned int m_currentLS
std::map< std::string, bool > m_algoAutoSelect
edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > m_l1GtEvmSource
L1TBeamConfiguration m_beamConfig
const std::vector< std::vector< int > > * ListsPrescaleFactors
std::map< TString, MonitorElement * > m_algoVsBunchStructure
Definition: Run.h:41