CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
HcalCondXML Namespace Reference

Functions

bool dumpObject (std::ostream &fOutput, unsigned fRun, unsigned long fGMTIOVBegin, unsigned long fGMTIOVEnd, const std::string &fTag, unsigned fVersion, const HcalPedestals &fObject, const HcalPedestalWidths &fObject2)
 
bool dumpObject (std::ostream &fOutput, unsigned fRun, unsigned long fGMTIOVBegin, unsigned long fGMTIOVEnd, const std::string &fTag, unsigned fVersion, const HcalZSThresholds &fObject)
 
bool dumpObject (std::ostream &fOutput, unsigned fRun, unsigned long fGMTIOVBegin, unsigned long fGMTIOVEnd, const std::string &fTag, unsigned fVersion, const HcalRespCorrs &fObject)
 
bool dumpObject (std::ostream &fOutput, unsigned fRun, unsigned long fGMTIOVBegin, unsigned long fGMTIOVEnd, const std::string &fTag, unsigned fVersion, const HcalGains &fObject)
 
bool dumpObject (std::ostream &fOutput, unsigned fRun, unsigned long fGMTIOVBegin, unsigned long fGMTIOVEnd, const std::string &fTag, unsigned fVersion, const HcalGainWidths &fObject)
 
bool dumpObject (std::ostream &fOutput, unsigned fRun, unsigned long fGMTIOVBegin, unsigned long fGMTIOVEnd, const std::string &fTag, unsigned fVersion, const HcalQIEData &fObject)
 
bool dumpObject (std::ostream &fOutput, unsigned fRun, unsigned long fGMTIOVBegin, unsigned long fGMTIOVEnd, const std::string &fTag, unsigned fVersion, const HcalChannelQuality &fObject)
 
bool dumpObject (std::ostream &fOutput, unsigned fRun, unsigned long fGMTIOVBegin, unsigned long fGMTIOVEnd, const std::string &fTag, unsigned fVersion, const HcalL1TriggerObjects &fObject)
 

Function Documentation

bool HcalCondXML::dumpObject ( std::ostream &  fOutput,
unsigned  fRun,
unsigned long  fGMTIOVBegin,
unsigned long  fGMTIOVEnd,
const std::string &  fTag,
unsigned  fVersion,
const HcalPedestals fObject,
const HcalPedestalWidths fObject2 
)

Definition at line 234 of file HcalCondXML.cc.

References HcalCondObjectContainer< Item >::exists(), HcalCondObjectContainer< Item >::getAllChannels(), HcalCondObjectContainer< Item >::getValues(), HcalPedestals::isADC(), and AlCaHLTBitMon_QueryRunRegistry::string.

236  {
237  const std::string KIND = "HCAL Pedestals [V3]";
238  const std::string TABLE = "HCAL_PEDESTALS_V3";
239 
240  dumpHeader (fOutput, fRun, TABLE, KIND);
241  int isADC = 0;
242  if(fObject.isADC()) isADC = 1;
243 
244  std::vector<DetId> channels = fObject.getAllChannels ();
245  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
246  for (std::vector<DetId>::iterator channel = channels.begin ();
247  channel != channels.end ();
248  channel++) {
249  DetId chId = *channel;
250  if(fObject.exists(chId))
251  {
252  const HcalPedestal * item = fObject.getValues (chId);
253  const HcalPedestalWidth * item2 = fObject2.getValues (chId);
254 
255  dumpDataset (fOutput, fVersion);
256  dumpChannelId (fOutput,chId);
257  dumpPedData (fOutput, *item, *item2, isADC);
258  endDataset (fOutput);
259  }
260  }
261 
262  dumpFooter (fOutput);
263  return true;
264 }
bool isADC() const
Definition: HcalPedestals.h:26
const Item * getValues(DetId fId, bool throwOnFail=true) const
const bool exists(DetId fId) const
std::vector< DetId > getAllChannels() const
Definition: DetId.h:20
bool HcalCondXML::dumpObject ( std::ostream &  fOutput,
unsigned  fRun,
unsigned long  fGMTIOVBegin,
unsigned long  fGMTIOVEnd,
const std::string &  fTag,
unsigned  fVersion,
const HcalZSThresholds fObject 
)

Definition at line 207 of file HcalCondXML.cc.

References HcalCondObjectContainer< Item >::exists(), HcalCondObjectContainer< Item >::getAllChannels(), HcalCondObjectContainer< Item >::getValues(), and AlCaHLTBitMon_QueryRunRegistry::string.

