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, bool dopedsubtr=true) |
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, submitPVValidationJobs::conditions, and dqmiodumpmetadata::n.
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 115 of file Utilities.h.
References hcaldqm::constants::GARBAGE_VALUE, mps_fire::i, cuy::ii, dqmiolumiharvest::j, 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 79 of file Utilities.h.
References hcaldqm::constants::adc2fC, hcaldqm::constants::GARBAGE_VALUE, mps_fire::i, cuy::ii, dqmiolumiharvest::j, submitPVResolutionJobs::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, | ||
bool | dopedsubtr = true |
||
) |
Definition at line 44 of file Utilities.h.
References adc2fCDBMinusPedestal(), submitPVValidationJobs::conditions, hcaldqm::constants::GARBAGE_VALUE, mps_fire::i, submitPVResolutionJobs::q, and sumQ().
uint16_t hcaldqm::utilities::crate2fed | ( | int | crate, |
int | slot | ||
) |
Definition at line 29 of file Utilities.cc.
References hcaldqm::constants::crate2fed_map, hcaldqm::constants::crateListuTCA, hcaldqm::constants::crateListVME, and spr::find().
Referenced by 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(), isFEDHO(), hcaldqm::hashfunctions::name_FED(), hcaldqm::hashfunctions::name_FEDSlot(), and hcaldqm::hashfunctions::name_FEDSpigot().
void hcaldqm::utilities::dqmdebug | ( | STDTYPE const & | x, |
int | debug = 0 |
||
) |
std::pair< uint16_t, uint16_t > hcaldqm::utilities::fed2crate | ( | int | fed | ) |
Definition at line 10 of file Utilities.cc.
References 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(), PedestalTask::bookHistograms(), TPTask::bookHistograms(), LaserTask::bookHistograms(), RawTask::bookHistograms(), RecHitTask::bookHistograms(), DigiTask::bookHistograms(), hcaldqm::DQTask::bookHistograms(), 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 80 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), runTauDisplay::eid, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hash(), and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it.
Referenced by hcaldqm::DQHarvester::beginRun(), hcaldqm::DQClient::beginRun(), and hcaldqm::quantity::CrateQuantity::setup().
std::vector< int > hcaldqm::utilities::getCrateList | ( | HcalElectronicsMap const * | emap | ) |
Definition at line 66 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), runTauDisplay::eid, spr::find(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and jetUpdater_cfi::sort.
Referenced by hcaldqm::DQHarvester::beginRun(), hcaldqm::DQClient::beginRun(), and hcaldqm::quantity::CrateQuantity::setup().
std::vector< int > hcaldqm::utilities::getFEDList | ( | HcalElectronicsMap const * | emap | ) |
Definition at line 97 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), crate2fed(), hcaldqm::constants::FED_VME_MIN, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, dqmiodumpmetadata::n, and jetUpdater_cfi::sort.
Referenced by hcaldqm::DQHarvester::beginRun(), hcaldqm::DQClient::beginRun(), PedestalTask::bookHistograms(), TPTask::bookHistograms(), LaserTask::bookHistograms(), RawTask::bookHistograms(), RecHitTask::bookHistograms(), and DigiTask::bookHistograms().
std::vector< int > hcaldqm::utilities::getFEDuTCAList | ( | HcalElectronicsMap const * | emap | ) |
Definition at line 135 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), crate2fed(), hcaldqm::constants::FED_VME_MIN, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, dqmiodumpmetadata::n, and jetUpdater_cfi::sort.
Referenced by PedestalTask::bookHistograms(), TPTask::bookHistograms(), LaserTask::bookHistograms(), RawTask::bookHistograms(), RecHitTask::bookHistograms(), and DigiTask::bookHistograms().
std::vector< int > hcaldqm::utilities::getFEDVMEList | ( | HcalElectronicsMap const * | emap | ) |
Definition at line 115 of file Utilities.cc.
References HcalElectronicsMap::allElectronicsIdPrecision(), crate2fed(), hcaldqm::constants::FED_VME_MIN, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, dqmiodumpmetadata::n, and jetUpdater_cfi::sort.
Referenced by PedestalTask::bookHistograms(), TPTask::bookHistograms(), LaserTask::bookHistograms(), RawTask::bookHistograms(), RecHitTask::bookHistograms(), and DigiTask::bookHistograms().
int hcaldqm::utilities::getRBX | ( | uint32_t | iphi | ) |
Definition at line 242 of file Utilities.cc.
References hcalRecHitTable_cff::iphi.
Referenced by LaserTask::_process().
int hcaldqm::utilities::getTPSubDet | ( | HcalTrigTowerDetId const & | ) |
int hcaldqm::utilities::getTPSubDetPM | ( | HcalTrigTowerDetId const & | ) |
uint32_t hcaldqm::utilities::hash | ( | HcalDetId const & | did | ) |
This is wrap around in case hashing scheme changes in the future
Definition at line 62 of file Utilities.cc.
References DetId::rawId().
Referenced by 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_TTSubdetFW(), 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 156 of file Utilities.cc.
References crate2fed(), and runTauDisplay::eid.
Referenced by PedestalTask::_dump(), LaserTask::_dump(), hcaldqm::RawRunSummary::endLuminosityBlock(), TPTask::globalEndLuminosityBlock(), RawTask::globalEndLuminosityBlock(), and DigiTask::globalEndLuminosityBlock().
bool hcaldqm::utilities::isFEDHF | ( | HcalElectronicsId const & | eid | ) |
Definition at line 170 of file Utilities.cc.
References crate2fed(), and runTauDisplay::eid.
Referenced by PedestalTask::_dump(), LaserTask::_dump(), hcaldqm::RawRunSummary::endLuminosityBlock(), TPTask::globalEndLuminosityBlock(), RawTask::globalEndLuminosityBlock(), RecHitTask::globalEndLuminosityBlock(), and DigiTask::globalEndLuminosityBlock().
bool hcaldqm::utilities::isFEDHO | ( | HcalElectronicsId const & | eid | ) |
Definition at line 182 of file Utilities.cc.
References crate2fed(), and runTauDisplay::eid.
Referenced by PedestalTask::_dump(), LaserTask::_dump(), hcaldqm::RawRunSummary::endLuminosityBlock(), RawTask::globalEndLuminosityBlock(), and DigiTask::globalEndLuminosityBlock().
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(), submitPVValidationJobs::conditions, and l1trig_cff::shape.
int hcaldqm::utilities::maxTS | ( | DIGI const & | digi, |
double | ped = 0 |
||
) |
Definition at line 103 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 197 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::tMegatile, hcaldqm::constants::tNull, hcaldqm::constants::tPedestal, hcaldqm::constants::tPhysics, hcaldqm::constants::tSafe, hcaldqm::constants::tSiPMPMT, hcaldqm::constants::tUnknown, and hcaldqm::constants::tZDC.
Referenced by hcaldqm::quantity::EventType::getLabels().
double hcaldqm::utilities::sumADC | ( | DIGI const & | digi, |
double | ped, | ||
int | i = 0 , |
||
int | j = 3 |
||
) |
Definition at line 140 of file Utilities.h.
References mps_fire::i, cuy::ii, and dqmiolumiharvest::j.
double hcaldqm::utilities::sumQ | ( | DIGI const & | digi, |
double | ped, | ||
int | i = 0 , |
||
int | j = 3 |
||
) |
Definition at line 127 of file Utilities.h.
References mps_fire::i, cuy::ii, and dqmiolumiharvest::j.
Referenced by NoCQTask::_process(), QIE10Task::_process(), LEDTask::_process(), DigiTask::_process(), UMNioTask::_process(), LaserTask::_process(), aveTS(), aveTS_v10(), aveTSDB(), StripCPEgeometric::WrappedCluster::centroid(), StripCPEgeometric::WrappedCluster::eta(), sumQ_v10(), and sumQDB().
double hcaldqm::utilities::sumQ_v10 | ( | FRAME const & | frame, |
double | ped, | ||
int | i = 0 , |
||
int | j = 3 |
||
) |
Definition at line 92 of file Utilities.h.
References gpuClustering::adc, hcaldqm::constants::adc2fC, mps_fire::i, cuy::ii, dqmiolumiharvest::j, 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 62 of file Utilities.h.
References adc2fCDBMinusPedestal(), submitPVValidationJobs::conditions, mps_fire::i, and sumQ().