CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TSync_Harvest.h
Go to the documentation of this file.
1 #ifndef DQMOffline_L1Trigger_L1TSync_Harvest_h
2 #define DQMOffline_L1Trigger_L1TSync_Harvest_h
3 
25 // System include files
26 #include <memory>
27 #include <unistd.h>
28 
29 // User include files
36 
38 
43 
46 
47 #include <TString.h>
48 
49 #include <iostream>
50 #include <fstream>
51 #include <string>
52 #include <vector>
53 
54 // Forward declarations
55 
56 // Class declaration
58 
59  public:
60 
61  enum BeamMode{
62  NOMODE=1,
63  SETUP=2,
68  RAMP=7,
70  QUEEZE=9,
71  ADJUST=10,
72  STABLE=11,
77  INJDUMP=16,
79  ABORT=18,
80  CYCLING=19,
81  WBDUMP=20,
82  NOBEAM=21
83  };
84 
85  enum Errors{
86  UNKNOWN = 1,
93  };
94 
95 
96  public:
97  // Constructor
99  // Destructor
100  virtual ~L1TSync_Harvest();
101 
102  protected:
103 
104  void analyze (const edm::Event& e, const edm::EventSetup& c); // Analyze
105  void beginJob(); // BeginJob
106  void endJob (void); // EndJob
107  void beginRun(const edm::Run& run, const edm::EventSetup& iSetup);
108  void endRun (const edm::Run& run, const edm::EventSetup& iSetup);
109 
110  virtual void beginLuminosityBlock(edm::LuminosityBlock const& lumiBlock, edm::EventSetup const& c);
111  virtual void endLuminosityBlock (edm::LuminosityBlock const& lumiBlock, edm::EventSetup const& c);
112 
113 
114  // Private Methods
115  private:
116 
117  void getBeamConfOMDS();
118  void doFractionInSync(bool iForce=false, bool iBad=false);
119  void certifyLSBlock (std::string iTrigger, int iInitLs, int iEndLs ,float iValue);
120 
121  // Variables
122  private:
123 
124  DQMStore * dbe; // The DQM Service Handle
125 
126  // Input parameters
128 
129  // ROOT output filename
131 
132  // bool
133  bool m_verbose;
136 
137  // Int
139  unsigned int m_currentLS; // Current LS
140  //unsigned int m_eventLS;
141  unsigned int m_lhcFill; //
142 
143  // Vectors
144  L1TBeamConfiguration m_beamConfig; // Current Bunch Structure
145 
146  // Const Vectors
147  const std::vector< std::vector<int> >* ListsPrescaleFactors; // Collection os all sets of prescales
148 
149  // Maps
150  std::map<TString,int> m_algoBit;
151  std::map<TString,unsigned int> m_certFirstLS; // First uncertified LS
152  std::map<TString,unsigned int> m_certLastLS; // Last uncertified LS
153  std::map<TString,MonitorElement*> m_algoCertification;
154  std::map<TString,MonitorElement*> m_algoVsBunchStructure;
155  std::map<std::string,bool> m_algoAutoSelect; // Map of categories to monitor
156  std::map<std::string,std::string> m_selectedTriggers; // Map of what trigger to monitor for each category
157 
158  // MonitorElement
160 
161  // Input tags
162  edm::InputTag m_scalersSource; // Where to get L1 Scalers
165 
166 };
167 
168 #endif
void beginRun(const edm::Run &run, const edm::EventSetup &iSetup)
BeginRun.
std::map< std::string, bool > m_algoAutoSelect
edm::ParameterSet m_parameters
std::map< TString, unsigned int > m_certFirstLS
std::map< TString, unsigned int > m_certLastLS
std::map< TString, MonitorElement * > m_algoVsBunchStructure
void certifyLSBlock(std::string iTrigger, int iInitLs, int iEndLs, float iValue)
edm::InputTag m_l1GtEvmSource
const std::vector< std::vector< int > > * ListsPrescaleFactors
std::map< TString, int > m_algoBit
void analyze(const edm::Event &e, const edm::EventSetup &c)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
std::map< std::string, std::string > m_selectedTriggers
void doFractionInSync(bool iForce=false, bool iBad=false)
MonitorElement * m_ErrorMonitor
std::string m_outputFile
void endRun(const edm::Run &run, const edm::EventSetup &iSetup)
void getBeamConfOMDS()
virtual void endLuminosityBlock(edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
std::map< TString, MonitorElement * > m_algoCertification
edm::InputTag m_l1GtDataDaqInputTag
L1TBeamConfiguration m_beamConfig
unsigned int m_lhcFill
L1TSync_Harvest(const edm::ParameterSet &ps)
virtual ~L1TSync_Harvest()
unsigned int m_currentLS
edm::InputTag m_scalersSource
Definition: Run.h:41