Functions | |
template<class Digi > | |
double | adc2fCDBMinusPedestal (const edm::ESHandle< HcalDbService > &conditions, const CaloSamples &calo_samples, const HcalDetId did, const Digi &digi, unsigned int n) |
template<typename DIGI > | |
double | aveADC (DIGI const &digi, double ped, int i=0, int j=3) |
template<typename DIGI > | |
double | aveQ (DIGI const &digi, double ped, int i=0, int j=3) |
template<typename DIGI > | |
double | aveTS (DIGI const &digi, double ped=0, int i=0, int j=3) |
template<typename FRAME > | |
double | aveTS_v10 (FRAME const &frame, double ped=0, int i=0, int j=3) |
template<class Digi > | |
double | aveTSDB (const edm::ESHandle< HcalDbService > &conditions, const CaloSamples &calo_samples, const HcalDetId did, const Digi &digi, unsigned int i_start, unsigned int i_end) |
uint16_t | crate2fed (int crate, int slot) |
template<typename STDTYPE > | |
void | dqmdebug (STDTYPE const &x, int debug=0) |
std::pair< uint16_t, uint16_t > | fed2crate (int fed) |
std::map< int, uint32_t > | getCrateHashMap (HcalElectronicsMap const *emap) |
std::vector< int > | getCrateList (HcalElectronicsMap const *emap) |
std::vector< int > | getFEDList (HcalElectronicsMap const *) |
std::vector< int > | getFEDuTCAList (HcalElectronicsMap const *) |
std::vector< int > | getFEDVMEList (HcalElectronicsMap const *) |
int | getRBX (uint32_t iphi) |
int | getTPSubDet (HcalTrigTowerDetId const &) |
int | getTPSubDetPM (HcalTrigTowerDetId const &) |
uint32_t | hash (HcalDetId const &) |
uint32_t | hash (HcalElectronicsId const &) |
uint32_t | hash (HcalTrigTowerDetId const &) |
bool | isFEDHBHE (HcalElectronicsId const &) |
bool | isFEDHF (HcalElectronicsId const &) |
bool | isFEDHO (HcalElectronicsId const &) |
template<class Digi > | |
CaloSamples | loadADC2fCDB (const edm::ESHandle< HcalDbService > &conditions, const HcalDetId did, const Digi &digi) |
template<typename DIGI > | |
int | maxTS (DIGI const &digi, double ped=0) |
std::string | ogtype2string (constants::OrbitGapType type) |
template<typename DIGI > | |
double | sumADC (DIGI const &digi, double ped, int i=0, int j=3) |
template<typename DIGI > | |
double | sumQ (DIGI const &digi, double ped, int i=0, int j=3) |
template<typename FRAME > | |
double | sumQ_v10 (FRAME const &frame, double ped, int i=0, int j=3) |
template<class Digi > | |
double | sumQDB (const edm::ESHandle< HcalDbService > &conditions, const CaloSamples &calo_samples, const HcalDetId did, const Digi &digi, unsigned int i_start, unsigned int i_end) |
double hcaldqm::utilities::adc2fCDBMinusPedestal | ( | const edm::ESHandle< HcalDbService > & | conditions, |
const CaloSamples & | calo_samples, | ||
const HcalDetId | did, | ||
const Digi & | digi, | ||
unsigned int | n | ||
) |
Definition at line 35 of file Utilities.h.
References AlignmentProducer_cff::calibrations, HcalDbService::getHcalCalibrations(), gen::n, and HcalCalibrations::pedestal().
Referenced by aveTSDB(), and sumQDB().
double hcaldqm::utilities::aveADC | ( | DIGI const & | digi, |
double | ped, | ||
int | i = 0 , |
||
int | j = 3 |
||
) |
Definition at line 145 of file Utilities.h.
References mps_fire::i.
double hcaldqm::utilities::aveQ | ( | DIGI const & | digi, |
double | ped, | ||
int | i = 0 , |
||
int | j = 3 |
||
) |
Definition at line 130 of file Utilities.h.
References mps_fire::i.
double hcaldqm::utilities::aveTS | ( | DIGI const & | digi, |
double | ped = 0 , |
||
int | i = 0 , |
||
int | j = 3 |
||
) |
Definition at line 107 of file Utilities.h.
References hcaldqm::constants::GARBAGE_VALUE, mps_fire::i, cuy::ii, and sumQ().
Referenced by LEDTask::_process(), and LaserTask::_process().
double hcaldqm::utilities::aveTS_v10 | ( | FRAME const & | frame, |
double | ped = 0 , |
||
int | i = 0 , |
||
int | j = 3 |
||
) |
Definition at line 66 of file Utilities.h.
References hcaldqm::constants::adc2fC, hcaldqm::constants::GARBAGE_VALUE, mps_fire::i, cuy::ii, lumiQueryAPI::q, and sumQ().
double hcaldqm::utilities::aveTSDB | ( | const edm::ESHandle< HcalDbService > & | conditions, |
const CaloSamples & | calo_samples, | ||
const HcalDetId | did, | ||
const Digi & | digi, | ||
unsigned int | i_start, | ||
unsigned int | i_end | ||
) |
Definition at line 42 of file Utilities.h.
References adc2fCDBMinusPedestal(), hcaldqm::constants::GARBAGE_VALUE, mps_fire::i, lumiQueryAPI::q, and sumQ().
uint16_t hcaldqm::utilities::crate2fed | ( | int | crate, |
int | slot | ||
) |
Definition at line 30 of file Utilities.cc.
References begin, hcaldqm::constants::crate2fed_map, hcaldqm::constants::crateListuTCA, hcaldqm::constants::crateListVME, end, and spr::find().
Referenced by dqmdebug(), getFEDList(), getFEDuTCAList(), getFEDVMEList(), hcaldqm::quantity::getLabels_FED(), hcaldqm::quantity::getLabels_FEDuTCA(), hcaldqm::quantity::getLabels_FEDuTCASlot(), hcaldqm::quantity::FEDQuantity::getValue(), hcaldqm::quantity::getValue_FED(), hcaldqm::quantity::getValue_FEDuTCA(), hcaldqm::quantity::getValue_FEDVME(), isFEDHBHE(), isFEDHF(), hcaldqm::hashfunctions::name_FED(), hcaldqm::hashfunctions::name_FEDSlot(), and hcaldqm::hashfunctions::name_FEDSpigot().
void hcaldqm::utilities::dqmdebug | ( | STDTYPE const & | x, |
int | debug = 0 |
||
) |
Definition at line 154 of file Utilities.h.
References gather_cfg::cout, crate2fed(), debug, fed2crate(), getCrateHashMap(), getCrateList(), getFEDList(), getFEDuTCAList(), getFEDVMEList(), getRBX(), getTPSubDet(), getTPSubDetPM(), hash(), isFEDHBHE(), isFEDHF(), isFEDHO(), ogtype2string(), and AlCaHLTBitMon_QueryRunRegistry::string.
std::pair< uint16_t, uint16_t > hcaldqm::utilities::fed2crate | ( | int | fed | ) |
Definition at line 12 of file Utilities.cc.
References end, hcaldqm::constants::fed2crate_map, hcaldqm::constants::FED_VME_MAX, and hcaldqm::constants::SLOT_uTCA_MIN.
Referenced by RawTask::_process(), hcaldqm::DQHarvester::beginRun(), hcaldqm::DQClient::beginRun(), TPTask::bookHistograms(), PedestalTask::bookHistograms(), RawTask::bookHistograms(), LaserTask::bookHistograms(), RecHitTask::bookHistograms(), DigiPhase1Task::bookHistograms(), DigiTask::bookHistograms(), hcaldqm::DQTask::bookHistograms(), dqmdebug(), hcaldqm::quantity::getEid_FED(), hcaldqm::quantity::getEid_FEDuTCA(), hcaldqm::hashfunctions::hash_FED(), hcaldqm::hashfunctions::hash_FEDSlot(), and hcaldqm::hashfunctions::hash_FEDSpigot().
std::map< int, uint32_t > hcaldqm::utilities::getCrateHashMap | ( | HcalElectronicsMap const * | emap | ) |
Definition at line 77 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), runTauDisplay::eid, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hash(), HcalElectronicsId::isVMEid(), HcalElectronicsId::slot(), and HcalElectronicsId::spigot().
Referenced by hcaldqm::DQHarvester::beginRun(), hcaldqm::DQClient::beginRun(), dqmdebug(), and hcaldqm::quantity::CrateQuantity::setup().
std::vector< int > hcaldqm::utilities::getCrateList | ( | HcalElectronicsMap const * | emap | ) |
Definition at line 63 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), HcalElectronicsId::crateId(), runTauDisplay::eid, and spr::find().
Referenced by hcaldqm::DQHarvester::beginRun(), hcaldqm::DQClient::beginRun(), dqmdebug(), and hcaldqm::quantity::CrateQuantity::setup().
std::vector< int > hcaldqm::utilities::getFEDList | ( | HcalElectronicsMap const * | emap | ) |
Definition at line 95 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), crate2fed(), hcaldqm::constants::FED_VME_MIN, and gen::n.
Referenced by hcaldqm::DQHarvester::beginRun(), hcaldqm::DQClient::beginRun(), DigiComparisonTask::bookHistograms(), TPComparisonTask::bookHistograms(), PedestalTask::bookHistograms(), TPTask::bookHistograms(), RawTask::bookHistograms(), LaserTask::bookHistograms(), RecHitTask::bookHistograms(), DigiTask::bookHistograms(), DigiPhase1Task::bookHistograms(), and dqmdebug().
std::vector< int > hcaldqm::utilities::getFEDuTCAList | ( | HcalElectronicsMap const * | emap | ) |
Definition at line 145 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), crate2fed(), hcaldqm::constants::FED_VME_MIN, and gen::n.
Referenced by DigiComparisonTask::bookHistograms(), TPComparisonTask::bookHistograms(), PedestalTask::bookHistograms(), TPTask::bookHistograms(), RawTask::bookHistograms(), LaserTask::bookHistograms(), RecHitTask::bookHistograms(), DigiPhase1Task::bookHistograms(), DigiTask::bookHistograms(), and dqmdebug().
std::vector< int > hcaldqm::utilities::getFEDVMEList | ( | HcalElectronicsMap const * | emap | ) |
Definition at line 119 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), crate2fed(), hcaldqm::constants::FED_VME_MIN, and gen::n.
Referenced by DigiComparisonTask::bookHistograms(), TPComparisonTask::bookHistograms(), PedestalTask::bookHistograms(), TPTask::bookHistograms(), RawTask::bookHistograms(), LaserTask::bookHistograms(), RecHitTask::bookHistograms(), DigiPhase1Task::bookHistograms(), DigiTask::bookHistograms(), and dqmdebug().
int hcaldqm::utilities::getRBX | ( | uint32_t | iphi | ) |
Definition at line 252 of file Utilities.cc.
Referenced by LaserTask::_process(), and dqmdebug().
int hcaldqm::utilities::getTPSubDet | ( | HcalTrigTowerDetId const & | ) |
Referenced by dqmdebug().
int hcaldqm::utilities::getTPSubDetPM | ( | HcalTrigTowerDetId const & | ) |
Referenced by dqmdebug().
uint32_t hcaldqm::utilities::hash | ( | HcalDetId const & | did | ) |
This is wrap around in case hashing scheme changes in the future
Definition at line 50 of file Utilities.cc.
References DetId::rawId().
Referenced by dqmdebug(), getCrateHashMap(), hcaldqm::hashfunctions::hash_Crate(), hcaldqm::hashfunctions::hash_CrateSlot(), hcaldqm::hashfunctions::hash_CrateSpigot(), hcaldqm::hashfunctions::hash_DChannel(), hcaldqm::hashfunctions::hash_depth(), hcaldqm::hashfunctions::hash_EChannel(), hcaldqm::hashfunctions::hash_Electronics(), hcaldqm::hashfunctions::hash_FED(), hcaldqm::hashfunctions::hash_FEDSlot(), hcaldqm::hashfunctions::hash_FEDSpigot(), hcaldqm::hashfunctions::hash_HBHEPartition(), hcaldqm::hashfunctions::hash_HFPMiphi(), hcaldqm::hashfunctions::hash_ieta(), hcaldqm::hashfunctions::hash_iphi(), hcaldqm::hashfunctions::hash_Subdet(), hcaldqm::hashfunctions::hash_Subdetdepth(), hcaldqm::hashfunctions::hash_Subdetieta(), hcaldqm::hashfunctions::hash_Subdetiphi(), hcaldqm::hashfunctions::hash_SubdetPM(), hcaldqm::hashfunctions::hash_SubdetPMiphi(), hcaldqm::hashfunctions::hash_TChannel(), hcaldqm::hashfunctions::hash_TTdepth(), hcaldqm::hashfunctions::hash_TTSubdet(), hcaldqm::hashfunctions::hash_TTSubdetPM(), and hcaldqm::hashfunctions::hash_TTSubdetPMiphi().
uint32_t hcaldqm::utilities::hash | ( | HcalElectronicsId const & | eid | ) |
Definition at line 54 of file Utilities.cc.
References HcalElectronicsId::rawId().
uint32_t hcaldqm::utilities::hash | ( | HcalTrigTowerDetId const & | tid | ) |
Definition at line 58 of file Utilities.cc.
References DetId::rawId().
bool hcaldqm::utilities::isFEDHBHE | ( | HcalElectronicsId const & | eid | ) |
Definition at line 172 of file Utilities.cc.
References crate2fed(), HcalElectronicsId::crateId(), HcalElectronicsId::isVMEid(), and HcalElectronicsId::slot().
Referenced by PedestalTask::_dump(), LaserTask::_dump(), dqmdebug(), hcaldqm::RawRunSummary::endLuminosityBlock(), TPTask::endLuminosityBlock(), RawTask::endLuminosityBlock(), and DigiTask::endLuminosityBlock().
bool hcaldqm::utilities::isFEDHF | ( | HcalElectronicsId const & | eid | ) |
Definition at line 187 of file Utilities.cc.
References crate2fed(), HcalElectronicsId::crateId(), HcalElectronicsId::isVMEid(), and HcalElectronicsId::slot().
Referenced by PedestalTask::_dump(), LaserTask::_dump(), dqmdebug(), hcaldqm::RawRunSummary::endLuminosityBlock(), TPTask::endLuminosityBlock(), RawTask::endLuminosityBlock(), RecHitTask::endLuminosityBlock(), and DigiTask::endLuminosityBlock().
bool hcaldqm::utilities::isFEDHO | ( | HcalElectronicsId const & | eid | ) |
Definition at line 212 of file Utilities.cc.
References HcalElectronicsId::dccid(), hcaldqm::constants::FED_VME_MIN, and HcalElectronicsId::isVMEid().
Referenced by PedestalTask::_dump(), LaserTask::_dump(), dqmdebug(), hcaldqm::RawRunSummary::endLuminosityBlock(), RawTask::endLuminosityBlock(), and DigiTask::endLuminosityBlock().
CaloSamples hcaldqm::utilities::loadADC2fCDB | ( | const edm::ESHandle< HcalDbService > & | conditions, |
const HcalDetId | did, | ||
const Digi & | digi | ||
) |
Definition at line 24 of file Utilities.h.
References HcalCoderDb::adc2fC(), HcalDbService::getHcalCoder(), and HcalDbService::getHcalShape().
int hcaldqm::utilities::maxTS | ( | DIGI const & | digi, |
double | ped = 0 |
||
) |
Definition at line 93 of file Utilities.h.
References mps_fire::i.
Referenced by LaserTask::_process(), and HBHEPhase1Reconstructor::processData().
std::string hcaldqm::utilities::ogtype2string | ( | constants::OrbitGapType | type | ) |
Definition at line 229 of file Utilities.cc.
References hcaldqm::constants::tCalib, hcaldqm::constants::tCRF, hcaldqm::constants::tHBHEHPD, hcaldqm::constants::tHBMMega, hcaldqm::constants::tHBPMega, hcaldqm::constants::tHEMMega, hcaldqm::constants::tHEPMega, hcaldqm::constants::tHF, hcaldqm::constants::tHFRaddam, hcaldqm::constants::tHO, hcaldqm::constants::tLED, hcaldqm::constants::tNull, hcaldqm::constants::tPedestal, hcaldqm::constants::tSafe, and hcaldqm::constants::tZDC.
Referenced by dqmdebug(), and hcaldqm::quantity::EventType::getLabels().
double hcaldqm::utilities::sumADC | ( | DIGI const & | digi, |
double | ped, | ||
int | i = 0 , |
||
int | j = 3 |
||
) |
double hcaldqm::utilities::sumQ | ( | DIGI const & | digi, |
double | ped, | ||
int | i = 0 , |
||
int | j = 3 |
||
) |
Definition at line 121 of file Utilities.h.
References mps_fire::i, and cuy::ii.
Referenced by NoCQTask::_process(), QIE10Task::_process(), LEDTask::_process(), DigiTask::_process(), DigiPhase1Task::_process(), UMNioTask::_process(), LaserTask::_process(), aveTS(), aveTS_v10(), aveTSDB(), sumQ_v10(), and sumQDB().
double hcaldqm::utilities::sumQ_v10 | ( | FRAME const & | frame, |
double | ped, | ||
int | i = 0 , |
||
int | j = 3 |
||
) |
Definition at line 81 of file Utilities.h.
References ecalMGPA::adc(), hcaldqm::constants::adc2fC, mps_fire::i, cuy::ii, and sumQ().
double hcaldqm::utilities::sumQDB | ( | const edm::ESHandle< HcalDbService > & | conditions, |
const CaloSamples & | calo_samples, | ||
const HcalDetId | did, | ||
const Digi & | digi, | ||
unsigned int | i_start, | ||
unsigned int | i_end | ||
) |
Definition at line 54 of file Utilities.h.
References adc2fCDBMinusPedestal(), mps_fire::i, and sumQ().