CMS 3D CMS Logo

StoreESCondition.cc
Go to the documentation of this file.
2 
8 
9 #include <fstream>
10 #include <iostream>
11 #include <string>
12 #include <cstring>
13 #include <ctime>
14 #include <unistd.h>
15 
16 using std::string;
17 
19  prog_name_ = "StoreESCondition";
20 
21  logfile_ = iConfig.getParameter<std::string>("logfile");
22 
23  esgain_ = iConfig.getParameter<unsigned int>("gain");
24 
25  typedef std::vector<edm::ParameterSet> Parameters;
26  Parameters toPut = iConfig.getParameter<Parameters>("toPut");
27  for (Parameters::iterator itToPut = toPut.begin(); itToPut != toPut.end(); ++itToPut) {
28  inpFileName_.push_back(itToPut->getUntrackedParameter<std::string>("inputFile"));
29  objectName_.push_back(itToPut->getUntrackedParameter<std::string>("conditionType"));
30  since_.push_back(itToPut->getUntrackedParameter<unsigned int>("since"));
31  }
32 }
33 
36  if (!mydbservice.isAvailable()) {
37  edm::LogError("StoreESCondition") << "PoolDBOutputService is unavailable"
38  << "\n";
39  return;
40  }
41 
42  bool toAppend = false;
43  // copy a string to the char *
44  std::string message = "finished OK\n";
45  size_t messageSize = message.size() + 1;
46  char* messChar = new char[messageSize];
47  strncpy(messChar, message.c_str(), messageSize);
48 
49  for (unsigned int i = 0; i < objectName_.size(); i++) {
50  cond::Time_t newTime;
51 
52  if (mydbservice->isNewTagRequest(objectName_[i] + std::string("Rcd"))) {
53  // This is the first object for this tag.
54  // Append mode should be off.
55  // newTime is the end of this new objects IOV.
56  newTime = mydbservice->beginOfTime();
57  } else {
58  // There should already be an object in the DB for this tag.
59  // Append IOV mode should be on.
60  // newTime is the beginning of this new objects IOV.
61  toAppend = true;
62  newTime = (cond::Time_t)since_[i];
63  }
64  edm::LogInfo("StoreESCondition") << "Reading " << objectName_[i] << " from file and writing to DB with newTime "
65  << newTime << "\n";
66  if (objectName_[i] == "ESChannelStatus") {
67  edm::LogInfo("StoreESCondition") << " ESChannelStatus file " << inpFileName_[i] << "\n";
69  edm::LogInfo("StoreESCondition") << " ESChannelStatus file read "
70  << "\n";
71  if (!toAppend) {
72  edm::LogInfo("StoreESCondition") << " before create "
73  << "\n";
74  mydbservice->createNewIOV<ESChannelStatus>(mycali, newTime, mydbservice->endOfTime(), "ESChannelStatusRcd");
75  edm::LogInfo("StoreESCondition") << " after create "
76  << "\n";
77  } else {
78  edm::LogInfo("StoreESCondition") << " before append "
79  << "\n";
80  mydbservice->appendSinceTime<ESChannelStatus>(mycali, newTime, "ESChannelStatusRcd");
81  edm::LogInfo("StoreESCondition") << " after append "
82  << "\n";
83  }
84  } else if (objectName_[i] == "ESIntercalibConstants") {
86  if (!toAppend) {
87  mydbservice->createNewIOV<ESIntercalibConstants>(
88  myintercalib, newTime, mydbservice->endOfTime(), "ESIntercalibConstantsRcd");
89  } else {
90  mydbservice->appendSinceTime<ESIntercalibConstants>(myintercalib, newTime, "ESIntercalibConstantsRcd");
91  }
92  } else if (objectName_[i] == "ESTimeSampleWeights") {
94  if (!toAppend) {
95  mydbservice->createNewIOV<ESTimeSampleWeights>(
96  myintercalib, newTime, mydbservice->endOfTime(), "ESTimeSampleWeightsRcd");
97  } else {
98  mydbservice->appendSinceTime<ESTimeSampleWeights>(myintercalib, newTime, "ESTimeSampleWeightsRcd");
99  }
100  } else if (objectName_[i] == "ESGain") {
101  ESGain* myintercalib = readESGainFromFile(inpFileName_[i].c_str());
102  if (!toAppend) {
103  mydbservice->createNewIOV<ESGain>(myintercalib, newTime, mydbservice->endOfTime(), "ESGainRcd");
104  } else {
105  mydbservice->appendSinceTime<ESGain>(myintercalib, newTime, "ESGainRcd");
106  }
107  } else if (objectName_[i] == "ESMissingEnergyCalibration") {
109  if (!toAppend) {
111  myintercalib, newTime, mydbservice->endOfTime(), "ESMissingEnergyCalibrationRcd");
112  } else {
114  myintercalib, newTime, "ESMissingEnergyCalibrationRcd");
115  }
116  } else if (objectName_[i] == "ESRecHitRatioCuts") {
118  if (!toAppend) {
119  mydbservice->createNewIOV<ESRecHitRatioCuts>(
120  myintercalib, newTime, mydbservice->endOfTime(), "ESRecHitRatioCutsRcd");
121  } else {
122  mydbservice->appendSinceTime<ESRecHitRatioCuts>(myintercalib, newTime, "ESRecHitRatioCutsRcd");
123  }
124  } else if (objectName_[i] == "ESThresholds") {
125  ESThresholds* myintercalib = readESThresholdsFromFile(inpFileName_[i].c_str());
126  if (!toAppend) {
127  mydbservice->createNewIOV<ESThresholds>(myintercalib, newTime, mydbservice->endOfTime(), "ESThresholdsRcd");
128  } else {
129  mydbservice->appendSinceTime<ESThresholds>(myintercalib, newTime, "ESThresholdsRcd");
130  }
131  } else if (objectName_[i] == "ESPedestals") {
132  ESPedestals* myintercalib = readESPedestalsFromFile(inpFileName_[i].c_str());
133  if (!toAppend) {
134  mydbservice->createNewIOV<ESPedestals>(myintercalib, newTime, mydbservice->endOfTime(), "ESPedestalsRcd");
135  } else {
136  mydbservice->appendSinceTime<ESPedestals>(myintercalib, newTime, "ESPedestalsRcd");
137  }
138  } else if (objectName_[i] == "ESEEIntercalibConstants") {
140  if (!toAppend) {
142  myintercalib, newTime, mydbservice->endOfTime(), "ESEEIntercalibConstantsRcd");
143  } else {
144  mydbservice->appendSinceTime<ESEEIntercalibConstants>(myintercalib, newTime, "ESEEIntercalibConstantsRcd");
145  }
146  } else {
147  edm::LogError("StoreESCondition") << "Object " << objectName_[i] << " is not supported by this program."
148  << "\n";
149  }
150  // if more records write here else if ....
151 
152  writeToLogFileResults(messChar);
153 
154  edm::LogInfo("StoreESCondition") << "Finished endJob"
155  << "\n";
156  }
157 
158  delete[] messChar;
159 }
160 
162 
163 void StoreESCondition::analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) {}
164 
165 void StoreESCondition::writeToLogFile(string a, string b, unsigned long long since) {
166  FILE* outFile; // output log file for appending
167  outFile = fopen(logfile_.c_str(), "a");
168  if (!outFile) {
169  edm::LogError("StoreESCondition") << "*** Can not open file: " << logfile_;
170  return;
171  }
172  char header[256];
174  char appendMode[10];
175  if (since != 0)
176  strcpy(appendMode, "append");
177  else
178  strcpy(appendMode, "create");
179 
180  //fprintf(outFile, "%s %s condition from file %s written into DB for SM %d (mapped to SM %d) in %s mode (since run %u)\n",
181  //header, a.c_str(), b.c_str(), appendMode, (unsigned int)since);
182 
183  fclose(outFile); // close out file
184 }
185 
187  FILE* outFile; // output log file for appending
188  outFile = fopen(logfile_.c_str(), "a");
189  if (!outFile) {
190  edm::LogError("StoreESCondition") << "*** Can not open file: " << logfile_;
191  return;
192  }
193  char header[256];
195  fprintf(outFile, "%s %s\n", header, arg);
196  fclose(outFile); // close out file
197 }
198 
200  time_t rawtime;
201  struct tm* timeinfo;
202  time(&rawtime);
203  timeinfo = localtime(&rawtime);
204  char user[50];
205  strcpy(user, getlogin());
206  strcpy(header, asctime(timeinfo));
207  strcpy(header, user);
208 }
209 
211  std::ifstream ESThresholdsFile(edm::FileInPath(inputFile).fullPath().c_str());
212  float ts2, zs; //2nd time sample, ZS threshold
213  ESThresholdsFile >> ts2;
214  ESThresholdsFile >> zs;
215  ESThresholds* esThresholds = new ESThresholds(ts2, zs);
216 
217  return esThresholds;
218 }
219 
221  std::ifstream ESEEIntercalibFile(edm::FileInPath(inputFile).fullPath().c_str());
222  float gammaLow0, alphaLow0, gammaHigh0, alphaHigh0, gammaLow1, alphaLow1, gammaHigh1, alphaHigh1, gammaLow2,
223  alphaLow2, gammaHigh2, alphaHigh2, gammaLow3, alphaLow3, gammaHigh3, alphaHigh3;
224  // const float ESEEIntercalibValue[16];
225  // for (int i = 0; i < 16; ++i) {
226  // ESEEIntercalibFile >> ESEEIntercalibValue[i];
227  // }
228  // ESEEIntercalibConstants* eseeIntercalibConstants = new ESEEIntercalibConstants(ESEEIntercalibValue);
229  ESEEIntercalibFile >> gammaLow0;
230  ESEEIntercalibFile >> alphaLow0;
231  ESEEIntercalibFile >> gammaHigh0;
232  ESEEIntercalibFile >> alphaHigh0;
233  ESEEIntercalibFile >> gammaLow1;
234  ESEEIntercalibFile >> alphaLow1;
235  ESEEIntercalibFile >> gammaHigh1;
236  ESEEIntercalibFile >> alphaHigh1;
237  ESEEIntercalibFile >> gammaLow2;
238  ESEEIntercalibFile >> alphaLow2;
239  ESEEIntercalibFile >> gammaHigh2;
240  ESEEIntercalibFile >> alphaHigh2;
241  ESEEIntercalibFile >> gammaLow3;
242  ESEEIntercalibFile >> alphaLow3;
243  ESEEIntercalibFile >> gammaHigh3;
244  ESEEIntercalibFile >> alphaHigh3;
245  ESEEIntercalibConstants* eseeIntercalibConstants = new ESEEIntercalibConstants(gammaLow0,
246  alphaLow0,
247  gammaHigh0,
248  alphaHigh0,
249  gammaLow1,
250  alphaLow1,
251  gammaHigh1,
252  alphaHigh1,
253  gammaLow2,
254  alphaLow2,
255  gammaHigh2,
256  alphaHigh2,
257  gammaLow3,
258  alphaLow3,
259  gammaHigh3,
260  alphaHigh3);
261 
262  return eseeIntercalibConstants;
263 }
264 
266  std::ifstream ESMissingEnergyFile(edm::FileInPath(inputFile).fullPath().c_str());
267  float ConstAEta0, ConstBEta0, ConstAEta1, ConstBEta1, ConstAEta2, ConstBEta2, ConstAEta3, ConstBEta3;
268  ESMissingEnergyFile >> ConstAEta0;
269  ESMissingEnergyFile >> ConstBEta0;
270  ESMissingEnergyFile >> ConstAEta1;
271  ESMissingEnergyFile >> ConstBEta1;
272  ESMissingEnergyFile >> ConstAEta2;
273  ESMissingEnergyFile >> ConstBEta2;
274  ESMissingEnergyFile >> ConstAEta3;
275  ESMissingEnergyFile >> ConstBEta3;
277  ConstAEta0, ConstBEta0, ConstAEta1, ConstBEta1, ConstAEta2, ConstBEta2, ConstAEta3, ConstBEta3);
278 
279  return esMissingEnergy;
280 }
281 
283  ESPedestals* esPedestals = new ESPedestals();
284 
285  // int ped[2][2][40][40][32];
286  // for (int i=0; i<2; ++i)
287  // for (int j=0; j<2; ++j)
288  // for (int k=0; k<40; ++k)
289  // for (int m=0; m<40; ++m)
290  // for (int n=0; n<32; ++n)
291  // ped[i][j][k][m][n] = 0;
292 
294 
295  int iz, ip, ix, iy, is, ped_, zside;
296  std::ifstream pedestalFile(edm::FileInPath(inputFile).fullPath().c_str());
297 
298  for (int i = 0; i < 137216; ++i) {
299  pedestalFile >> iz >> ip >> ix >> iy >> is >> ped_;
300 
301  zside = (iz == -1) ? 1 : 0;
302  ped[zside][ip - 1][ix - 1][iy - 1][is - 1] = ped_;
303  }
304 
305  for (int iz = -1; iz <= 1; ++iz) {
306  if (iz == 0)
307  continue;
308  zside = (iz == -1) ? 1 : 0;
309 
310  for (int iplane = ESDetId::PLANE_MIN; iplane <= ESDetId::PLANE_MAX; ++iplane)
311  for (int ix = ESDetId::IX_MIN; ix <= ESDetId::IX_MAX; ++ix)
312  for (int iy = ESDetId::IY_MIN; iy <= ESDetId::IY_MAX; ++iy)
313  for (int istrip = ESDetId::ISTRIP_MIN; istrip <= ESDetId::ISTRIP_MAX; ++istrip) {
314  ESPedestals::Item ESitem;
315  ESitem.mean = ped[zside][iplane - 1][ix - 1][iy - 1][istrip - 1];
316  ESitem.rms = 3; // LG : 3, HG : 6
317 
318  if (ESDetId::validDetId(istrip, ix, iy, iplane, iz)) {
319  ESDetId esId(istrip, ix, iy, iplane, iz);
320  esPedestals->insert(std::make_pair(esId.rawId(), ESitem));
321  }
322  }
323  }
324 
325  return esPedestals;
326 }
327 
329  std::ifstream ESRecHitRatioCutsFile(edm::FileInPath(inputFile).fullPath().c_str());
330 
331  float r12Low, r23Low, r12High, r23High;
332  ESRecHitRatioCutsFile >> r12Low;
333  ESRecHitRatioCutsFile >> r23Low;
334  ESRecHitRatioCutsFile >> r12High;
335  ESRecHitRatioCutsFile >> r23High;
336  ESRecHitRatioCuts* esRecHitRatioCuts = new ESRecHitRatioCuts(r12Low, r23Low, r12High, r23High);
337  // cout<<"We are in RH ratio cut : gain : " << esgain_<<endl;
338 
339  // HG (R12Low, R23Low, R12High, R23High)
340  // ESRecHitRatioCuts* esRecHitRatioCuts;
341  //if (esgain_ == 2) esRecHitRatioCuts = new ESRecHitRatioCuts(-99999., 0.24, 0.61, 2.23);
342  // if (esgain_ == 2) esRecHitRatioCuts = new ESRecHitRatioCuts(-99999., 0.61, 0.24, 2.23); // HG
343  // else esRecHitRatioCuts = new ESRecHitRatioCuts(-99999., 0.2, 0.39, 2.8);
344  // LG (R12Low, R23Low, R12High, R23High)
345  //ESRecHitRatioCuts* esRecHitRatioCuts = new ESRecHitRatioCuts(-99999., 99999., -99999., 99999.); // first running
346  //ESRecHitRatioCuts* esRecHitRatioCuts = new ESRecHitRatioCuts(-99999., 0.2, 0.39, 2.8);
347 
348  return esRecHitRatioCuts;
349 }
350 
352  std::ifstream amplFile(edm::FileInPath(inputFile).fullPath().c_str());
353 
354  int gain;
355  amplFile >> gain;
356  edm::LogInfo("StoreESCondition") << "gain : " << gain << "\n";
357 
358  ESGain* esGain = new ESGain(gain); // 1: LG, 2: HG
359  return esGain;
360 }
361 
363  std::ifstream amplFile(edm::FileInPath(inputFile).fullPath().c_str());
364 
365  float w[3];
366  for (int k = 0; k < 3; ++k) {
367  float ww;
368  amplFile >> ww;
369  w[k] = ww;
370  edm::LogInfo("StoreESCondition") << "weight : " << k << " " << w[k] << "\n";
371  }
372 
373  ESTimeSampleWeights* esWeights = new ESTimeSampleWeights(w[0], w[1], w[2]);
374  return esWeights;
375 }
376 
379 
380  std::ifstream mipFile(edm::FileInPath(inputFile).fullPath().c_str());
381 
382  for (int i = 0; i < 137216; ++i) {
383  int iz, ip, ix, iy, is;
384  double mip;
385  mipFile >> iz >> ip >> ix >> iy >> is >> mip;
386  //if (mip <20 || mip> 70) cout<<iz<<" "<<ip<<" "<<ix<<" "<<iy<<" "<<is<<" "<<mip<<endl; // HG
387  // LG : HG MIP/6/1.14
388  //mip = mip/6/1.14;
389  // LG : HG MIP/6
390  if (esgain_ == 1)
391  mip = mip / 6.; // LG
392  if (mip < 20 || mip > 70)
393  edm::LogInfo("StoreESCondition") << iz << " " << ip << " " << ix << " " << iy << " " << is << " " << mip
394  << "\n"; // LG
395 
396  if (ESDetId::validDetId(is, ix, iy, ip, iz)) {
397  ESDetId esId(is, ix, iy, ip, iz);
398  ical->setValue(esId.rawId(), mip);
399  }
400  }
401 
402  return ical;
403 }
404 
406  int z[1000], p[1000], x[1000], y[1000], nsensors;
407  std::ifstream statusFile(edm::FileInPath(inputFile).fullPath().c_str());
408  statusFile >> nsensors;
409  edm::LogInfo("StoreESCondition") << " nsensors " << nsensors << "\n";
410  if (nsensors >= 1000) {
411  edm::LogInfo("StoreESCondition") << " *** value too high, modify the method!***"
412  << "\n";
413  exit(-1);
414  }
415  for (int i = 0; i < nsensors; ++i) {
416  statusFile >> z[i] >> p[i] >> x[i] >> y[i];
417  }
418  ESChannelStatus* ecalStatus = new ESChannelStatus();
419  int Nbstatus = 0, Nbstrip = 0;
420  for (int istrip = ESDetId::ISTRIP_MIN; istrip <= ESDetId::ISTRIP_MAX; istrip++) {
421  for (int ix = ESDetId::IX_MIN; ix <= ESDetId::IX_MAX; ix++) {
422  for (int iy = ESDetId::IY_MIN; iy <= ESDetId::IY_MAX; iy++) {
423  for (int iplane = 1; iplane <= 2; iplane++) {
424  for (int izeta = -1; izeta <= 1; izeta = izeta + 2) {
425  // if (izeta==0) continue;
426  // try {
427 
428  //ESDetId Plane iplane Zside izeta
429  // if(!ESDetId::validDetId(istrip,ix,iy,iplane,izeta)) cout << " Unvalid DetId" << endl;
430  // else {
431  if (ESDetId::validDetId(istrip, ix, iy, iplane, izeta)) {
432  ESDetId anESId(istrip, ix, iy, iplane, izeta);
433  int status = 0;
434  // std::ifstream statusFile(edm::FileInPath(inputFile).fullPath().c_str());
435  Nbstrip++;
436  for (int i = 0; i < nsensors; ++i) {
437  if (izeta == z[i] && iplane == p[i] && ix == x[i] && iy == y[i])
438  status = 1;
439  }
440  if (status == 1) {
441  Nbstatus++;
442  if (istrip == 1)
443  edm::LogInfo("StoreESCondition") << " Bad channel ix " << ix << " iy " << iy << " iplane " << iplane
444  << " iz " << izeta << "\n"; // print only once
445  }
446  ecalStatus->setValue(anESId, status);
447  // statusFile.close();
448  } // valid DetId
449  // catch ( cms::Exception &e ) { }
450  } // loop over z
451  } // loop over plane
452  } // loop over y
453  } // loop over x
454  } // loop over strips
455  edm::LogInfo("StoreESCondition") << " Nb of strips " << Nbstrip << " Number of bad channels " << Nbstatus << "\n";
456  statusFile.close();
457 
458  // overwrite the statuses which are in the file
459  return ecalStatus;
460 }
ESGain
Definition: ESGain.h:7
StoreESCondition::fillHeader
void fillHeader(char *)
Definition: StoreESCondition.cc:199
StoreESCondition::readESIntercalibConstantsFromFile
ESIntercalibConstants * readESIntercalibConstantsFromFile(const char *)
Definition: StoreESCondition.cc:377
DDAxes::y
StoreESCondition::inpFileName_
std::vector< std::string > inpFileName_
Definition: StoreESCondition.h:55
ESMissingEnergyCalibration
Definition: ESMissingEnergyCalibration.h:7
mps_fire.i
i
Definition: mps_fire.py:428
MessageLogger.h
ESDetId::ISTRIP_MIN
static const int ISTRIP_MIN
Definition: ESDetId.h:68
StoreESCondition::logfile_
std::string logfile_
Definition: StoreESCondition.h:59
cond::service::PoolDBOutputService::beginOfTime
cond::Time_t beginOfTime() const
Definition: PoolDBOutputService.cc:215
mps_update.status
status
Definition: mps_update.py:69
ecaldqm::zside
int zside(DetId const &)
Definition: EcalDQMCommonUtils.cc:189
contentValuesFiles.fullPath
fullPath
Definition: contentValuesFiles.py:64
ESThresholds
Definition: ESThresholds.h:7
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
cond::service::PoolDBOutputService::appendSinceTime
void appendSinceTime(const T *payloadObj, cond::Time_t sinceTime, const std::string &recordName)
Definition: PoolDBOutputService.h:141
ESChannelStatus
ESChannelStatusMap ESChannelStatus
Definition: ESChannelStatus.h:7
ESDetId
Definition: ESDetId.h:15
DDAxes::x
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
StoreESCondition::analyze
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
Definition: StoreESCondition.cc:163
StoreESCondition::StoreESCondition
StoreESCondition(const edm::ParameterSet &iConfig)
Definition: StoreESCondition.cc:18
edm::Service::isAvailable
bool isAvailable() const
Definition: Service.h:40
StoreESCondition::readESThresholdsFromFile
ESThresholds * readESThresholdsFromFile(const char *)
Definition: StoreESCondition.cc:210
StoreESCondition.h
ESDetId::IY_MIN
static const int IY_MIN
Definition: ESDetId.h:65
edm::FileInPath
Definition: FileInPath.h:64
StoreESCondition::readESRecHitRatioCutsFromFile
ESRecHitRatioCuts * readESRecHitRatioCutsFromFile(const char *)
Definition: StoreESCondition.cc:328
PoolDBOutputService.h
cond::service::PoolDBOutputService::createNewIOV
void createNewIOV(const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName)
Definition: PoolDBOutputService.h:116
Service.h
ESCondObjectContainer::insert
void insert(std::pair< uint32_t, Item > const &a)
Definition: ESCondObjectContainer.h:27
w
const double w
Definition: UKUtility.cc:23
ESPedestal
Definition: ESPedestals.h:8
StoreESCondition::prog_name_
std::string prog_name_
Definition: StoreESCondition.h:57
DDAxes::z
StoreESCondition::writeToLogFileResults
void writeToLogFileResults(char *)
Definition: StoreESCondition.cc:186
StoreESCondition::writeToLogFile
void writeToLogFile(std::string, std::string, unsigned long long)
Definition: StoreESCondition.cc:165
StoreESCondition::readESGainFromFile
ESGain * readESGainFromFile(const char *)
Definition: StoreESCondition.cc:351
StoreESCondition::readESMissingEnergyFromFile
ESMissingEnergyCalibration * readESMissingEnergyFromFile(const char *)
Definition: StoreESCondition.cc:265
writeEcalDQMStatus.since
since
Definition: writeEcalDQMStatus.py:53
ESRecHitRatioCuts
Definition: ESRecHitRatioCuts.h:7
dqmdumpme.k
k
Definition: dqmdumpme.py:60
StoreESCondition::endJob
void endJob() override
Definition: StoreESCondition.cc:34
StoreESCondition::readESEEIntercalibConstantsFromFile
ESEEIntercalibConstants * readESEEIntercalibConstantsFromFile(const char *)
Definition: StoreESCondition.cc:220
ESDetId::PLANE_MIN
static const int PLANE_MIN
Definition: ESDetId.h:70
b
double b
Definition: hdecay.h:118
StoreESCondition::objectName_
std::vector< std::string > objectName_
Definition: StoreESCondition.h:54
StoreESCondition::esgain_
unsigned int esgain_
Definition: StoreESCondition.h:61
L1TdeCSCTF_cfi.outFile
outFile
Definition: L1TdeCSCTF_cfi.py:5
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ESDetId::PLANE_MAX
static const int PLANE_MAX
Definition: ESDetId.h:71
edm::ParameterSet
Definition: ParameterSet.h:47
a
double a
Definition: hdecay.h:119
Event.h
ESDetId::ISTRIP_MAX
static const int ISTRIP_MAX
Definition: ESDetId.h:69
StoreESCondition::readESChannelStatusFromFile
ESChannelStatus * readESChannelStatusFromFile(const char *)
Definition: StoreESCondition.cc:405
cond::Time_t
unsigned long long Time_t
Definition: Time.h:14
ESTimeSampleWeights
Definition: ESTimeSampleWeights.h:7
edm::Service< cond::service::PoolDBOutputService >
dtResolutionTest_cfi.inputFile
inputFile
Definition: dtResolutionTest_cfi.py:14
es_dqm_sourceclient-live_cfg.ESGain
ESGain
Definition: es_dqm_sourceclient-live_cfg.py:39
edm::EventSetup
Definition: EventSetup.h:57
DBConfiguration_cff.toPut
toPut
Definition: DBConfiguration_cff.py:25
ESPedestal::rms
float rms
Definition: ESPedestals.h:17
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
ESCondObjectContainer
Definition: ESCondObjectContainer.h:11
ESDetId::IY_MAX
static const int IY_MAX
Definition: ESDetId.h:67
EnviromentSettings.user
user
Definition: EnviromentSettings.py:30
PedestalClient_cfi.gain
gain
Definition: PedestalClient_cfi.py:37
cond::service::PoolDBOutputService::endOfTime
cond::Time_t endOfTime() const
Definition: PoolDBOutputService.cc:213
ESPedestal::mean
float mean
Definition: ESPedestals.h:16
ESDetId::IZ_NUM
static const int IZ_NUM
Definition: ESDetId.h:72
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
StoreESCondition::readESTimeSampleWeightsFromFile
ESTimeSampleWeights * readESTimeSampleWeightsFromFile(const char *)
Definition: StoreESCondition.cc:362
ESDetId::validDetId
static bool validDetId(int istrip, int ixs, int iys, int iplane, int iz)
check if a valid index combination
Definition: ESDetId.cc:15
ESPedestals
ESPedestalsMap ESPedestals
Definition: ESPedestals.h:29
StoreESCondition::readESPedestalsFromFile
ESPedestals * readESPedestalsFromFile(const char *)
Definition: StoreESCondition.cc:282
cond::service::PoolDBOutputService::isNewTagRequest
bool isNewTagRequest(const std::string &recordName)
Definition: PoolDBOutputService.cc:128
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ESDetId::IX_MIN
static const int IX_MIN
Definition: ESDetId.h:64
StoreESCondition::~StoreESCondition
~StoreESCondition() override
Definition: StoreESCondition.cc:161
RecoTauValidation_cfi.header
header
Definition: RecoTauValidation_cfi.py:292
funct::arg
A arg
Definition: Factorize.h:31
ESDetId::IX_MAX
static const int IX_MAX
Definition: ESDetId.h:66
ESEEIntercalibConstants
Definition: ESEEIntercalibConstants.h:7
beamvalidation.exit
def exit(msg="")
Definition: beamvalidation.py:53
ParameterSet.h
ntuplemaker.time
time
Definition: ntuplemaker.py:310
ESIntercalibConstants
ESIntercalibConstantMap ESIntercalibConstants
Definition: ESIntercalibConstants.h:7
edm::Event
Definition: Event.h:73
Parameters
vector< ParameterSet > Parameters
Definition: HLTMuonPlotter.cc:25
StoreESCondition::since_
std::vector< unsigned long long > since_
Definition: StoreESCondition.h:58
ESCondObjectContainer::setValue
void setValue(const uint32_t id, const Item &item)
Definition: ESCondObjectContainer.h:39