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 33 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 |
||
) |
double hcaldqm::utilities::aveQ | ( | DIGI const & | digi, |
double | ped, | ||
int | i = 0 , |
||
int | j = 3 |
||
) |
double hcaldqm::utilities::aveTS | ( | DIGI const & | digi, |
double | ped = 0 , |
||
int | i = 0 , |
||
int | j = 3 |
||
) |
Definition at line 114 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 78 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 44 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 27 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 155 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 10 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(), hcaldqm::DQTask::bookHistograms(), PedestalTask::bookHistograms(), TPTask::bookHistograms(), LaserTask::bookHistograms(), RawTask::bookHistograms(), RecHitTask::bookHistograms(), DigiTask::bookHistograms(), DigiPhase1Task::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 66 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 52 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), HcalElectronicsId::crateId(), runTauDisplay::eid, spr::find(), and jetUpdater_cfi::sort.
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 83 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), crate2fed(), hcaldqm::constants::FED_VME_MIN, gen::n, and jetUpdater_cfi::sort.
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 121 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), crate2fed(), hcaldqm::constants::FED_VME_MIN, gen::n, and jetUpdater_cfi::sort.
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 101 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), crate2fed(), hcaldqm::constants::FED_VME_MIN, gen::n, and jetUpdater_cfi::sort.
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 233 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 48 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 | ) |
uint32_t hcaldqm::utilities::hash | ( | HcalTrigTowerDetId const & | tid | ) |
bool hcaldqm::utilities::isFEDHBHE | ( | HcalElectronicsId const & | eid | ) |
Definition at line 142 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 156 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 180 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 22 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 102 of file Utilities.h.
References mps_fire::i.
Referenced by LaserTask::_process().
std::string hcaldqm::utilities::ogtype2string | ( | constants::OrbitGapType | type | ) |
Definition at line 196 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 126 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 91 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 61 of file Utilities.h.
References adc2fCDBMinusPedestal(), mps_fire::i, and sumQ().