#include <CaloTowersCreationAlgo.h>
Classes | |
struct | MetaTower |
Public Member Functions | |
void | begin () |
CaloTowersCreationAlgo () | |
CaloTowersCreationAlgo (double EBthreshold, double EEthreshold, bool useEtEBTreshold, bool useEtEETreshold, bool useSymEBTreshold, bool useSymEETreshold, double HcalThreshold, double HBthreshold, double HBthreshold1, double HBthreshold2, double HESthreshold, double HESthreshold1, double HEDthreshold, double HEDthreshold1, double HOthreshold0, double HOthresholdPlus1, double HOthresholdMinus1, double HOthresholdPlus2, double HOthresholdMinus2, double HF1threshold, double HF2threshold, double EBweight, double EEweight, double HBweight, double HESweight, double HEDweight, double HOweight, double HF1weight, double HF2weight, double EcutTower, double EBSumThreshold, double EESumThreshold, bool useHO, int momConstrMethod, double momHBDepth, double momHEDepth, double momEBDepth, double momEEDepth, int hcalPhase=0) | |
CaloTowersCreationAlgo (double EBthreshold, double EEthreshold, bool useEtEBTreshold, bool useEtEETreshold, bool useSymEBTreshold, bool useSymEETreshold, double HcalThreshold, double HBthreshold, double HBthreshold1, double HBthreshold2, double HESthreshold, double HESthreshold1, double HEDthreshold, double HEDthreshold1, double HOthreshold0, double HOthresholdPlus1, double HOthresholdMinus1, double HOthresholdPlus2, double HOthresholdMinus2, double HF1threshold, double HF2threshold, const std::vector< double > &EBGrid, const std::vector< double > &EBWeights, const std::vector< double > &EEGrid, const std::vector< double > &EEWeights, const std::vector< double > &HBGrid, const std::vector< double > &HBWeights, const std::vector< double > &HESGrid, const std::vector< double > &HESWeights, const std::vector< double > &HEDGrid, const std::vector< double > &HEDWeights, const std::vector< double > &HOGrid, const std::vector< double > &HOWeights, const std::vector< double > &HF1Grid, const std::vector< double > &HF1Weights, const std::vector< double > &HF2Grid, const std::vector< double > &HF2Weights, double EBweight, double EEweight, double HBweight, double HESweight, double HEDweight, double HOweight, double HF1weight, double HF2weight, double EcutTower, double EBSumThreshold, double EESumThreshold, bool useHO, int momConstrMethod, double momHBDepth, double momHEDepth, double momEBDepth, double momEEDepth, int hcalPhase=0) | |
std::tuple< unsigned int, bool > | ecalChanStatusForCaloTower (const EcalRecHit *hit) |
GlobalPoint | emCrystalShwrPos (DetId detId, float fracDepth) |
GlobalPoint | emShwrLogWeightPos (const std::vector< std::pair< DetId, float >> &metaContains, float fracDepth, double totEmE) |
GlobalPoint | emShwrPos (const std::vector< std::pair< DetId, float >> &metaContains, float fracDepth, double totEmE) |
void | finish (CaloTowerCollection &destCollection) |
GlobalPoint | hadSegmentShwrPos (DetId detId, float fracDepth) |
GlobalPoint | hadShwPosFromCells (DetId frontCell, DetId backCell, float fracDepth) |
GlobalPoint | hadShwrPos (const std::vector< std::pair< DetId, float >> &metaContains, float fracDepth, double hadE) |
GlobalPoint | hadShwrPos (CaloTowerDetId id, float fracDepth) |
unsigned int | hcalChanStatusForCaloTower (const CaloRecHit *hit) |
void | makeEcalBadChs () |
void | makeHcalDropChMap () |
void | process (const HBHERecHitCollection &hbhe) |
void | process (const HORecHitCollection &ho) |
void | process (const HFRecHitCollection &hf) |
void | process (const EcalRecHitCollection &ecal) |
void | process (const CaloTowerCollection &ctc) |
void | rescaleTowers (const CaloTowerCollection &ctInput, CaloTowerCollection &ctResult) |
void | setEBEScale (double scale) |
void | setEbHandle (const edm::Handle< EcalRecHitCollection > eb) |
void | setEcalChStatusFromDB (const EcalChannelStatus *s) |
void | setEcalSeveritiesToBeExcluded (const std::vector< int > &ecalSev) |
void | SetEcalSeveritiesToBeUsedInBadTowers (const std::vector< int > &ecalSev) |
void | setEcalSevLvlAlgo (const EcalSeverityLevelAlgo *a) |
void | setEEEScale (double scale) |
void | setEeHandle (const edm::Handle< EcalRecHitCollection > ee) |
void | setGeometry (const CaloTowerTopology *cttopo, const CaloTowerConstituentsMap *ctmap, const HcalTopology *htopo, const CaloGeometry *geo) |
void | setHBEScale (double scale) |
void | setHcalAcceptSeverityLevel (unsigned int level) |
void | setHcalAcceptSeverityLevelForRejectedHit (unsigned int level) |
void | setHcalChStatusFromDB (const HcalChannelQuality *s) |
void | setHcalSevLvlComputer (const HcalSeverityLevelComputer *c) |
void | setHEDEScale (double scale) |
void | setHESEScale (double scale) |
void | setHF1EScale (double scale) |
void | setHF2EScale (double scale) |
void | setHOEScale (double scale) |
void | setMissingHcalRescaleFactorForEcal (float factor) |
void | setRecoveredEcalHitsAreUsed (bool flag) |
void | setRecoveredHcalHitsAreUsed (bool flag) |
void | setUseRejectedHitsOnly (bool flag) |
void | setUseRejectedRecoveredEcalHits (bool flag) |
void | setUseRejectedRecoveredHcalHits (bool flag) |
Public Attributes | |
int | nalgo = -1 |
Private Types | |
enum | ctHitCategory { GoodChan = 0, BadChan = 1, RecoveredChan = 2, ProblematicChan = 3, IgnoredChan = 99 } |
typedef std::map< CaloTowerDetId, std::pair< short int, bool > > | HcalDropChMap |
typedef std::vector< MetaTower > | MetaTowerMap |
Private Member Functions | |
void | assignHitEcal (const EcalRecHit *recHit) |
adds a single hit to the tower More... | |
void | assignHitHcal (const CaloRecHit *recHit) |
int | compactTime (float time) |
void | convert (const CaloTowerDetId &id, const MetaTower &mt, CaloTowerCollection &collection) |
MetaTower & | find (const CaloTowerDetId &id) |
looks for a given tower in the internal cache. If it can't find it, it makes it. More... | |
void | getThresholdAndWeight (const DetId &detId, double &threshold, double &weight) const |
helper method to look up the appropriate threshold & weight More... | |
void | rescale (const CaloTower *ct) |
Definition at line 48 of file CaloTowersCreationAlgo.h.
|
private |
Definition at line 380 of file CaloTowersCreationAlgo.h.
|
private |
Definition at line 374 of file CaloTowersCreationAlgo.h.
|
private |
Enumerator | |
---|---|
GoodChan | |
BadChan | |
RecoveredChan | |
ProblematicChan | |
IgnoredChan |
Definition at line 390 of file CaloTowersCreationAlgo.h.
CaloTowersCreationAlgo::CaloTowersCreationAlgo | ( | ) |
Definition at line 16 of file CaloTowersCreationAlgo.cc.
CaloTowersCreationAlgo::CaloTowersCreationAlgo | ( | double | EBthreshold, |
double | EEthreshold, | ||
bool | useEtEBTreshold, | ||
bool | useEtEETreshold, | ||
bool | useSymEBTreshold, | ||
bool | useSymEETreshold, | ||
double | HcalThreshold, | ||
double | HBthreshold, | ||
double | HBthreshold1, | ||
double | HBthreshold2, | ||
double | HESthreshold, | ||
double | HESthreshold1, | ||
double | HEDthreshold, | ||
double | HEDthreshold1, | ||
double | HOthreshold0, | ||
double | HOthresholdPlus1, | ||
double | HOthresholdMinus1, | ||
double | HOthresholdPlus2, | ||
double | HOthresholdMinus2, | ||
double | HF1threshold, | ||
double | HF2threshold, | ||
double | EBweight, | ||
double | EEweight, | ||
double | HBweight, | ||
double | HESweight, | ||
double | HEDweight, | ||
double | HOweight, | ||
double | HF1weight, | ||
double | HF2weight, | ||
double | EcutTower, | ||
double | EBSumThreshold, | ||
double | EESumThreshold, | ||
bool | useHO, | ||
int | momConstrMethod, | ||
double | momHBDepth, | ||
double | momHEDepth, | ||
double | momEBDepth, | ||
double | momEEDepth, | ||
int | hcalPhase = 0 |
||
) |
Definition at line 95 of file CaloTowersCreationAlgo.cc.
CaloTowersCreationAlgo::CaloTowersCreationAlgo | ( | double | EBthreshold, |
double | EEthreshold, | ||
bool | useEtEBTreshold, | ||
bool | useEtEETreshold, | ||
bool | useSymEBTreshold, | ||
bool | useSymEETreshold, | ||
double | HcalThreshold, | ||
double | HBthreshold, | ||
double | HBthreshold1, | ||
double | HBthreshold2, | ||
double | HESthreshold, | ||
double | HESthreshold1, | ||
double | HEDthreshold, | ||
double | HEDthreshold1, | ||
double | HOthreshold0, | ||
double | HOthresholdPlus1, | ||
double | HOthresholdMinus1, | ||
double | HOthresholdPlus2, | ||
double | HOthresholdMinus2, | ||
double | HF1threshold, | ||
double | HF2threshold, | ||
const std::vector< double > & | EBGrid, | ||
const std::vector< double > & | EBWeights, | ||
const std::vector< double > & | EEGrid, | ||
const std::vector< double > & | EEWeights, | ||
const std::vector< double > & | HBGrid, | ||
const std::vector< double > & | HBWeights, | ||
const std::vector< double > & | HESGrid, | ||
const std::vector< double > & | HESWeights, | ||
const std::vector< double > & | HEDGrid, | ||
const std::vector< double > & | HEDWeights, | ||
const std::vector< double > & | HOGrid, | ||
const std::vector< double > & | HOWeights, | ||
const std::vector< double > & | HF1Grid, | ||
const std::vector< double > & | HF1Weights, | ||
const std::vector< double > & | HF2Grid, | ||
const std::vector< double > & | HF2Weights, | ||
double | EBweight, | ||
double | EEweight, | ||
double | HBweight, | ||
double | HESweight, | ||
double | HEDweight, | ||
double | HOweight, | ||
double | HF1weight, | ||
double | HF2weight, | ||
double | EcutTower, | ||
double | EBSumThreshold, | ||
double | EESumThreshold, | ||
bool | useHO, | ||
int | momConstrMethod, | ||
double | momHBDepth, | ||
double | momHEDepth, | ||
double | momEBDepth, | ||
double | momEEDepth, | ||
int | hcalPhase = 0 |
||
) |
Definition at line 216 of file CaloTowersCreationAlgo.cc.
|
private |
adds a single hit to the tower
Definition at line 774 of file CaloTowersCreationAlgo.cc.
References BadChan, MillePedeFileConverter_cfg::e, EcalBarrel, ecalChanStatusForCaloTower(), EcalEndcap, HCALHighEnergyHPDFilter_cfi::energy, PVValHelper::eta, spr::find(), find(), CaloGeometry::getGeometry(), getThresholdAndWeight(), GoodChan, IgnoredChan, CaloTowersParam_cfi::mc, DetId::null(), ProblematicChan, rpcPointValidation_cfi::recHit, RecoveredChan, EcalSeverityLevelAlgo::severityLevel(), DetId::subdetId(), theEcalSeveritiesToBeExcluded, theEcalSevLvlAlgo, theGeometry, theTowerConstituentsMap, theUseEtEBTresholdFlag, theUseEtEETresholdFlag, theUseSymEBTresholdFlag, theUseSymEETresholdFlag, remoteMonitoring_LASER_era2018_cfg::threshold, l1tHGCalTowerProducer_cfi::tower, CaloTowerConstituentsMap::towerOf(), and mps_merge::weight.
Referenced by process().
|
private |
Definition at line 536 of file CaloTowersCreationAlgo.cc.
References BadChan, gather_cfg::cout, HcalDetId::depth(), DetId::det(), MillePedeFileConverter_cfg::e, CaloTowersCreationAlgo::MetaTower::E, CaloTowersCreationAlgo::MetaTower::E_had, CaloTowersCreationAlgo::MetaTower::E_outer, HCALHighEnergyHPDFilter_cfi::energy, find(), HcalTopology::getMergePositionFlag(), getThresholdAndWeight(), GoodChan, CaloTowersCreationAlgo::MetaTower::hadSumEForTime, CaloTowersCreationAlgo::MetaTower::hadSumTimeTimesE, DetId::Hcal, hcalChanStatusForCaloTower(), HcalEndcap, HcalForward, HcalOuter, HcalTopology::idFront(), CaloTowerDetId::ieta(), HcalDetId::ietaAbs(), IgnoredChan, CaloTowerDetId::iphi(), HcalTopology::lastHERing(), CaloTowersParam_cfi::mc, merge(), HcalTopology::mergedDepth29(), CaloTowersCreationAlgo::MetaTower::metaConstituents, DetId::null(), CaloTowersCreationAlgo::MetaTower::numBadHcalCells, CaloTowersCreationAlgo::MetaTower::numProbHcalCells, CaloTowersCreationAlgo::MetaTower::numRecHcalCells, ProblematicChan, rpcPointValidation_cfi::recHit, RecoveredChan, HcalDetId::subdet(), theHcalPhase, theHcalTopology, theHOIsUsed, theTowerConstituentsMap, remoteMonitoring_LASER_era2018_cfg::threshold, l1tHGCalTowerProducer_cfi::tower, CaloTowerConstituentsMap::towerOf(), mps_merge::weight, and CaloTowerDetId::zside().
Referenced by process().
void CaloTowersCreationAlgo::begin | ( | void | ) |
Definition at line 370 of file CaloTowersCreationAlgo.cc.
References theTowerMap, and theTowerMapSize.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
|
private |
Definition at line 1634 of file CaloTowersCreationAlgo.cc.
References createfilelist::int, and protons_cff::time.
Referenced by convert().
|
private |
if (E>0) towerP4 = CaloTower::PolarLorentzVector(E*sumPf, emPoint.eta(), emPoint.phi(), 0);
Definition at line 926 of file CaloTowersCreationAlgo.cc.
References cms::cuda::assert(), PV3DBase< T, PVType, FrameType >::basicVector(), universalConfigTemplate::collection, compactTime(), edm::contains(), CaloTowerTopology::denseIndex(), change_name::diff, DetId::Ecal, ecalBadChs, digitizers_cfi::ecalTime, emShwrLogWeightPos(), emShwrPos(), PV3DBase< T, PVType, FrameType >::eta(), CaloTowerTopology::firstHFRing(), CaloSubdetectorGeometry::getGeometry(), hadShwrPos(), DetId::Hcal, hcalDropChMap, HcalOuter, mps_fire::i, if(), CaloTowerTopology::lastHBRing(), CaloTowerTopology::lastHERing(), CaloTowerTopology::lastHFRing(), CaloTowerTopology::lastHORing(), match(), missingHcalRescaleFactorForEcal, eostools::move(), TtSemiLepEvtBuilder_cfi::mt, AlCaHLTBitMon_ParallelJobs::p, PV3DBase< T, PVType, FrameType >::phi(), edm::second(), mathSSE::sqrt(), HcalDetId::subdet(), theEBSumThreshold, theEcutTower, theEESumThreshold, theHcalThreshold, theHOIsUsed, theMomConstrMethod, theMomEBDepth, theMomEEDepth, theMomHBDepth, theMomHEDepth, theTowerGeometry, theTowerTopology, Basic3DVector< T >::unit(), UNLIKELY, heppy_batch::val, and trackerHitRTTI::vector.
Referenced by finish().
std::tuple< unsigned int, bool > CaloTowersCreationAlgo::ecalChanStatusForCaloTower | ( | const EcalRecHit * | hit | ) |
Definition at line 1804 of file CaloTowersCreationAlgo.cc.
References BadChan, runTheMatrix::const, spr::find(), GoodChan, IgnoredChan, EcalSeverityLevel::kBad, EcalSeverityLevel::kGood, EcalSeverityLevel::kRecovered, ProblematicChan, RecoveredChan, interestingDetIdCollectionProducer_cfi::severityLevel, EcalSeverityLevelAlgo::severityLevel(), theEcalSeveritiesToBeExcluded, theEcalSeveritiesToBeUsedInBadTowers, theEcalSevLvlAlgo, theRecoveredEcalHitsAreUsed, useRejectedHitsOnly, and useRejectedRecoveredEcalHits.
Referenced by assignHitEcal().
GlobalPoint CaloTowersCreationAlgo::emCrystalShwrPos | ( | DetId | detId, |
float | fracDepth | ||
) |
Definition at line 1397 of file CaloTowersCreationAlgo.cc.
References CaloGeometry::getGeometry(), point, and theGeometry.
Referenced by emShwrLogWeightPos(), emShwrPos(), and hadSegmentShwrPos().
GlobalPoint CaloTowersCreationAlgo::emShwrLogWeightPos | ( | const std::vector< std::pair< DetId, float >> & | metaContains, |
float | fracDepth, | ||
double | totEmE | ||
) |
Definition at line 1597 of file CaloTowersCreationAlgo.cc.
References DetId::Ecal, emCrystalShwrPos(), dqm-mbProfile::log, AlCaHLTBitMon_ParallelJobs::p, and mps_merge::weight.
Referenced by convert().
GlobalPoint CaloTowersCreationAlgo::emShwrPos | ( | const std::vector< std::pair< DetId, float >> & | metaContains, |
float | fracDepth, | ||
double | totEmE | ||
) |
Definition at line 1567 of file CaloTowersCreationAlgo.cc.
References MillePedeFileConverter_cfg::e, DetId::Ecal, emCrystalShwrPos(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by convert().
|
private |
looks for a given tower in the internal cache. If it can't find it, it makes it.
Definition at line 910 of file CaloTowersCreationAlgo.cc.
References CaloTowerTopology::denseIndex(), CaloTowerTopology::firstHFRing(), CaloTowerDetId::ietaAbs(), TtSemiLepEvtBuilder_cfi::mt, CaloTowerTopology::sizeForDenseIndexing(), theTowerMap, theTowerMapSize, and theTowerTopology.
Referenced by assignHitEcal(), assignHitHcal(), and rescale().
void CaloTowersCreationAlgo::finish | ( | CaloTowerCollection & | destCollection | ) |
Definition at line 406 of file CaloTowersCreationAlgo.cc.
References convert(), TtSemiLepEvtBuilder_cfi::mt, mps_fire::result, theTowerMap, and theTowerMapSize.
Referenced by progressbar.ProgressBar::__next__(), and CaloTowersCreator::produce().
|
private |
helper method to look up the appropriate threshold & weight
Definition at line 1245 of file CaloTowersCreationAlgo.cc.
References LEDCalibrationChannels::depth, HcalDetId::depth(), DetId::det(), DetId::Ecal, EcalBarrel, EcalEndcap, HcalTopology::firstHEDoublePhiRing(), DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalDetId::ieta(), HcalDetId::ietaAbs(), fftjetcommon_cfi::Interpolator, HcalDetId::subdet(), DetId::subdetId(), theEBEScale, theEBGrid, theEBthreshold, theEBweight, theEBWeights, theEEEScale, theEEGrid, theEEthreshold, theEEweight, theEEWeights, theHBEScale, theHBGrid, theHBthreshold, theHBthreshold1, theHBthreshold2, theHBweight, theHBWeights, theHcalTopology, theHEDEScale, theHEDGrid, theHEDthreshold, theHEDthreshold1, theHEDweight, theHEDWeights, theHESEScale, theHESGrid, theHESthreshold, theHESthreshold1, theHESweight, theHESWeights, theHF1EScale, theHF1Grid, theHF1threshold, theHF1weight, theHF1Weights, theHF2EScale, theHF2Grid, theHF2threshold, theHF2weight, theHF2Weights, theHOEScale, theHOGrid, theHOthreshold0, theHOthresholdMinus1, theHOthresholdMinus2, theHOthresholdPlus1, theHOthresholdPlus2, theHOweight, theHOWeights, and remoteMonitoring_LASER_era2018_cfg::threshold.
Referenced by assignHitEcal(), assignHitHcal(), rescale(), and rescaleTowers().
GlobalPoint CaloTowersCreationAlgo::hadSegmentShwrPos | ( | DetId | detId, |
float | fracDepth | ||
) |
Definition at line 1412 of file CaloTowersCreationAlgo.cc.
References emCrystalShwrPos().
GlobalPoint CaloTowersCreationAlgo::hadShwPosFromCells | ( | DetId | frontCell, |
DetId | backCell, | ||
float | fracDepth | ||
) |
Definition at line 1540 of file CaloTowersCreationAlgo.cc.
References gather_cfg::cout, CaloGeometry::getGeometry(), HcalTopology::getMergePositionFlag(), HcalTopology::idBack(), HcalTopology::idFront(), point, theGeometry, and theHcalTopology.
Referenced by hadShwrPos().
GlobalPoint CaloTowersCreationAlgo::hadShwrPos | ( | const std::vector< std::pair< DetId, float >> & | metaContains, |
float | fracDepth, | ||
double | hadE | ||
) |
Referenced by convert().
GlobalPoint CaloTowersCreationAlgo::hadShwrPos | ( | CaloTowerDetId | id, |
float | fracDepth | ||
) |
Definition at line 1456 of file CaloTowersCreationAlgo.cc.
References funct::abs(), CaloTowerConstituentsMap::constituentsOf(), CaloTowerTopology::convertCTtoHcal(), gather_cfg::cout, HcalDetId::depth(), CaloTowerTopology::firstHFRing(), hadShwPosFromCells(), DetId::Hcal, HcalForward, HcalOuter, mps_fire::i, HcalTopology::idBack(), HcalTopology::idFront(), l1tTowerCalibrationProducer_cfi::iEta, mps_monitormerge::items, dqmdumpme::k, CaloTowerTopology::lastHERing(), point, HcalDetId::subdet(), theHcalPhase, theHcalTopology, theTowerConstituentsMap, theTowerTopology, ecaldqm::towerId(), and HcalTopology::validHcal().
unsigned int CaloTowersCreationAlgo::hcalChanStatusForCaloTower | ( | const CaloRecHit * | hit | ) |
Definition at line 1753 of file CaloTowersCreationAlgo.cc.
References BadChan, gather_cfg::cout, HcalSeverityLevelComputer::getSeverityLevel(), HcalChannelStatus::getValue(), HcalCondObjectContainer< Item >::getValues(), GoodChan, HcalTopology::idFront(), IgnoredChan, ProblematicChan, RecoveredChan, HcalSeverityLevelComputer::recoveredRecHit(), interestingDetIdCollectionProducer_cfi::severityLevel, theHcalAcceptSeverityLevel, theHcalAcceptSeverityLevelForRejectedHit, theHcalChStatus, theHcalSevLvlComputer, theHcalTopology, theRecoveredHcalHitsAreUsed, useRejectedHitsOnly, and useRejectedRecoveredHcalHits.
Referenced by assignHitHcal().
void CaloTowersCreationAlgo::makeEcalBadChs | ( | ) |
Definition at line 1710 of file CaloTowersCreationAlgo.cc.
References CaloTowerConstituentsMap::constituentsOf(), CaloTowerTopology::detIdFromDenseIndex(), DetId::Ecal, ecalBadChs, spr::find(), EcalSeverityLevelAlgo::severityLevel(), CaloTowerTopology::sizeForDenseIndexing(), theEcalSeveritiesToBeExcluded, theEcalSevLvlAlgo, theTowerConstituentsMap, theTowerTopology, and mitigatedMETSequence_cff::U.
Referenced by CaloTowersCreator::produce().
void CaloTowersCreationAlgo::makeHcalDropChMap | ( | ) |
Definition at line 1649 of file CaloTowersCreationAlgo.cc.
References CaloTowerConstituentsMap::constituentsOf(), gather_cfg::cout, HcalSeverityLevelComputer::dropChannel(), HcalCondObjectContainer< Item >::getAllChannels(), HcalChannelStatus::getValue(), HcalCondObjectContainer< Item >::getValues(), DetId::Hcal, HcalBarrel, hcalDropChMap, HcalEndcap, CaloTowerDetId::ieta(), HcalDetId::ietaAbs(), CaloTowerDetId::iphi(), HcalTopology::lastHERing(), HcalTopology::mergedDepth29(), HcalTopology::mergedDepthDetId(), missingHcalRescaleFactorForEcal, HcalDetId::subdet(), theHcalChStatus, theHcalPhase, theHcalSevLvlComputer, theHcalTopology, theTowerConstituentsMap, CaloTowerConstituentsMap::towerOf(), and CaloTowerDetId::zside().
Referenced by CaloTowersCreator::produce().
void CaloTowersCreationAlgo::process | ( | const HBHERecHitCollection & | hbhe | ) |
Definition at line 376 of file CaloTowersCreationAlgo.cc.
References assignHitHcal(), and photonIsolationHIProducer_cfi::hbhe.
Referenced by CaloTowersCreator::produce().
void CaloTowersCreationAlgo::process | ( | const HORecHitCollection & | ho | ) |
Definition at line 381 of file CaloTowersCreationAlgo.cc.
References assignHitHcal(), and photonIsolationHIProducer_cfi::ho.
void CaloTowersCreationAlgo::process | ( | const HFRecHitCollection & | hf | ) |
Definition at line 386 of file CaloTowersCreationAlgo.cc.
References assignHitHcal(), and photonIsolationHIProducer_cfi::hf.
void CaloTowersCreationAlgo::process | ( | const EcalRecHitCollection & | ecal | ) |
Definition at line 391 of file CaloTowersCreationAlgo.cc.
References assignHitEcal(), edm::SortedCollection< T, SORT >::begin(), and edm::SortedCollection< T, SORT >::end().
void CaloTowersCreationAlgo::process | ( | const CaloTowerCollection & | ctc | ) |
Definition at line 400 of file CaloTowersCreationAlgo.cc.
References edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), and rescale().
|
private |
Definition at line 866 of file CaloTowersCreationAlgo.cc.
References CaloTower::constituent(), CaloTower::constituentsSize(), HcalDetId::depth(), DetId::det(), DetId::Ecal, CaloTower::ecalTime(), CaloTower::emEnergy(), find(), getThresholdAndWeight(), CaloTower::hadEnergy(), HcalForward, HcalOuter, CaloTower::hcalTime(), mps_fire::i, CaloTower::id(), CaloTowersParam_cfi::mc, DetId::null(), CaloTower::outerEnergy(), HcalDetId::subdet(), theTowerConstituentsMap, remoteMonitoring_LASER_era2018_cfg::threshold, l1tHGCalTowerProducer_cfi::tower, CaloTowerConstituentsMap::towerOf(), and mps_merge::weight.
Referenced by process().
void CaloTowersCreationAlgo::rescaleTowers | ( | const CaloTowerCollection & | ctInput, |
CaloTowerCollection & | ctResult | ||
) |
Definition at line 428 of file CaloTowersCreationAlgo.cc.
References CaloTower::addConstituents(), edm::SortedCollection< T, SORT >::begin(), edm::contains(), DetId::det(), DetId::Ecal, edm::SortedCollection< T, SORT >::end(), PV3DBase< T, PVType, FrameType >::eta(), CaloTowerTopology::firstHERing(), CaloTowerTopology::firstHFRing(), getThresholdAndWeight(), DetId::Hcal, HcalOuter, CaloTowerDetId::ietaAbs(), CaloTowerTopology::lastHBRing(), CaloTowerTopology::lastHERing(), CaloTowerTopology::lastHFRing(), CaloTowerTopology::lastHORing(), PV3DBase< T, PVType, FrameType >::phi(), edm::SortedCollection< T, SORT >::push_back(), CaloTower::setCaloTowerStatus(), CaloTower::setEcalTime(), CaloTower::setHcalSubdet(), CaloTower::setHcalTime(), HcalDetId::subdet(), theHF1weight, theHF2weight, theHOIsUsed, theTowerTopology, remoteMonitoring_LASER_era2018_cfg::threshold, and mps_merge::weight.
Referenced by CaloTowersReCreator::produce().
void CaloTowersCreationAlgo::setEBEScale | ( | double | scale | ) |
Definition at line 1341 of file CaloTowersCreationAlgo.cc.
References L1EGammaClusterEmuProducer_cfi::scale, and theEBEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
|
inline |
Definition at line 240 of file CaloTowersCreationAlgo.h.
References theEbHandle.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 164 of file CaloTowersCreationAlgo.h.
References alignCSCRings::s, and theEcalChStatus.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 206 of file CaloTowersCreationAlgo.h.
References theEcalSeveritiesToBeExcluded.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 228 of file CaloTowersCreationAlgo.h.
References theEcalSeveritiesToBeUsedInBadTowers.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 216 of file CaloTowersCreationAlgo.h.
References a, and theEcalSevLvlAlgo.
Referenced by CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setEEEScale | ( | double | scale | ) |
Definition at line 1348 of file CaloTowersCreationAlgo.cc.
References L1EGammaClusterEmuProducer_cfi::scale, and theEEEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
|
inline |
Definition at line 241 of file CaloTowersCreationAlgo.h.
References theEeHandle.
Referenced by CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setGeometry | ( | const CaloTowerTopology * | cttopo, |
const CaloTowerConstituentsMap * | ctmap, | ||
const HcalTopology * | htopo, | ||
const CaloGeometry * | geo | ||
) |
Definition at line 356 of file CaloTowersCreationAlgo.cc.
References DetId::Calo, ecalBadChs, CaloGeometry::getSubdetectorGeometry(), CaloTowerTopology::sizeForDenseIndexing(), CaloTowerDetId::SubdetId, theGeometry, theHcalTopology, theTowerConstituentsMap, theTowerGeometry, and theTowerTopology.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHBEScale | ( | double | scale | ) |
Definition at line 1355 of file CaloTowersCreationAlgo.cc.
References L1EGammaClusterEmuProducer_cfi::scale, and theHBEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
|
inline |
Definition at line 205 of file CaloTowersCreationAlgo.h.
References personalPlayback::level, and theHcalAcceptSeverityLevel.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 224 of file CaloTowersCreationAlgo.h.
References personalPlayback::level, and theHcalAcceptSeverityLevelForRejectedHit.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 163 of file CaloTowersCreationAlgo.h.
References alignCSCRings::s, and theHcalChStatus.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 213 of file CaloTowersCreationAlgo.h.
References c, and theHcalSevLvlComputer.
Referenced by CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHEDEScale | ( | double | scale | ) |
Definition at line 1369 of file CaloTowersCreationAlgo.cc.
References L1EGammaClusterEmuProducer_cfi::scale, and theHEDEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHESEScale | ( | double | scale | ) |
Definition at line 1362 of file CaloTowersCreationAlgo.cc.
References L1EGammaClusterEmuProducer_cfi::scale, and theHESEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHF1EScale | ( | double | scale | ) |
Definition at line 1383 of file CaloTowersCreationAlgo.cc.
References L1EGammaClusterEmuProducer_cfi::scale, and theHF1EScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHF2EScale | ( | double | scale | ) |
Definition at line 1390 of file CaloTowersCreationAlgo.cc.
References L1EGammaClusterEmuProducer_cfi::scale, and theHF2EScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHOEScale | ( | double | scale | ) |
Definition at line 1376 of file CaloTowersCreationAlgo.cc.
References L1EGammaClusterEmuProducer_cfi::scale, and theHOEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
|
inline |
Definition at line 234 of file CaloTowersCreationAlgo.h.
References DQMScaleToClient_cfi::factor, and missingHcalRescaleFactorForEcal.
Referenced by CaloTowersCreator::CaloTowersCreator().
|
inline |
Definition at line 210 of file CaloTowersCreationAlgo.h.
References RemoveAddSevLevel::flag, and theRecoveredEcalHitsAreUsed.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 209 of file CaloTowersCreationAlgo.h.
References RemoveAddSevLevel::flag, and theRecoveredHcalHitsAreUsed.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 222 of file CaloTowersCreationAlgo.h.
References RemoveAddSevLevel::flag, and useRejectedHitsOnly.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 233 of file CaloTowersCreationAlgo.h.
References RemoveAddSevLevel::flag, and useRejectedRecoveredEcalHits.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 232 of file CaloTowersCreationAlgo.h.
References RemoveAddSevLevel::flag, and useRejectedRecoveredHcalHits.
Referenced by CaloTowersCreator::produce().
|
private |
Definition at line 385 of file CaloTowersCreationAlgo.h.
Referenced by convert(), makeEcalBadChs(), and setGeometry().
|
private |
Definition at line 381 of file CaloTowersCreationAlgo.h.
Referenced by convert(), and makeHcalDropChMap().
|
private |
Definition at line 399 of file CaloTowersCreationAlgo.h.
|
private |
Definition at line 355 of file CaloTowersCreationAlgo.h.
Referenced by convert(), makeHcalDropChMap(), and setMissingHcalRescaleFactorForEcal().
int CaloTowersCreationAlgo::nalgo = -1 |
Definition at line 50 of file CaloTowersCreationAlgo.h.
|
private |
Definition at line 312 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setEBEScale().
|
private |
Definition at line 300 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 394 of file CaloTowersCreationAlgo.h.
Referenced by setEbHandle().
|
private |
Definition at line 310 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 289 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 308 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 300 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 327 of file CaloTowersCreationAlgo.h.
Referenced by setEcalChStatusFromDB().
|
private |
Definition at line 340 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal(), ecalChanStatusForCaloTower(), makeEcalBadChs(), and setEcalSeveritiesToBeExcluded().
|
private |
Definition at line 349 of file CaloTowersCreationAlgo.h.
Referenced by ecalChanStatusForCaloTower(), and SetEcalSeveritiesToBeUsedInBadTowers().
|
private |
Definition at line 334 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal(), ecalChanStatusForCaloTower(), makeEcalBadChs(), and setEcalSevLvlAlgo().
|
private |
Definition at line 310 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 313 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setEEEScale().
|
private |
Definition at line 301 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 395 of file CaloTowersCreationAlgo.h.
Referenced by setEeHandle().
|
private |
Definition at line 310 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 289 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 308 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 301 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 322 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal(), emCrystalShwrPos(), hadShwPosFromCells(), and setGeometry().
|
private |
Definition at line 314 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHBEScale().
|
private |
Definition at line 302 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 295 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 295 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 295 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 309 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 302 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 339 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), and setHcalAcceptSeverityLevel().
|
private |
Definition at line 348 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), and setHcalAcceptSeverityLevelForRejectedHit().
|
private |
Definition at line 328 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), makeHcalDropChMap(), and setHcalChStatusFromDB().
|
private |
Definition at line 397 of file CaloTowersCreationAlgo.h.
Referenced by assignHitHcal(), hadShwrPos(), and makeHcalDropChMap().
|
private |
Definition at line 331 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), makeHcalDropChMap(), and setHcalSevLvlComputer().
|
private |
Definition at line 293 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 321 of file CaloTowersCreationAlgo.h.
Referenced by assignHitHcal(), getThresholdAndWeight(), hadShwPosFromCells(), hadShwrPos(), hcalChanStatusForCaloTower(), makeHcalDropChMap(), and setGeometry().
|
private |
Definition at line 316 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHEDEScale().
|
private |
Definition at line 304 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 297 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 297 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 309 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 304 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 315 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHESEScale().
|
private |
Definition at line 303 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 296 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 296 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 309 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 303 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 318 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHF1EScale().
|
private |
Definition at line 306 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 299 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 309 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and rescaleTowers().
|
private |
Definition at line 306 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 319 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHF2EScale().
|
private |
Definition at line 307 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 299 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 309 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and rescaleTowers().
|
private |
Definition at line 307 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 317 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHOEScale().
|
private |
Definition at line 305 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
only affects energy and ET calculation. HO is still recorded in the tower
Definition at line 358 of file CaloTowersCreationAlgo.h.
Referenced by assignHitHcal(), convert(), and rescaleTowers().
|
private |
Definition at line 298 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 298 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 299 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 298 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 299 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 309 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 305 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 362 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 365 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 366 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 363 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 364 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 343 of file CaloTowersCreationAlgo.h.
Referenced by ecalChanStatusForCaloTower(), and setRecoveredEcalHitsAreUsed().
|
private |
Definition at line 342 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), and setRecoveredHcalHitsAreUsed().
|
private |
Definition at line 323 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal(), assignHitHcal(), hadShwrPos(), makeEcalBadChs(), makeHcalDropChMap(), rescale(), and setGeometry().
|
private |
Definition at line 324 of file CaloTowersCreationAlgo.h.
Referenced by convert(), and setGeometry().
|
private |
Definition at line 375 of file CaloTowersCreationAlgo.h.
|
private |
Definition at line 376 of file CaloTowersCreationAlgo.h.
|
private |
Definition at line 320 of file CaloTowersCreationAlgo.h.
Referenced by convert(), find(), hadShwrPos(), makeEcalBadChs(), rescaleTowers(), and setGeometry().
|
private |
Definition at line 290 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal().
|
private |
Definition at line 290 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal().
|
private |
Definition at line 291 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal().
|
private |
Definition at line 291 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal().
|
private |
Definition at line 347 of file CaloTowersCreationAlgo.h.
Referenced by ecalChanStatusForCaloTower(), hcalChanStatusForCaloTower(), and setUseRejectedHitsOnly().
|
private |
Definition at line 352 of file CaloTowersCreationAlgo.h.
Referenced by ecalChanStatusForCaloTower(), and setUseRejectedRecoveredEcalHits().
|
private |
Definition at line 351 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), and setUseRejectedRecoveredHcalHits().