CMS 3D CMS Logo

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 HcalL1TriggerObjects &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 HcalQIEData &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 HcalGains &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 HcalZSThresholds &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.

                                                                                              { 
  const std::string KIND = "HCAL Pedestals [V3]";
  const std::string TABLE = "HCAL_PEDESTALS_V3";

  dumpHeader (fOutput, fRun, TABLE, KIND);
  int isADC = 0;
  if(fObject.isADC()) isADC = 1;

  std::vector<DetId> channels = fObject.getAllChannels ();
  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
  for (std::vector<DetId>::iterator channel = channels.begin ();
       channel !=  channels.end ();
       channel++) {
    DetId chId = *channel;
    if(fObject.exists(chId))
    {
       const HcalPedestal * item = fObject.getValues (chId);
       const HcalPedestalWidth * item2 = fObject2.getValues (chId);

       dumpDataset (fOutput, fVersion);
       dumpChannelId (fOutput,chId);
       dumpPedData (fOutput, *item, *item2, isADC);
       endDataset (fOutput);
    }
  }

  dumpFooter (fOutput);
  return true;
}
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.

                                                                 {
  const std::string KIND = "HCAL_L1_TRIGGER_OBJECTS_V1";
  const std::string TABLE = "HCAL L1 Trigger Objects [V1]";

  dumpHeader (fOutput, fRun, TABLE, KIND);

  std::vector<DetId> channels = fObject.getAllChannels ();
  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
  for (std::vector<DetId>::iterator channel = channels.begin ();
       channel !=  channels.end ();
       channel++) {
    DetId chId = *channel;
    if(fObject.exists(chId))
    {
       const HcalL1TriggerObject * item = fObject.getValues(chId);
       dumpDataset (fOutput, fVersion);
       dumpChannelId (fOutput,chId);
       dumpL1TriggerData (fOutput, *item);
       endDataset (fOutput);
    }
  }

  dumpFooter (fOutput);
  return true;
}
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.

                                                               {
  const std::string KIND = "HCAL_CHANNEL_QUALITY_V1";
  const std::string TABLE = "HCAL Channel Quality [V1]";

  dumpHeader (fOutput, fRun, TABLE, KIND);

  std::vector<DetId> channels = fObject.getAllChannels ();
  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
  for (std::vector<DetId>::iterator channel = channels.begin ();
       channel !=  channels.end ();
       channel++) {
    DetId chId = *channel;
    if(fObject.exists(chId))
    {
       const HcalChannelStatus * item = fObject.getValues(chId);
       dumpDataset (fOutput, fVersion);
       dumpChannelId (fOutput,chId);
       dumpChannelQualityData (fOutput, *item);
       endDataset (fOutput);
    }
  }

  dumpFooter (fOutput);
  return true;
}
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.

                                                        {
  const std::string KIND = "QIECARD_ADC_NORMMODE";
  const std::string TABLE = "XXX need to check XXX";

  dumpHeader (fOutput, fRun, TABLE, KIND);

  std::vector<DetId> channels = fObject.getAllChannels ();
  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
  for (std::vector<DetId>::iterator channel = channels.begin ();
       channel !=  channels.end ();
       channel++) {
    DetId chId = *channel;
    if(fObject.exists(chId))
    {
       const HcalQIECoder * item = fObject.getCoder(chId);
       dumpDataset (fOutput, fVersion);
       dumpChannelId (fOutput,chId);
       dumpQIEData (fOutput, *item);
       endDataset (fOutput);
    }
  }

  dumpFooter (fOutput);
  return true;
}
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.

                                                           {
  const std::string KIND = "HCAL Inverse Gain Widths [V1]";
  const std::string TABLE = "HCAL_INVERSE_GAIN_WIDTHS_V1";

  dumpHeader (fOutput, fRun, TABLE, KIND);

  std::vector<DetId> channels = fObject.getAllChannels ();
  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
  for (std::vector<DetId>::iterator channel = channels.begin ();
       channel !=  channels.end ();
       channel++) {
    DetId chId = *channel;
    if(fObject.exists(chId))
    {
       const HcalGainWidth * item = fObject.getValues(chId);
       dumpDataset (fOutput, fVersion);
       dumpChannelId (fOutput,chId);
       dumpGainWidthData (fOutput, *item);
       endDataset (fOutput);
    }
  }

  dumpFooter (fOutput);
  return true;
}
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.

                                                      {
  const std::string KIND = "HCAL Inverse Gains [V1]";
  const std::string TABLE = "HCAL_INVERSE_GAINS_V1";

  dumpHeader (fOutput, fRun, TABLE, KIND);

  std::vector<DetId> channels = fObject.getAllChannels ();
  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
  for (std::vector<DetId>::iterator channel = channels.begin ();
       channel !=  channels.end ();
       channel++) {
    DetId chId = *channel;
    if(fObject.exists(chId))
    {
       const HcalGain * item = fObject.getValues(chId);
       dumpDataset (fOutput, fVersion);
       dumpChannelId (fOutput,chId);
       dumpGainData (fOutput, *item);
       endDataset (fOutput);
    }
  }

  dumpFooter (fOutput);
  return true;
}
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.

                                                          {
  const std::string KIND = "HCAL Response corrections [V1]";
  const std::string TABLE = "HCAL_RESPONSE_CORRECTIONS_V1";

  dumpHeader (fOutput, fRun, TABLE, KIND);

  std::vector<DetId> channels = fObject.getAllChannels ();
  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
  for (std::vector<DetId>::iterator channel = channels.begin ();
       channel !=  channels.end ();
       channel++) {
    DetId chId = *channel;
    if(fObject.exists(chId))
    {
       const HcalRespCorr * item = fObject.getValues(chId);
       dumpDataset (fOutput, fVersion);
       dumpChannelId (fOutput,chId);
       dumpRespCorrData (fOutput, *item);
       endDataset (fOutput);
    }
  }

  dumpFooter (fOutput);
  return true;
}
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.

                                                             {
  const std::string KIND = "HCAL zero suppression [type 1]";
  const std::string TABLE = "HCAL_ZERO_SUPPRESSION_TYPE01";

  dumpHeader (fOutput, fRun, TABLE, KIND);

  std::vector<DetId> channels = fObject.getAllChannels ();
  dumpMapping (fOutput, fRun, KIND, fGMTIOVBegin, fGMTIOVEnd, fTag, fVersion, channels);
  for (std::vector<DetId>::iterator channel = channels.begin ();
       channel !=  channels.end ();
       channel++) {
    DetId chId = *channel;
    if(fObject.exists(chId))
    {
       const HcalZSThreshold * item = fObject.getValues(chId);
       dumpDataset (fOutput, fVersion);
       dumpChannelId (fOutput,chId);
       dumpZSData (fOutput, *item);
       endDataset (fOutput);
    }
  }

  dumpFooter (fOutput);
  return true;
}