test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TOMDSHelper.h
Go to the documentation of this file.
1 #ifndef DQM_L1TMONITOR_L1TOMDSHELPER_H
2 #define DQM_L1TMONITOR_L1TOMDSHELPER_H
3 
5 
7 
8 // ROOT includes
9 #include "TString.h"
10 
11 // System includes
12 #include <memory>
13 #include <iostream>
14 #include <string>
15 #include <vector>
16 #include <map>
17 
18 // Simplified structure for single object conditions information
20 
21  public:
22 
24  m_valid = false;
26  }
27 
28  bool bxConfig(int iBx){
29  if(beam1[iBx] && beam2[iBx]){return true;}
30  else {return false;}
31  }
32 
33  bool isValid() {return m_valid;}
34 
35  bool m_valid;
37  std::vector<bool> beam1;
38  std::vector<bool> beam2;
39 
40 };
41 
42 // Simplified structure for single object conditions information
44 
45  TString bitName; // Bit Name for which the fit refers to
46  TString fitFunction; // Fitting function (hard coded for now...)
47  float bitNumber; // Bit Number for which the fit refers to
48  float pm1, p0, p1, p2; // Fit parameters f(x)=pm1*x^(-1)+p0+p1*x+p2*x^2
49 
50 };
51 
53 
54  public:
55 
56  enum Error{
61  };
62 
63  public:
64 
65  L1TOMDSHelper();
66  ~L1TOMDSHelper(); // Destructor
67 
68  bool connect (std::string iOracleDB,std::string iPathCondDB,int &error);
69  std::map<std::string,WbMTriggerXSecFit> getWbMTriggerXsecFits(std::string iTable,int &error);
70  std::map<std::string,WbMTriggerXSecFit> getWbMAlgoXsecFits (int &error);
71  std::map<std::string,WbMTriggerXSecFit> getWbMTechXsecFits (int &error);
72  int getNumberCollidingBunches(int lhcFillNumber,int &error);
73  BeamConfiguration getBeamConfiguration (int lhcFillNumber,int &error);
74  std::vector<bool> getBunchStructure (int lhcFillNumber,int &error);
75  std::vector<float> getInitBunchLumi (int lhcFillNumber,int &error);
76  std::vector<double> getRelativeBunchLumi (int lhcFillNumber,int &error);
77 
79 
80  private:
81 
82 
85 
87 
88 };
89 
90 #endif
std::vector< float > getInitBunchLumi(int lhcFillNumber, int &error)
std::string m_oracleDB
Definition: L1TOMDSHelper.h:83
bool connect(std::string iOracleDB, std::string iPathCondDB, int &error)
l1t::OMDSReader * m_omdsReader
Definition: L1TOMDSHelper.h:86
std::vector< bool > getBunchStructure(int lhcFillNumber, int &error)
std::map< std::string, WbMTriggerXSecFit > getWbMTechXsecFits(int &error)
BeamConfiguration getBeamConfiguration(int lhcFillNumber, int &error)
std::map< std::string, WbMTriggerXSecFit > getWbMTriggerXsecFits(std::string iTable, int &error)
bool bxConfig(int iBx)
Definition: L1TOMDSHelper.h:28
int getNumberCollidingBunches(int lhcFillNumber, int &error)
std::string m_pathCondDB
Definition: L1TOMDSHelper.h:84
std::map< std::string, WbMTriggerXSecFit > getWbMAlgoXsecFits(int &error)
std::vector< bool > beam2
Definition: L1TOMDSHelper.h:38
std::string enumToStringError(int)
std::vector< bool > beam1
Definition: L1TOMDSHelper.h:37
std::vector< double > getRelativeBunchLumi(int lhcFillNumber, int &error)