209  {
210  const std::string KIND = "HCAL zero suppression [type 1]";
211  const std::string TABLE = "HCAL_ZERO_SUPPRESSION_TYPE01";
212 
213  dumpHeader (fOutput, fRun, TABLE, KIND);
214 
215  std::vector<DetId> channels = fObject.getAllChannels ();
216  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
217  for (std::vector<DetId>::iterator channel = channels.begin ();
218  channel != channels.end ();
219  channel++) {
220  DetId chId = *channel;
221  if(fObject.exists(chId))
222  {
223  const HcalZSThreshold * item = fObject.getValues(chId);
224  dumpDataset (fOutput, fVersion);
225  dumpChannelId (fOutput,chId);
226  dumpZSData (fOutput, *item);
227  endDataset (fOutput);
228  }
229  }
230 
231  dumpFooter (fOutput);
232  return true;
233 }
const Item * getValues(DetId fId, bool throwOnFail=true) const
const bool exists(DetId fId) const
std::vector< DetId > getAllChannels() const
Definition: DetId.h:20
bool HcalCondXML::dumpObject ( std::ostream &  fOutput,
unsigned  fRun,
unsigned long  fGMTIOVBegin,
unsigned long  fGMTIOVEnd,
const std::string &  fTag,
unsigned  fVersion,
const HcalRespCorrs fObject 
)

Definition at line 266 of file HcalCondXML.cc.

References HcalCondObjectContainer< Item >::exists(), HcalCondObjectContainer< Item >::getAllChannels(), HcalCondObjectContainer< Item >::getValues(), and AlCaHLTBitMon_QueryRunRegistry::string.

268  {
269  const std::string KIND = "HCAL Response corrections [V1]";
270  const std::string TABLE = "HCAL_RESPONSE_CORRECTIONS_V1";
271 
272  dumpHeader (fOutput, fRun, TABLE, KIND);
273 
274  std::vector<DetId> channels = fObject.getAllChannels ();
275  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
276  for (std::vector<DetId>::iterator channel = channels.begin ();
277  channel != channels.end ();
278  channel++) {
279  DetId chId = *channel;
280  if(fObject.exists(chId))
281  {
282  const HcalRespCorr * item = fObject.getValues(chId);
283  dumpDataset (fOutput, fVersion);
284  dumpChannelId (fOutput,chId);
285  dumpRespCorrData (fOutput, *item);
286  endDataset (fOutput);
287  }
288  }
289 
290  dumpFooter (fOutput);
291  return true;
292 }
const Item * getValues(DetId fId, bool throwOnFail=true) const
const bool exists(DetId fId) const
std::vector< DetId > getAllChannels() const
Definition: DetId.h:20
bool HcalCondXML::dumpObject ( std::ostream &  fOutput,
unsigned  fRun,
unsigned long  fGMTIOVBegin,
unsigned long  fGMTIOVEnd,
const std::string &  fTag,
unsigned  fVersion,
const HcalGains fObject 
)

Definition at line 294 of file HcalCondXML.cc.

References HcalCondObjectContainer< Item >::exists(), HcalCondObjectContainer< Item >::getAllChannels(), HcalCondObjectContainer< Item >::getValues(), and AlCaHLTBitMon_QueryRunRegistry::string.

296  {
297  const std::string KIND = "HCAL Inverse Gains [V1]";
298  const std::string TABLE = "HCAL_INVERSE_GAINS_V1";
299 
300  dumpHeader (fOutput, fRun, TABLE, KIND);
301 
302  std::vector<DetId> channels = fObject.getAllChannels ();
303  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
304  for (std::vector<DetId>::iterator channel = channels.begin ();
305  channel != channels.end ();
306  channel++) {
307  DetId chId = *channel;
308  if(fObject.exists(chId))
309  {
310  const HcalGain * item = fObject.getValues(chId);
311  dumpDataset (fOutput, fVersion);
312  dumpChannelId (fOutput,chId);
313  dumpGainData (fOutput, *item);
314  endDataset (fOutput);
315  }
316  }
317 
318  dumpFooter (fOutput);
319  return true;
320 }
const Item * getValues(DetId fId, bool throwOnFail=true) const
const bool exists(DetId fId) const
std::vector< DetId > getAllChannels() const
Definition: DetId.h:20
bool HcalCondXML::dumpObject ( std::ostream &  fOutput,
unsigned  fRun,
unsigned long  fGMTIOVBegin,
unsigned long  fGMTIOVEnd,
const std::string &  fTag,
unsigned  fVersion,
const HcalGainWidths fObject 
)

Definition at line 322 of file HcalCondXML.cc.

References HcalCondObjectContainer< Item >::exists(), HcalCondObjectContainer< Item >::getAllChannels(), HcalCondObjectContainer< Item >::getValues(), and AlCaHLTBitMon_QueryRunRegistry::string.

324  {
325  const std::string KIND = "HCAL Inverse Gain Widths [V1]";
326  const std::string TABLE = "HCAL_INVERSE_GAIN_WIDTHS_V1";
327 
328  dumpHeader (fOutput, fRun, TABLE, KIND);
329 
330  std::vector<DetId> channels = fObject.getAllChannels ();
331  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
332  for (std::vector<DetId>::iterator channel = channels.begin ();
333  channel != channels.end ();
334  channel++) {
335  DetId chId = *channel;
336  if(fObject.exists(chId))
337  {
338  const HcalGainWidth * item = fObject.getValues(chId);
339  dumpDataset (fOutput, fVersion);
340  dumpChannelId (fOutput,chId);
341  dumpGainWidthData (fOutput, *item);
342  endDataset (fOutput);
343  }
344  }
345 
346  dumpFooter (fOutput);
347  return true;
348 }
const Item * getValues(DetId fId, bool throwOnFail=true) const
const bool exists(DetId fId) const
std::vector< DetId > getAllChannels() const
Definition: DetId.h:20
bool HcalCondXML::dumpObject ( std::ostream &  fOutput,
unsigned  fRun,
unsigned long  fGMTIOVBegin,
unsigned long  fGMTIOVEnd,
const std::string &  fTag,
unsigned  fVersion,
const HcalQIEData fObject 
)

