Producer for particle flow rechits (PFRecHit) in HCAL. More...
#include <PFRecHitProducerHCAL.h>
Private Member Functions | |
reco::PFRecHit * | createHcalRecHit (const DetId &detid, double energy, PFLayer::Layer layer, const CaloSubdetectorGeometry *geom, unsigned newDetId=0) |
void | createRecHits (std::vector< reco::PFRecHit > &rechits, std::vector< reco::PFRecHit > &rechitsCleaned, edm::Event &, const edm::EventSetup &) |
void | findRecHitNeighbours (reco::PFRecHit &rh, const std::map< unsigned, unsigned > &sortedHits, const CaloSubdetectorTopology &barrelTopo, const CaloSubdetectorGeometry &barrelGeom, const CaloSubdetectorTopology &endcapTopo, const CaloSubdetectorGeometry &endcapGeom) |
void | findRecHitNeighboursCT (reco::PFRecHit &rh, const std::map< unsigned, unsigned > &sortedHits, const CaloSubdetectorTopology &topology) |
DetId | getNorth (const DetId &id, const CaloSubdetectorTopology &topology) |
DetId | getSouth (const DetId &id, const CaloSubdetectorTopology &topology) |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Types inherited from PFRecHitProducer | |
typedef std::map< unsigned, unsigned >::const_iterator | IDH |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Protected Attributes inherited from PFRecHitProducer | |
const HcalPFCorrs * | myPFCorr |
const EcalChannelStatus * | theEcalChStatus |
const HcalChannelQuality * | theHcalChStatus |
const CaloTowerConstituentsMap * | theTowerConstituentsMap |
double | thresh_Barrel_ |
rechits with E < threshold will not give rise to a PFRecHit More... | |
double | thresh_Endcap_ |
bool | verbose_ |
verbose ? More... | |
Producer for particle flow rechits (PFRecHit) in HCAL.
Definition at line 34 of file PFRecHitProducerHCAL.h.
|
explicit |
Definition at line 41 of file PFRecHitProducerHCAL.cc.
References applyLongShortDPG_, applyPulseDPG_, applyTimeDPG_, ECAL_Compensate_, ECAL_Compensation_, ECAL_Dead_Code_, ECAL_Threshold_, EM_Depth_, edm::ParameterSet::getParameter(), HAD_Depth_, HCAL_Calib_, HCAL_Calib_29, hcalHFDigiTimeFlagValue_, hcalHFInTimeWindowFlagValue_, hcalHFLongShortFlagValue_, HcalMaxAllowedChannelStatusSev_, HcalMaxAllowedHFDigiTimeSev_, HcalMaxAllowedHFInTimeWindowSev_, HcalMaxAllowedHFLongShortSev_, HF_Calib_, HF_Calib_29, HcalCaloFlagLabels::HFDigiTime, HcalCaloFlagLabels::HFInTimeWindow, HcalCaloFlagLabels::HFLongShort, inputTagCaloTowers_, inputTagHcalRecHitsHBHE_, inputTagHcalRecHitsHF_, longFibre_Cut, longFibre_Fraction, longShortFibre_Cut, maxLongTiming_Cut, maxShortTiming_Cut, minLongTiming_Cut, minShortTiming_Cut, navigation_HF_, shortFibre_Cut, shortFibre_Fraction, thresh_HF_, weight_HFem_, and weight_HFhad_.
PFRecHitProducerHCAL::~PFRecHitProducerHCAL | ( | ) |
Definition at line 117 of file PFRecHitProducerHCAL.cc.
|
private |
Definition at line 1057 of file PFRecHitProducerHCAL.cc.
References cond::rpcobgas::detid, EM_Depth_, CaloCellGeometry::getCorners(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), HAD_Depth_, PFLayer::HF_EM, PFLayer::HF_HAD, position, DetId::rawId(), reco::PFRecHit::setNECorner(), reco::PFRecHit::setNWCorner(), reco::PFRecHit::setSECorner(), reco::PFRecHit::setSWCorner(), x, PV3DBase< T, PVType, FrameType >::x(), detailsBasic3DVector::y, PV3DBase< T, PVType, FrameType >::y(), detailsBasic3DVector::z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by createRecHits().
|
privatevirtual |
gets hcal barrel and endcap rechits, translate them to PFRecHits, which are stored in the rechits vector
if ( !theStatusValue )
if ( !theStatusValue )
if ( !theStatusValue )
if ( !theStatusValue )
Implements PFRecHitProducer.
Definition at line 121 of file PFRecHitProducerHCAL.cc.
References abs, applyLongShortDPG_, applyPulseDPG_, applyTimeDPG_, HiRecoJets_cff::caloTowers, CaloTower::constituents(), CaloTowerConstituentsMap::constituentsOf(), CaloTower::constituentsSize(), createHcalRecHit(), CaloRecHit::detid(), cond::rpcobgas::detid, alignCSCRings::e, DetId::Ecal, ECAL_Compensate_, ECAL_Compensation_, ECAL_Dead_Code_, ECAL_Threshold_, CaloTower::emEnergy(), EcalCondObjectContainer< T >::end(), CaloRecHit::energy(), relval_parameters_module::energy, edm::hlt::Exception, EcalCondObjectContainer< T >::find(), findRecHitNeighbours(), findRecHitNeighboursCT(), newFWLiteAna::found, edm::EventSetup::get(), edm::Event::getByLabel(), HcalSeverityLevelComputer::getSeverityLevel(), HcalChannelStatus::getValue(), HcalCondObjectContainer< Item >::getValues(), CaloTower::hadEnergy(), patZpeak::handle, DetId::Hcal, PFLayer::HCAL_BARREL1, HCAL_Calib_, HCAL_Calib_29, PFLayer::HCAL_ENDCAP, HcalBarrel, HcalEndcap, HcalForward, hcalHFDigiTimeFlagValue_, hcalHFInTimeWindowFlagValue_, hcalHFLongShortFlagValue_, HcalMaxAllowedChannelStatusSev_, HcalMaxAllowedHFDigiTimeSev_, HcalMaxAllowedHFInTimeWindowSev_, HcalMaxAllowedHFLongShortSev_, HcalOuter, HF_Calib_, HF_Calib_29, PFLayer::HF_EM, PFLayer::HF_HAD, i, CaloTower::id(), HcalDetId::ieta(), inputTagCaloTowers_, inputTagHcalRecHitsHBHE_, inputTagHcalRecHitsHF_, HcalDetId::iphi(), edm::HandleBase::isValid(), j, longFibre_Cut, longFibre_Fraction, longShortFibre_Cut, max(), maxLongTiming_Cut, maxShortTiming_Cut, minLongTiming_Cut, minShortTiming_Cut, edm::ESHandle< class >::product(), edm::Event::put(), DetId::rawId(), reco::PFRecHit::setEnergyUp(), reco::PFRecHit::setRescale(), shortFibre_Cut, shortFibre_Fraction, HcalDetId::subdet(), PFRecHitProducer::theEcalChStatus, PFRecHitProducer::theHcalChStatus, PFRecHitProducer::theTowerConstituentsMap, PFRecHitProducer::thresh_Barrel_, PFRecHitProducer::thresh_Endcap_, thresh_HF_, weight_HFem_, and weight_HFhad_.
|
private |
find and set the neighbours to a given rechit this works for ecal, hcal, ps
Definition at line 1113 of file PFRecHitProducerHCAL.cc.
References reco::PFRecHit::add4Neighbour(), reco::PFRecHit::add8Neighbour(), cond::rpcobgas::detid, reco::PFRecHit::detId(), east, PFLayer::ECAL_BARREL, PFLayer::ECAL_ENDCAP, geometry, PFLayer::HCAL_BARREL1, PFLayer::HCAL_ENDCAP, PFLayer::HF_EM, PFLayer::HF_HAD, i, reco::PFRecHit::layer(), north, PFLayer::PS1, PFLayer::PS2, DetId::rawId(), south, and west.
Referenced by createRecHits().
|
private |
find and set the neighbours to a given rechit this works for hcal CaloTowers. Should be possible to have a single function for all detectors
Definition at line 1233 of file PFRecHitProducerHCAL.cc.
References reco::PFRecHit::add4Neighbour(), reco::PFRecHit::add8Neighbour(), reco::PFRecHit::detId(), east, CaloSubdetectorTopology::east(), PFLayer::HF_EM, PFLayer::HF_HAD, i, reco::PFRecHit::layer(), north, CaloSubdetectorTopology::north(), DetId::rawId(), south, CaloSubdetectorTopology::south(), west, and CaloSubdetectorTopology::west().
Referenced by createRecHits().
|
private |
Definition at line 1436 of file PFRecHitProducerHCAL.cc.
References north, and CaloSubdetectorTopology::north().
|
private |
Definition at line 1422 of file PFRecHitProducerHCAL.cc.
References south, and CaloSubdetectorTopology::south().
|
private |
Definition at line 111 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 121 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 120 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 132 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 134 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 135 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 133 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 138 of file PFRecHitProducerHCAL.h.
Referenced by createHcalRecHit(), and PFRecHitProducerHCAL().
|
private |
Definition at line 139 of file PFRecHitProducerHCAL.h.
Referenced by createHcalRecHit(), and PFRecHitProducerHCAL().
|
private |
Definition at line 97 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 99 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 128 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 129 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 127 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 125 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 123 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 124 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 122 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 98 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 100 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 87 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 85 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 86 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 107 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 104 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 114 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 142 of file PFRecHitProducerHCAL.h.
|
private |
Definition at line 143 of file PFRecHitProducerHCAL.h.
|
private |
Definition at line 141 of file PFRecHitProducerHCAL.h.
|
private |
Definition at line 118 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 116 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 117 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 115 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 92 of file PFRecHitProducerHCAL.h.
Referenced by PFRecHitProducerHCAL().
|
private |
Definition at line 103 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 108 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
threshold for HF
Definition at line 90 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 93 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 94 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().