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 
25  bool bxConfig(int iBx){
26  if(beam1[iBx] && beam2[iBx]){return true;}
27  else {return false;}
28  }
29 
30  bool isValid(){return m_valid;}
31 
32  bool m_valid; // Bit Name for which the fit refers to
33  std::vector<bool> beam1;
34  std::vector<bool> beam2;
35 
36 };
37 
38 // Simplified structure for single object conditions information
40 
41  TString bitName; // Bit Name for which the fit refers to
42  TString fitFunction; // Fitting function (hard coded for now...)
43  float bitNumber; // Bit Number for which the fit refers to
44  float pm1, p0, p1, p2; // Fit parameters f(x)=pm1*x^(-1)+p0+p1*x+p2*x^2
45 
46 };
47 
49 
50  public:
51 
52  enum Error{
57  };
58 
59  public:
60 
61  L1TOMDSHelper();
62  ~L1TOMDSHelper(); // Destructor
63 
64  bool connect (std::string iOracleDB,std::string iPathCondDB,int &error);
65  std::map<std::string,WbMTriggerXSecFit> getWbMTriggerXsecFits(std::string iTable,int &error);
66  std::map<std::string,WbMTriggerXSecFit> getWbMAlgoXsecFits (int &error);
67  std::map<std::string,WbMTriggerXSecFit> getWbMTechXsecFits (int &error);
68  int getNumberCollidingBunches(int lhcFillNumber,int &error);
69  BeamConfiguration getBeamConfiguration (int lhcFillNumber,int &error);
70  std::vector<bool> getBunchStructure (int lhcFillNumber,int &error);
71  std::vector<float> getInitBunchLumi (int lhcFillNumber,int &error);
72  std::vector<double> getRelativeBunchLumi (int lhcFillNumber,int &error);
73 
74  std::string enumToStringError(int);
75 
76  private:
77 
78 
79  std::string m_oracleDB;
80  std::string m_pathCondDB;
81 
83 
84 };
85 
86 #endif
std::vector< float > getInitBunchLumi(int lhcFillNumber, int &error)
std::string m_oracleDB
Definition: L1TOMDSHelper.h:79
bool connect(std::string iOracleDB, std::string iPathCondDB, int &error)
l1t::OMDSReader * m_omdsReader
Definition: L1TOMDSHelper.h:82
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:25
int getNumberCollidingBunches(int lhcFillNumber, int &error)
std::string m_pathCondDB
Definition: L1TOMDSHelper.h:80
std::map< std::string, WbMTriggerXSecFit > getWbMAlgoXsecFits(int &error)
std::vector< bool > beam2
Definition: L1TOMDSHelper.h:34
std::string enumToStringError(int)
std::vector< bool > beam1
Definition: L1TOMDSHelper.h:33
std::vector< double > getRelativeBunchLumi(int lhcFillNumber, int &error)