CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalDbOmds.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Original Author: Gena Kukartsev Mar 11, 2009
4 // Adapted from HcalDbOmds.h
5 //
6 #ifndef HcalDbOmds_h
7 #define HcalDbOmds_h
8 
9 #include <iostream>
10 
12 
16 
17 
42 namespace HcalDbOmds {
43  bool getObject (oracle::occi::Connection * connection,
44  const std::string & fTag,
45  const std::string & fVersion,
46  const int fSubversion,
47  const int fIOVBegin,
48  const std::string & fQuery,
49  HcalPedestals* fObject);
50  bool dumpObject (std::ostream& fOutput, const HcalPedestals& fObject);
51  bool getObject (oracle::occi::Connection * connection,
52  const std::string & fTag,
53  const std::string & fVersion,
54  const int fSubversion,
55  const int fIOVBegin,
56  const std::string & fQuery,
57  HcalPedestalWidths* fObject);
58  bool dumpObject (std::ostream& fOutput, const HcalPedestalWidths& fObject);
59  bool getObject (oracle::occi::Connection * connection,
60  const std::string & fTag,
61  const std::string & fVersion,
62  const int fSubversion,
63  const int fIOVBegin,
64  const std::string & fQuery,
65  HcalGains* fObject);
66  bool dumpObject (std::ostream& fOutput, const HcalGains& fObject);
67  bool getObject (oracle::occi::Connection * connection,
68  const std::string & fTag,
69  const std::string & fVersion,
70  const int fSubversion,
71  const int fIOVBegin,
72  const std::string & fQuery,
73  HcalGainWidths* fObject);
74  bool dumpObject (std::ostream& fOutput, const HcalGainWidths& fObject);
75  bool getObject (oracle::occi::Connection * connection,
76  const std::string & fTag,
77  const std::string & fVersion,
78  const int fSubversion,
79  const int fIOVBegin,
80  const std::string & fQuery,
81  HcalQIEData* fObject);
82  bool dumpObject (std::ostream& fOutput, const HcalQIEData& fObject);
83  bool getObject (oracle::occi::Connection * connection,
84  const std::string & fTag,
85  const std::string & fVersion,
86  const int fSubversion,
87  const int fIOVBegin,
88  const std::string & fQuery,
89  HcalCalibrationQIEData* fObject);
90  bool dumpObject (std::ostream& fOutput, const HcalCalibrationQIEData& fObject);
91  bool getObject (oracle::occi::Connection * connection,
92  const std::string & fTag,
93  const std::string & fVersion,
94  const int fSubversion,
95  const int fIOVBegin,
96  const std::string & fQuery,
97  HcalElectronicsMap* fObject);
98  bool dumpObject (std::ostream& fOutput, const HcalElectronicsMap& fObject);
99  bool getObject (oracle::occi::Connection * connection,
100  const std::string & fTag,
101  const std::string & fVersion,
102  const int fSubversion,
103  const int fIOVBegin,
104  const std::string & fQuery,
105  HcalChannelQuality* fObject);
106  bool dumpObject (std::ostream& fOutput, const HcalChannelQuality& fObject);
107  bool getObject (oracle::occi::Connection * connection,
108  const std::string & fTag,
109  const std::string & fVersion,
110  const int fSubversion,
111  const int fIOVBegin,
112  const std::string & fQuery,
113  HcalRespCorrs* fObject);
114  bool dumpObject (std::ostream& fOutput, const HcalRespCorrs& fObject);
115  bool getObject (oracle::occi::Connection * connection,
116  const std::string & fTag,
117  const std::string & fVersion,
118  const int fSubversion,
119  const int fIOVBegin,
120  const std::string & fQuery,
121  HcalZSThresholds* fObject);
122  bool dumpObject (std::ostream& fOutput, const HcalZSThresholds& fObject);
123  bool getObject (oracle::occi::Connection * connection,
124  const std::string & fTag,
125  const std::string & fVersion,
126  const int fSubversion,
127  const int fIOVBegin,
128  const std::string & fQuery,
129  HcalL1TriggerObjects* fObject);
130  bool dumpObject (std::ostream& fOutput, const HcalL1TriggerObjects& fObject);
131  bool getObject (oracle::occi::Connection * connection,
132  const std::string & fTag,
133  const std::string & fVersion,
134  const int fSubversion,
135  const int fIOVBegin,
136  const std::string & fQuery,
137  HcalValidationCorrs* fObject);
138  bool dumpObject (std::ostream& fOutput, const HcalValidationCorrs& fObject);
139  bool getObject (oracle::occi::Connection * connection,
140  const std::string & fTag,
141  const std::string & fVersion,
142  const int fSubversion,
143  const int fIOVBegin,
144  const std::string & fQuery,
145  HcalLutMetadata* fObject);
146  bool dumpObject (std::ostream& fOutput, const HcalLutMetadata& fObject);
147  bool getObject (oracle::occi::Connection * connection,
148  const std::string & fTag,
149  const std::string & fVersion,
150  const int fSubversion,
151  const int fIOVBegin,
152  const std::string & fQuery,
153  HcalDcsValues* fObject);
154  bool dumpObject (std::ostream& fOutput, const HcalDcsValues& fObject);
155 
158 
159  // get the proper detId from the result of the oracle query
160  // assumed that channel info comes in from of the ResultSet
161  // in the following order (some may not be filled):
162  // 1.objectname, ( values: HcalDetId, HcalCalibDetId, HcalTrigTowerDetId, HcalZDCDetId or HcalCastorDetId)
163  // 2.subdet, 3.ieta, 4.iphi, 5.depth, 6.type, 7.section, 8.ispositiveeta, 9.sector, 10.module, 11.channel
165 
166  // get DCS subdetector, sidering, slice, subchannel and type
167  // from a PVSS data point name string
169  int getSideRingFromDpName(std::string _dpname);
170  unsigned int getSliceFromDpName(std::string _dpname);
171  unsigned int getSubChannelFromDpName(std::string _dpname);
175 
176  template<class T>
177  bool from_string(T& t, const std::string& s, std::ios_base& (*f)(std::ios_base&));
178 
179 }
180 #endif
type
Definition: HCALResponse.h:21
tuple t
Definition: tree.py:139
HcalOtherSubdetector getSubDetFromDpName(std::string _dpname)
IO for OMDS instances of Hcal Calibrations.
bool getObject(oracle::occi::Connection *connection, const std::string &fTag, const std::string &fVersion, const int fSubversion, const int fIOVBegin, const std::string &fQuery, HcalPedestals *fObject)
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
HcalOtherSubdetector getSubDetFromString(std::string subdet)
HcalSubdetector get_subdetector(std::string _det)
unsigned int getSliceFromDpName(std::string _dpname)
HcalOtherSubdetector
Definition: HcalAssistant.h:32
HcalDcsDetId::DcsType getDcsTypeFromString(std::string type)
HcalSubdetector
Definition: HcalAssistant.h:31
double f[11][100]
Definition: DetId.h:18
HcalDcsDetId::DcsType getDcsTypeFromDpName(std::string _dpname)
bool from_string(T &t, const std::string &s, std::ios_base &(*f)(std::ios_base &))
oracle::occi::ResultSet ResultSet
Definition: HcalDbOmds.cc:26
unsigned int getSubChannelFromDpName(std::string _dpname)
long double T
DetId getId(oracle::occi::ResultSet *rs)
HcalZDCDetId::Section get_zdc_section(std::string _section)
int getSideRingFromDpName(std::string _dpname)