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 
52 
53 #include <TString.h>
54 
55 #include <iostream>
56 #include <fstream>
57 #include <string>
58 #include <vector>
59 
60 // Forward declarations
61 
62 // Class declaration
64 
65  public:
66 
67  enum BeamMode{
68  NOMODE=1,
69  SETUP=2,
74  RAMP=7,
76  QUEEZE=9,
77  ADJUST=10,
78  STABLE=11,
83  INJDUMP=16,
85  ABORT=18,
86  CYCLING=19,
87  WBDUMP=20,
88  NOBEAM=21
89  };
90 
91  enum Errors{
92  UNKNOWN = 1,
99  };
100 
101 
102  public:
103  // Constructor
105  // Destructor
106  virtual ~L1TSync_Offline();
107 
108  protected:
109 
110  void analyze (const edm::Event& e, const edm::EventSetup& c); // Analyze
111  virtual void beginLuminosityBlock(edm::LuminosityBlock const& lumiBlock, edm::EventSetup const& c);
112  virtual void dqmBeginRun(const edm::Run&, const edm::EventSetup&);
113  virtual void bookHistograms(DQMStore::IBooker &ibooker, const edm::Run&, const edm::EventSetup&) override;
114 // no lumi block // virtual void endLuminosityBlock (edm::LuminosityBlock const& lumiBlock, edm::EventSetup const& c);
115 
116 
117  // Private Methods
118  private:
119 
120  void getBeamConfOffline(const edm::Event&);
121 // no lumi block // void doFractionInSync(bool iForce=false, bool iBad=false);
122 // no lumi block // void certifyLSBlock (std::string iTrigger, int iInitLs, int iEndLs ,float iValue);
123 
124  // Variables
125  private:
126 
127  // Input parameters
129 
130  // ROOT output filename
132 
133  // bool
134  bool m_verbose;
137 
138  // Int
140  unsigned int m_currentLS; // Current LS
141  //unsigned int m_eventLS;
142  unsigned int m_lhcFill; //
143 
144  // Vectors
145  L1TBeamConfiguration m_beamConfig; // Current Bunch Structure
146 
147  // Const Vectors
148  const std::vector< std::vector<int> >* ListsPrescaleFactors; // Collection os all sets of prescales
149 
150  // Maps
151  std::map<TString,int> m_algoBit;
152  std::map<TString,unsigned int> m_certFirstLS; // First uncertified LS
153  std::map<TString,unsigned int> m_certLastLS; // Last uncertified LS
154  std::map<TString,MonitorElement*> m_algoCertification;
155  std::map<TString,MonitorElement*> m_algoVsBunchStructure;
156  std::map<std::string,bool> m_algoAutoSelect; // Map of categories to monitor
157  std::map<std::string,std::string> m_selectedTriggers; // Map of what trigger to monitor for each category
158 
159  // MonitorElement
161 
162  // Input tags
165 
167 };
168 
169 #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 &)
L1GtUtils m_l1GtUtils
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:43