CMS 3D CMS Logo

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