#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 HESthreshold, double HEDthreshold, 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) | |
CaloTowersCreationAlgo (double EBthreshold, double EEthreshold, bool useEtEBTreshold, bool useEtEETreshold, bool useSymEBTreshold, bool useSymEETreshold, double HcalThreshold, double HBthreshold, double HESthreshold, double HEDthreshold, 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) | |
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 CaloTowerConstituentsMap *cttopo, 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 | 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, int > | 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 333 of file CaloTowersCreationAlgo.h.
|
private |
Definition at line 327 of file CaloTowersCreationAlgo.h.
|
private |
Enumerator | |
---|---|
GoodChan | |
BadChan | |
RecoveredChan | |
ProblematicChan | |
IgnoredChan |
Definition at line 342 of file CaloTowersCreationAlgo.h.
CaloTowersCreationAlgo::CaloTowersCreationAlgo | ( | ) |
Definition at line 10 of file CaloTowersCreationAlgo.cc.
CaloTowersCreationAlgo::CaloTowersCreationAlgo | ( | double | EBthreshold, |
double | EEthreshold, | ||
bool | useEtEBTreshold, | ||
bool | useEtEETreshold, | ||
bool | useSymEBTreshold, | ||
bool | useSymEETreshold, | ||
double | HcalThreshold, | ||
double | HBthreshold, | ||
double | HESthreshold, | ||
double | HEDthreshold, | ||
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 | ||
) |
Definition at line 71 of file CaloTowersCreationAlgo.cc.
CaloTowersCreationAlgo::CaloTowersCreationAlgo | ( | double | EBthreshold, |
double | EEthreshold, | ||
bool | useEtEBTreshold, | ||
bool | useEtEETreshold, | ||
bool | useSymEBTreshold, | ||
bool | useSymEETreshold, | ||
double | HcalThreshold, | ||
double | HBthreshold, | ||
double | HESthreshold, | ||
double | HEDthreshold, | ||
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 | ||
) |
Definition at line 152 of file CaloTowersCreationAlgo.cc.
|
private |
adds a single hit to the tower
Definition at line 634 of file CaloTowersCreationAlgo.cc.
References BadChan, EcalRecHit::detid(), alignCSCRings::e, CaloTowersCreationAlgo::MetaTower::E, CaloTowersCreationAlgo::MetaTower::E_em, EcalBarrel, ecalChanStatusForCaloTower(), EcalEndcap, CaloTowersCreationAlgo::MetaTower::emSumEForTime, CaloTowersCreationAlgo::MetaTower::emSumTimeTimesE, relval_parameters_module::energy, EcalRecHit::energy(), eta(), spr::find(), find(), CaloGeometry::getGeometry(), CaloCellGeometry::getPosition(), getThresholdAndWeight(), GoodChan, IgnoredChan, CaloTowersCreationAlgo::MetaTower::metaConstituents, DetId::null(), CaloTowersCreationAlgo::MetaTower::numBadEcalCells, CaloTowersCreationAlgo::MetaTower::numProbEcalCells, CaloTowersCreationAlgo::MetaTower::numRecEcalCells, ProblematicChan, RecoveredChan, EcalSeverityLevelAlgo::severityLevel(), DetId::subdetId(), theEcalSeveritiesToBeExcluded, theEcalSevLvlAlgo, theGeometry, theTowerConstituentsMap, theUseEtEBTresholdFlag, theUseEtEETresholdFlag, theUseSymEBTresholdFlag, theUseSymEETresholdFlag, dtDQMClient_cfg::threshold, EcalRecHit::time(), CaloTowerConstituentsMap::towerOf(), and histoStyle::weight.
Referenced by process().
|
private |
Definition at line 417 of file CaloTowersCreationAlgo.cc.
References BadChan, HcalDetId::depth(), DetId::det(), CaloRecHit::detid(), alignCSCRings::e, CaloTowersCreationAlgo::MetaTower::E, CaloTowersCreationAlgo::MetaTower::E_em, CaloTowersCreationAlgo::MetaTower::E_had, CaloTowersCreationAlgo::MetaTower::E_outer, CaloRecHit::energy(), relval_parameters_module::energy, find(), getThresholdAndWeight(), GoodChan, CaloTowersCreationAlgo::MetaTower::hadSumEForTime, CaloTowersCreationAlgo::MetaTower::hadSumTimeTimesE, DetId::Hcal, hcalChanStatusForCaloTower(), HcalEndcap, HcalForward, HcalOuter, CaloTowerDetId::ieta(), HcalDetId::ietaAbs(), IgnoredChan, CaloTowerDetId::iphi(), CaloTowersCreationAlgo::MetaTower::metaConstituents, DetId::null(), CaloTowersCreationAlgo::MetaTower::numBadHcalCells, CaloTowersCreationAlgo::MetaTower::numProbHcalCells, CaloTowersCreationAlgo::MetaTower::numRecHcalCells, ProblematicChan, RecoveredChan, HcalDetId::subdet(), theHOIsUsed, theTowerConstituentsMap, dtDQMClient_cfg::threshold, CaloRecHit::time(), CaloTowerConstituentsMap::towerOf(), histoStyle::weight, and CaloTowerDetId::zside().
Referenced by process().
void CaloTowersCreationAlgo::begin | ( | void | ) |
Definition at line 251 of file CaloTowersCreationAlgo.cc.
References theTowerMap, and theTowerMapSize.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
|
private |
Definition at line 1436 of file CaloTowersCreationAlgo.cc.
Referenced by convert().
|
private |
if (E>0) towerP4 = CaloTower::PolarLorentzVector(E*sumPf, emPoint.eta(), emPoint.phi(), 0);
Definition at line 789 of file CaloTowersCreationAlgo.cc.
References edm::SortedCollection< T, SORT >::back(), PV3DBase< T, PVType, FrameType >::basicVector(), compactTime(), edm::contains(), diffTreeTool::diff, CaloTowersCreationAlgo::MetaTower::E, CaloTowersCreationAlgo::MetaTower::E_em, CaloTowersCreationAlgo::MetaTower::E_had, CaloTowersCreationAlgo::MetaTower::E_outer, DetId::Ecal, ecalBadChs, emShwrLogWeightPos(), emShwrPos(), CaloTowersCreationAlgo::MetaTower::emSumEForTime, CaloTowersCreationAlgo::MetaTower::emSumTimeTimesE, PV3DBase< T, PVType, FrameType >::eta(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), hadShwrPos(), CaloTowersCreationAlgo::MetaTower::hadSumEForTime, CaloTowersCreationAlgo::MetaTower::hadSumTimeTimesE, DetId::Hcal, hcalDropChMap, HcalOuter, i, reco::if(), CaloTowersCreationAlgo::MetaTower::metaConstituents, CaloTowersCreationAlgo::MetaTower::numBadEcalCells, CaloTowersCreationAlgo::MetaTower::numBadHcalCells, CaloTowersCreationAlgo::MetaTower::numProbEcalCells, CaloTowersCreationAlgo::MetaTower::numProbHcalCells, CaloTowersCreationAlgo::MetaTower::numRecEcalCells, CaloTowersCreationAlgo::MetaTower::numRecHcalCells, AlCaHLTBitMon_ParallelJobs::p, PV3DBase< T, PVType, FrameType >::phi(), edm::SortedCollection< T, SORT >::pop_back(), edm::second(), mathSSE::sqrt(), HcalDetId::subdet(), theEBSumThreshold, theEcutTower, theEESumThreshold, theHcalThreshold, theHOIsUsed, theMomConstrMethod, theMomEBDepth, theMomEEDepth, theMomHBDepth, theMomHEDepth, theTowerGeometry, Basic3DVector< T >::unit(), and unlikely.
Referenced by finish().
std::tuple< unsigned int, bool > CaloTowersCreationAlgo::ecalChanStatusForCaloTower | ( | const EcalRecHit * | hit | ) |
Definition at line 1601 of file CaloTowersCreationAlgo.cc.
References BadChan, spr::find(), GoodChan, IgnoredChan, EcalSeverityLevel::kBad, EcalSeverityLevel::kGood, EcalSeverityLevel::kRecovered, ProblematicChan, RecoveredChan, EcalSeverityLevelAlgo::severityLevel(), theEcalSeveritiesToBeExcluded, theEcalSeveritiesToBeUsedInBadTowers, theEcalSevLvlAlgo, theRecoveredEcalHitsAreUsed, useRejectedHitsOnly, and useRejectedRecoveredEcalHits.
Referenced by assignHitEcal().
GlobalPoint CaloTowersCreationAlgo::emCrystalShwrPos | ( | DetId | detId, |
float | fracDepth | ||
) |
Definition at line 1233 of file CaloTowersCreationAlgo.cc.
References CaloCellGeometry::getBackPoint(), CaloGeometry::getGeometry(), CaloCellGeometry::getPosition(), 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 1397 of file CaloTowersCreationAlgo.cc.
References DetId::Ecal, emCrystalShwrPos(), create_public_lumi_plots::log, AlCaHLTBitMon_ParallelJobs::p, histoStyle::weight, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by convert().
GlobalPoint CaloTowersCreationAlgo::emShwrPos | ( | const std::vector< std::pair< DetId, float > > & | metaContains, |
float | fracDepth, | ||
double | totEmE | ||
) |
Definition at line 1367 of file CaloTowersCreationAlgo.cc.
References alignCSCRings::e, DetId::Ecal, emCrystalShwrPos(), AlCaHLTBitMon_ParallelJobs::p, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
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 772 of file CaloTowersCreationAlgo.cc.
References CaloTowerDetId::denseIndex(), CaloTowerDetId::ietaAbs(), CaloTowerDetId::kSizeForDenseIndexing, theTowerMap, and theTowerMapSize.
Referenced by assignHitEcal(), assignHitHcal(), and rescale().
void CaloTowersCreationAlgo::finish | ( | CaloTowerCollection & | destCollection | ) |
Definition at line 294 of file CaloTowersCreationAlgo.cc.
References convert(), edm::SortedCollection< T, SORT >::reserve(), theTowerMap, and theTowerMapSize.
Referenced by progressbar.ProgressBar::__next__(), and CaloTowersCreator::produce().
|
private |
helper method to look up the appropriate threshold & weight
Definition at line 1094 of file CaloTowersCreationAlgo.cc.
References HcalDetId::depth(), DetId::det(), DetId::Ecal, EcalBarrel, EcalEndcap, HcalTopology::firstHEDoublePhiRing(), DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalDetId::ieta(), HcalDetId::ietaAbs(), HcalDetId::subdet(), DetId::subdetId(), theEBEScale, theEBGrid, theEBthreshold, theEBweight, theEBWeights, theEEEScale, theEEGrid, theEEthreshold, theEEweight, theEEWeights, theHBEScale, theHBGrid, theHBthreshold, theHBweight, theHBWeights, theHcalTopology, theHEDEScale, theHEDGrid, theHEDthreshold, theHEDweight, theHEDWeights, theHESEScale, theHESGrid, theHESthreshold, theHESweight, theHESWeights, theHF1EScale, theHF1Grid, theHF1threshold, theHF1weight, theHF1Weights, theHF2EScale, theHF2Grid, theHF2threshold, theHF2weight, theHF2Weights, theHOEScale, theHOGrid, theHOthreshold0, theHOthresholdMinus1, theHOthresholdMinus2, theHOthresholdPlus1, theHOthresholdPlus2, theHOweight, and theHOWeights.
Referenced by assignHitEcal(), assignHitHcal(), rescale(), and rescaleTowers().
GlobalPoint CaloTowersCreationAlgo::hadSegmentShwrPos | ( | DetId | detId, |
float | fracDepth | ||
) |
Definition at line 1246 of file CaloTowersCreationAlgo.cc.
References emCrystalShwrPos().
Referenced by hadShwrPos().
GlobalPoint CaloTowersCreationAlgo::hadShwPosFromCells | ( | DetId | frontCell, |
DetId | backCell, | ||
float | fracDepth | ||
) |
Definition at line 1350 of file CaloTowersCreationAlgo.cc.
References CaloCellGeometry::getBackPoint(), CaloGeometry::getGeometry(), CaloCellGeometry::getPosition(), point, and theGeometry.
Referenced by hadShwrPos().
GlobalPoint CaloTowersCreationAlgo::hadShwrPos | ( | const std::vector< std::pair< DetId, float > > & | metaContains, |
float | fracDepth, | ||
double | hadE | ||
) |
Definition at line 1252 of file CaloTowersCreationAlgo.cc.
References hadSegmentShwrPos(), DetId::Hcal, HcalOuter, AlCaHLTBitMon_ParallelJobs::p, HcalDetId::subdet(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by convert().
GlobalPoint CaloTowersCreationAlgo::hadShwrPos | ( | CaloTowerDetId | id, |
float | fracDepth | ||
) |
Definition at line 1285 of file CaloTowersCreationAlgo.cc.
References hadShwPosFromCells(), HcalBarrel, HcalEndcap, HcalForward, CaloTowerDetId::ieta(), CaloTowerDetId::ietaAbs(), CaloTowerDetId::iphi(), and point.
unsigned int CaloTowersCreationAlgo::hcalChanStatusForCaloTower | ( | const CaloRecHit * | hit | ) |
Definition at line 1539 of file CaloTowersCreationAlgo.cc.
References BadChan, CaloRecHit::detid(), CaloRecHit::flags(), HcalSeverityLevelComputer::getSeverityLevel(), HcalChannelStatus::getValue(), HcalCondObjectContainer< Item >::getValues(), GoodChan, IgnoredChan, ProblematicChan, RecoveredChan, HcalSeverityLevelComputer::recoveredRecHit(), theHcalAcceptSeverityLevel, theHcalAcceptSeverityLevelForRejectedHit, theHcalChStatus, theHcalSevLvlComputer, theRecoveredHcalHitsAreUsed, useRejectedHitsOnly, and useRejectedRecoveredHcalHits.
Referenced by assignHitHcal().
void CaloTowersCreationAlgo::makeEcalBadChs | ( | ) |
Definition at line 1490 of file CaloTowersCreationAlgo.cc.
References CaloTowerConstituentsMap::constituentsOf(), CaloTowerDetId::detIdFromDenseIndex(), DetId::Ecal, ecalBadChs, spr::find(), CaloTowerDetId::kSizeForDenseIndexing, EcalSeverityLevelAlgo::severityLevel(), theEcalSeveritiesToBeExcluded, theEcalSevLvlAlgo, and theTowerConstituentsMap.
Referenced by CaloTowersCreator::produce().
void CaloTowersCreationAlgo::makeHcalDropChMap | ( | ) |
Definition at line 1456 of file CaloTowersCreationAlgo.cc.
References HcalDetId::depth(), HcalSeverityLevelComputer::dropChannel(), HcalCondObjectContainer< Item >::getAllChannels(), HcalChannelStatus::getValue(), HcalCondObjectContainer< Item >::getValues(), hcalDropChMap, HcalEndcap, CaloTowerDetId::ieta(), HcalDetId::ietaAbs(), CaloTowerDetId::iphi(), HcalDetId::subdet(), theHcalChStatus, theHcalSevLvlComputer, theTowerConstituentsMap, CaloTowerConstituentsMap::towerOf(), and CaloTowerDetId::zside().
Referenced by CaloTowersCreator::produce().
void CaloTowersCreationAlgo::process | ( | const HBHERecHitCollection & | hbhe | ) |
Definition at line 257 of file CaloTowersCreationAlgo.cc.
References assignHitHcal(), edm::SortedCollection< T, SORT >::begin(), and edm::SortedCollection< T, SORT >::end().
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), CaloTowersCreator::produce(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
void CaloTowersCreationAlgo::process | ( | const HORecHitCollection & | ho | ) |
Definition at line 263 of file CaloTowersCreationAlgo.cc.
References assignHitHcal(), edm::SortedCollection< T, SORT >::begin(), and edm::SortedCollection< T, SORT >::end().
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
void CaloTowersCreationAlgo::process | ( | const HFRecHitCollection & | hf | ) |
Definition at line 269 of file CaloTowersCreationAlgo.cc.
References assignHitHcal(), edm::SortedCollection< T, SORT >::begin(), and edm::SortedCollection< T, SORT >::end().
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
void CaloTowersCreationAlgo::process | ( | const EcalRecHitCollection & | ecal | ) |
Definition at line 275 of file CaloTowersCreationAlgo.cc.
References assignHitEcal(), edm::SortedCollection< T, SORT >::begin(), and edm::SortedCollection< T, SORT >::end().
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
void CaloTowersCreationAlgo::process | ( | const CaloTowerCollection & | ctc | ) |
Definition at line 285 of file CaloTowersCreationAlgo.cc.
References edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), and rescale().
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
|
private |
Definition at line 727 of file CaloTowersCreationAlgo.cc.
References CaloTower::constituent(), CaloTower::constituentsSize(), HcalDetId::depth(), DetId::det(), CaloTowersCreationAlgo::MetaTower::E, CaloTowersCreationAlgo::MetaTower::E_em, CaloTowersCreationAlgo::MetaTower::E_had, CaloTowersCreationAlgo::MetaTower::E_outer, DetId::Ecal, CaloTower::ecalTime(), CaloTower::emEnergy(), CaloTowersCreationAlgo::MetaTower::emSumEForTime, CaloTowersCreationAlgo::MetaTower::emSumTimeTimesE, find(), getThresholdAndWeight(), CaloTower::hadEnergy(), CaloTowersCreationAlgo::MetaTower::hadSumEForTime, CaloTowersCreationAlgo::MetaTower::hadSumTimeTimesE, HcalForward, HcalOuter, CaloTower::hcalTime(), i, CaloTower::id(), CaloTowersCreationAlgo::MetaTower::metaConstituents, DetId::null(), CaloTower::outerEnergy(), HcalDetId::subdet(), theTowerConstituentsMap, dtDQMClient_cfg::threshold, CaloTowerConstituentsMap::towerOf(), and histoStyle::weight.
Referenced by process().
void CaloTowersCreationAlgo::rescaleTowers | ( | const CaloTowerCollection & | ctInput, |
CaloTowerCollection & | ctResult | ||
) |
Definition at line 315 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(), getThresholdAndWeight(), DetId::Hcal, HcalOuter, CaloTowerDetId::ietaAbs(), PV3DBase< T, PVType, FrameType >::phi(), edm::SortedCollection< T, SORT >::push_back(), CaloTower::setCaloTowerStatus(), CaloTower::setEcalTime(), CaloTower::setHcalTime(), HcalDetId::subdet(), theHF1weight, theHF2weight, theHOIsUsed, dtDQMClient_cfg::threshold, and histoStyle::weight.
Referenced by CaloTowersReCreator::produce().
void CaloTowersCreationAlgo::setEBEScale | ( | double | scale | ) |
Definition at line 1192 of file CaloTowersCreationAlgo.cc.
References pileupReCalc_HLTpaths::scale, and theEBEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
|
inline |
Definition at line 189 of file CaloTowersCreationAlgo.h.
References theEbHandle.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 112 of file CaloTowersCreationAlgo.h.
References alignCSCRings::s, and theEcalChStatus.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 156 of file CaloTowersCreationAlgo.h.
References theEcalSeveritiesToBeExcluded.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 177 of file CaloTowersCreationAlgo.h.
References theEcalSeveritiesToBeUsedInBadTowers.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 166 of file CaloTowersCreationAlgo.h.
References a, and theEcalSevLvlAlgo.
Referenced by CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setEEEScale | ( | double | scale | ) |
Definition at line 1197 of file CaloTowersCreationAlgo.cc.
References pileupReCalc_HLTpaths::scale, and theEEEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
|
inline |
Definition at line 190 of file CaloTowersCreationAlgo.h.
References theEeHandle.
Referenced by CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setGeometry | ( | const CaloTowerConstituentsMap * | cttopo, |
const HcalTopology * | htopo, | ||
const CaloGeometry * | geo | ||
) |
Definition at line 244 of file CaloTowersCreationAlgo.cc.
References DetId::Calo, CaloGeometry::getSubdetectorGeometry(), CaloTowerDetId::SubdetId, theGeometry, theHcalTopology, theTowerConstituentsMap, and theTowerGeometry.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHBEScale | ( | double | scale | ) |
Definition at line 1202 of file CaloTowersCreationAlgo.cc.
References pileupReCalc_HLTpaths::scale, and theHBEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
|
inline |
Definition at line 155 of file CaloTowersCreationAlgo.h.
References testEve_cfg::level, and theHcalAcceptSeverityLevel.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 175 of file CaloTowersCreationAlgo.h.
References testEve_cfg::level, and theHcalAcceptSeverityLevelForRejectedHit.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 111 of file CaloTowersCreationAlgo.h.
References alignCSCRings::s, and theHcalChStatus.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 163 of file CaloTowersCreationAlgo.h.
References trackerHits::c, and theHcalSevLvlComputer.
Referenced by CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHEDEScale | ( | double | scale | ) |
Definition at line 1212 of file CaloTowersCreationAlgo.cc.
References pileupReCalc_HLTpaths::scale, and theHEDEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHESEScale | ( | double | scale | ) |
Definition at line 1207 of file CaloTowersCreationAlgo.cc.
References pileupReCalc_HLTpaths::scale, and theHESEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHF1EScale | ( | double | scale | ) |
Definition at line 1222 of file CaloTowersCreationAlgo.cc.
References pileupReCalc_HLTpaths::scale, and theHF1EScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHF2EScale | ( | double | scale | ) |
Definition at line 1227 of file CaloTowersCreationAlgo.cc.
References pileupReCalc_HLTpaths::scale, and theHF2EScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
void CaloTowersCreationAlgo::setHOEScale | ( | double | scale | ) |
Definition at line 1217 of file CaloTowersCreationAlgo.cc.
References pileupReCalc_HLTpaths::scale, and theHOEScale.
Referenced by CaloTowersReCreator::produce(), and CaloTowersCreator::produce().
|
inline |
Definition at line 160 of file CaloTowersCreationAlgo.h.
References archive::flag, and theRecoveredEcalHitsAreUsed.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 159 of file CaloTowersCreationAlgo.h.
References archive::flag, and theRecoveredHcalHitsAreUsed.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 173 of file CaloTowersCreationAlgo.h.
References archive::flag, and useRejectedHitsOnly.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 181 of file CaloTowersCreationAlgo.h.
References archive::flag, and useRejectedRecoveredEcalHits.
Referenced by CaloTowersCreator::produce().
|
inline |
Definition at line 180 of file CaloTowersCreationAlgo.h.
References archive::flag, and useRejectedRecoveredHcalHits.
Referenced by CaloTowersCreator::produce().
|
private |
Definition at line 337 of file CaloTowersCreationAlgo.h.
Referenced by convert(), and makeEcalBadChs().
|
private |
Definition at line 334 of file CaloTowersCreationAlgo.h.
Referenced by convert(), and makeHcalDropChMap().
int CaloTowersCreationAlgo::nalgo =-1 |
Definition at line 51 of file CaloTowersCreationAlgo.h.
|
private |
Definition at line 265 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setEBEScale().
|
private |
Definition at line 253 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 347 of file CaloTowersCreationAlgo.h.
Referenced by setEbHandle().
|
private |
Definition at line 263 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 243 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 261 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 253 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 279 of file CaloTowersCreationAlgo.h.
Referenced by setEcalChStatusFromDB().
|
private |
Definition at line 293 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal(), ecalChanStatusForCaloTower(), makeEcalBadChs(), and setEcalSeveritiesToBeExcluded().
|
private |
Definition at line 302 of file CaloTowersCreationAlgo.h.
Referenced by ecalChanStatusForCaloTower(), and SetEcalSeveritiesToBeUsedInBadTowers().
|
private |
Definition at line 286 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal(), ecalChanStatusForCaloTower(), makeEcalBadChs(), and setEcalSevLvlAlgo().
|
private |
Definition at line 263 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 266 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setEEEScale().
|
private |
Definition at line 254 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 348 of file CaloTowersCreationAlgo.h.
Referenced by setEeHandle().
|
private |
Definition at line 263 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 243 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 261 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 254 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 274 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal(), emCrystalShwrPos(), hadShwPosFromCells(), and setGeometry().
|
private |
Definition at line 267 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHBEScale().
|
private |
Definition at line 255 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 250 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 262 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 255 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 292 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), and setHcalAcceptSeverityLevel().
|
private |
Definition at line 301 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), and setHcalAcceptSeverityLevelForRejectedHit().
|
private |
Definition at line 280 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), makeHcalDropChMap(), and setHcalChStatusFromDB().
|
private |
Definition at line 283 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), makeHcalDropChMap(), and setHcalSevLvlComputer().
|
private |
Definition at line 248 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 273 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setGeometry().
|
private |
Definition at line 269 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHEDEScale().
|
private |
Definition at line 257 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 250 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 262 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 257 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 268 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHESEScale().
|
private |
Definition at line 256 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 250 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 262 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 256 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 271 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHF1EScale().
|
private |
Definition at line 259 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 252 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 262 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and rescaleTowers().
|
private |
Definition at line 259 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 272 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHF2EScale().
|
private |
Definition at line 260 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 252 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 262 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and rescaleTowers().
|
private |
Definition at line 260 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 270 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight(), and setHOEScale().
|
private |
Definition at line 258 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
only affects energy and ET calculation. HO is still recorded in the tower
Definition at line 310 of file CaloTowersCreationAlgo.h.
Referenced by assignHitHcal(), convert(), and rescaleTowers().
|
private |
Definition at line 251 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 251 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 252 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 251 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 252 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 262 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 258 of file CaloTowersCreationAlgo.h.
Referenced by getThresholdAndWeight().
|
private |
Definition at line 314 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 317 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 318 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 315 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 316 of file CaloTowersCreationAlgo.h.
Referenced by convert().
|
private |
Definition at line 296 of file CaloTowersCreationAlgo.h.
Referenced by ecalChanStatusForCaloTower(), and setRecoveredEcalHitsAreUsed().
|
private |
Definition at line 295 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), and setRecoveredHcalHitsAreUsed().
|
private |
Definition at line 275 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal(), assignHitHcal(), makeEcalBadChs(), makeHcalDropChMap(), rescale(), and setGeometry().
|
private |
Definition at line 276 of file CaloTowersCreationAlgo.h.
Referenced by convert(), and setGeometry().
|
private |
Definition at line 328 of file CaloTowersCreationAlgo.h.
|
private |
Definition at line 329 of file CaloTowersCreationAlgo.h.
|
private |
Definition at line 244 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal().
|
private |
Definition at line 244 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal().
|
private |
Definition at line 245 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal().
|
private |
Definition at line 245 of file CaloTowersCreationAlgo.h.
Referenced by assignHitEcal().
|
private |
Definition at line 300 of file CaloTowersCreationAlgo.h.
Referenced by ecalChanStatusForCaloTower(), hcalChanStatusForCaloTower(), and setUseRejectedHitsOnly().
|
private |
Definition at line 306 of file CaloTowersCreationAlgo.h.
Referenced by ecalChanStatusForCaloTower(), and setUseRejectedRecoveredEcalHits().
|
private |
Definition at line 305 of file CaloTowersCreationAlgo.h.
Referenced by hcalChanStatusForCaloTower(), and setUseRejectedRecoveredHcalHits().