Definition at line 350 of file HcalCondXML.cc.

References HcalCondObjectContainer< Item >::exists(), HcalCondObjectContainer< Item >::getAllChannels(), HcalQIEData::getCoder(), and AlCaHLTBitMon_QueryRunRegistry::string.

352  {
353  const std::string KIND = "QIECARD_ADC_NORMMODE";
354  const std::string TABLE = "XXX need to check XXX";
355 
356  dumpHeader (fOutput, fRun, TABLE, KIND);
357 
358  std::vector<DetId> channels = fObject.getAllChannels ();
359  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
360  for (std::vector<DetId>::iterator channel = channels.begin ();
361  channel != channels.end ();
362  channel++) {
363  DetId chId = *channel;
364  if(fObject.exists(chId))
365  {
366  const HcalQIECoder * item = fObject.getCoder(chId);
367  dumpDataset (fOutput, fVersion);
368  dumpChannelId (fOutput,chId);
369  dumpQIEData (fOutput, *item);
370  endDataset (fOutput);
371  }
372  }
373 
374  dumpFooter (fOutput);
375  return true;
376 }
const HcalQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: HcalQIEData.h:38
const bool exists(DetId fId) const
std::vector< DetId > getAllChannels() const
Definition: DetId.h:20
bool HcalCondXML::dumpObject ( std::ostream &  fOutput,
unsigned  fRun,
unsigned long  fGMTIOVBegin,
unsigned long  fGMTIOVEnd,
const std::string &  fTag,
unsigned  fVersion,
const HcalChannelQuality fObject 
)

Definition at line 378 of file HcalCondXML.cc.

References HcalCondObjectContainer< Item >::exists(), HcalCondObjectContainer< Item >::getAllChannels(), HcalCondObjectContainer< Item >::getValues(), and AlCaHLTBitMon_QueryRunRegistry::string.

380  {
381  const std::string KIND = "HCAL_CHANNEL_QUALITY_V1";
382  const std::string TABLE = "HCAL Channel Quality [V1]";
383 
384  dumpHeader (fOutput, fRun, TABLE, KIND);
385 
386  std::vector<DetId> channels = fObject.getAllChannels ();
387  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
388  for (std::vector<DetId>::iterator channel = channels.begin ();
389  channel != channels.end ();
390  channel++) {
391  DetId chId = *channel;
392  if(fObject.exists(chId))
393  {
394  const HcalChannelStatus * item = fObject.getValues(chId);
395  dumpDataset (fOutput, fVersion);
396  dumpChannelId (fOutput,chId);
397  dumpChannelQualityData (fOutput, *item);
398  endDataset (fOutput);
399  }
400  }
401 
402  dumpFooter (fOutput);
403  return true;
404 }
const Item * getValues(DetId fId, bool throwOnFail=true) const
const bool exists(DetId fId) const
std::vector< DetId > getAllChannels() const
Definition: DetId.h:20
bool HcalCondXML::dumpObject ( std::ostream &  fOutput,
unsigned  fRun,
unsigned long  fGMTIOVBegin,
unsigned long  fGMTIOVEnd,
const std::string &  fTag,
unsigned  fVersion,
const HcalL1TriggerObjects fObject 
)

Definition at line 406 of file HcalCondXML.cc.

References HcalCondObjectContainer< Item >::exists(), HcalCondObjectContainer< Item >::getAllChannels(), HcalCondObjectContainer< Item >::getValues(), and AlCaHLTBitMon_QueryRunRegistry::string.

408  {
409  const std::string KIND = "HCAL_L1_TRIGGER_OBJECTS_V1";
410  const std::string TABLE = "HCAL L1 Trigger Objects [V1]";
411 
412  dumpHeader (fOutput, fRun, TABLE, KIND);
413 
414  std::vector<DetId> channels = fObject.getAllChannels ();
415  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
416  for (std::vector<DetId>::iterator channel = channels.begin ();
417  channel != channels.end ();
418  channel++) {
419  DetId chId = *channel;
420  if(fObject.exists(chId))
421  {
422  const HcalL1TriggerObject * item = fObject.getValues(chId);
423  dumpDataset (fOutput, fVersion);
424  dumpChannelId (fOutput,chId);
425  dumpL1TriggerData (fOutput, *item);
426  endDataset (fOutput);
427  }
428  }
429 
430  dumpFooter (fOutput);
431  return true;
432 }
const Item * getValues(DetId fId, bool throwOnFail=true) const
const bool exists(DetId fId) const
std::vector< DetId > getAllChannels() const
Definition: DetId.h:20