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 // $Id: HcalDbOmds.h,v 1.12 2010/03/07 22:51:31 kukartse Exp $
6 //
7 #ifndef HcalDbOmds_h
8 #define HcalDbOmds_h
9 
10 #include <iostream>
11 
12 #include "xgi/Utils.h"
13 #include "toolbox/string.h"
15 
19 
20 
45 namespace HcalDbOmds {
46  bool getObject (oracle::occi::Connection * connection,
47  const std::string & fTag,
48  const std::string & fVersion,
49  const int fSubversion,
50  const int fIOVBegin,
51  const std::string & fQuery,
52  HcalPedestals* fObject);
53  bool dumpObject (std::ostream& fOutput, const HcalPedestals& fObject);
54  bool getObject (oracle::occi::Connection * connection,
55  const std::string & fTag,
56  const std::string & fVersion,
57  const int fSubversion,
58  const int fIOVBegin,
59  const std::string & fQuery,
60  HcalPedestalWidths* fObject);
61  bool dumpObject (std::ostream& fOutput, const HcalPedestalWidths& fObject);
62  bool getObject (oracle::occi::Connection * connection,
63  const std::string & fTag,
64  const std::string & fVersion,
65  const int fSubversion,
66  const int fIOVBegin,
67  const std::string & fQuery,
68  HcalGains* fObject);
69  bool dumpObject (std::ostream& fOutput, const HcalGains& fObject);
70  bool getObject (oracle::occi::Connection * connection,
71  const std::string & fTag,
72  const std::string & fVersion,
73  const int fSubversion,
74  const int fIOVBegin,
75  const std::string & fQuery,
76  HcalGainWidths* fObject);
77  bool dumpObject (std::ostream& fOutput, const HcalGainWidths& fObject);
78  bool getObject (oracle::occi::Connection * connection,
79  const std::string & fTag,
80  const std::string & fVersion,
81  const int fSubversion,
82  const int fIOVBegin,
83  const std::string & fQuery,
84  HcalQIEData* fObject);
85  bool dumpObject (std::ostream& fOutput, const HcalQIEData& fObject);
86  bool getObject (oracle::occi::Connection * connection,
87  const std::string & fTag,
88  const std::string & fVersion,
89  const int fSubversion,
90  const int fIOVBegin,
91  const std::string & fQuery,
92  HcalCalibrationQIEData* fObject);
93  bool dumpObject (std::ostream& fOutput, const HcalCalibrationQIEData& fObject);
94  bool getObject (oracle::occi::Connection * connection,
95  const std::string & fTag,
96  const std::string & fVersion,
97  const int fSubversion,
98  const int fIOVBegin,
99  const std::string & fQuery,
100  HcalElectronicsMap* fObject);
101  bool dumpObject (std::ostream& fOutput, const HcalElectronicsMap& fObject);
102  bool getObject (oracle::occi::Connection * connection,
103  const std::string & fTag,
104  const std::string & fVersion,
105  const int fSubversion,
106  const int fIOVBegin,
107  const std::string & fQuery,
108  HcalChannelQuality* fObject);
109  bool dumpObject (std::ostream& fOutput, const HcalChannelQuality& fObject);
110  bool getObject (oracle::occi::Connection * connection,
111  const std::string & fTag,
112  const std::string & fVersion,
113  const int fSubversion,
114  const int fIOVBegin,
115  const std::string & fQuery,
116  HcalRespCorrs* fObject);
117  bool dumpObject (std::ostream& fOutput, const HcalRespCorrs& fObject);
118  bool getObject (oracle::occi::Connection * connection,
119  const std::string & fTag,
120  const std::string & fVersion,
121  const int fSubversion,
122  const int fIOVBegin,
123  const std::string & fQuery,
124  HcalZSThresholds* fObject);
125  bool dumpObject (std::ostream& fOutput, const HcalZSThresholds& fObject);
126  bool getObject (oracle::occi::Connection * connection,
127  const std::string & fTag,
128  const std::string & fVersion,
129  const int fSubversion,
130  const int fIOVBegin,
131  const std::string & fQuery,
132  HcalL1TriggerObjects* fObject);
133  bool dumpObject (std::ostream& fOutput, const HcalL1TriggerObjects& fObject);
134  bool getObject (oracle::occi::Connection * connection,
135  const std::string & fTag,
136  const std::string & fVersion,
137  const int fSubversion,
138  const int fIOVBegin,
139  const std::string & fQuery,
140  HcalValidationCorrs* fObject);
141  bool dumpObject (std::ostream& fOutput, const HcalValidationCorrs& fObject);
142  bool getObject (oracle::occi::Connection * connection,
143  const std::string & fTag,
144  const std::string & fVersion,
145  const int fSubversion,
146  const int fIOVBegin,
147  const std::string & fQuery,
148  HcalLutMetadata* fObject);
149  bool dumpObject (std::ostream& fOutput, const HcalLutMetadata& fObject);
150  bool getObject (oracle::occi::Connection * connection,
151  const std::string & fTag,
152  const std::string & fVersion,
153  const int fSubversion,
154  const int fIOVBegin,
155  const std::string & fQuery,
156  HcalDcsValues* fObject);
157  bool dumpObject (std::ostream& fOutput, const HcalDcsValues& fObject);
158 
159  HcalSubdetector get_subdetector( std::string _det );
160  HcalZDCDetId::Section get_zdc_section( std::string _section );
161 
162  // get the proper detId from the result of the oracle query
163  // assumed that channel info comes in from of the ResultSet
164  // in the following order (some may not be filled):
165  // 1.objectname, ( values: HcalDetId, HcalCalibDetId, HcalTrigTowerDetId, HcalZDCDetId or HcalCastorDetId)
166  // 2.subdet, 3.ieta, 4.iphi, 5.depth, 6.type, 7.section, 8.ispositiveeta, 9.sector, 10.module, 11.channel
168 
169  // get DCS subdetector, sidering, slice, subchannel and type
170  // from a PVSS data point name string
171  HcalOtherSubdetector getSubDetFromDpName(std::string _dpname);
172  int getSideRingFromDpName(std::string _dpname);
173  unsigned int getSliceFromDpName(std::string _dpname);
174  unsigned int getSubChannelFromDpName(std::string _dpname);
175  HcalDcsDetId::DcsType getDcsTypeFromDpName(std::string _dpname);
176  HcalOtherSubdetector getSubDetFromString(std::string subdet);
178 
179  template<class T>
180  bool from_string(T& t, const std::string& s, std::ios_base& (*f)(std::ios_base&));
181 
182 }
183 #endif
type
Definition: HCALResponse.h:22
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:33
HcalDcsDetId::DcsType getDcsTypeFromString(std::string type)
HcalSubdetector
Definition: HcalAssistant.h:32
double f[11][100]
Definition: DetId.h:20
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:21
unsigned int getSubChannelFromDpName(std::string _dpname)
string s
Definition: asciidump.py:422
long double T
DetId getId(oracle::occi::ResultSet *rs)
HcalZDCDetId::Section get_zdc_section(std::string _section)
int getSideRingFromDpName(std::string _dpname)