Producer for particle flow rechits (PFRecHit) in HCAL. More...
#include <PFRecHitProducerHCAL.h>
Public Member Functions | |
PFRecHitProducerHCAL (const edm::ParameterSet &) | |
~PFRecHitProducerHCAL () | |
Public Member Functions inherited from PFRecHitProducer | |
virtual void | beginRun (edm::Run &run, const edm::EventSetup &es) |
virtual void | endRun () |
PFRecHitProducer (const edm::ParameterSet &) | |
void | produce (edm::Event &iEvent, const edm::EventSetup &iSetup) |
~PFRecHitProducer () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
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) |
Private Attributes | |
bool | applyLongShortDPG_ |
bool | applyPulseDPG_ |
bool | applyTimeDPG_ |
bool | ECAL_Compensate_ |
double | ECAL_Compensation_ |
unsigned int | ECAL_Dead_Code_ |
double | ECAL_Threshold_ |
double | EM_Depth_ |
double | HAD_Depth_ |
bool | HCAL_Calib_ |
float | HCAL_Calib_29 |
int | hcalHFDigiTimeFlagValue_ |
int | hcalHFInTimeWindowFlagValue_ |
int | hcalHFLongShortFlagValue_ |
int | HcalMaxAllowedChannelStatusSev_ |
int | HcalMaxAllowedHFDigiTimeSev_ |
int | HcalMaxAllowedHFInTimeWindowSev_ |
int | HcalMaxAllowedHFLongShortSev_ |
bool | HF_Calib_ |
float | HF_Calib_29 |
edm::InputTag | inputTagCaloTowers_ |
edm::InputTag | inputTagHcalRecHitsHBHE_ |
edm::InputTag | inputTagHcalRecHitsHF_ |
double | longFibre_Cut |
double | longFibre_Fraction |
double | longShortFibre_Cut |
double | maxLongTiming_Cut |
double | maxShortTiming_Cut |
double | minLongTiming_Cut |
double | minShortTiming_Cut |
bool | navigation_HF_ |
double | shortFibre_Cut |
double | shortFibre_Fraction |
double | thresh_HF_ |
threshold for HF More... | |
double | weight_HFem_ |
double | weight_HFhad_ |
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 | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
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 33 of file PFRecHitProducerHCAL.h.
|
explicit |
Definition at line 42 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 122 of file PFRecHitProducerHCAL.cc.
|
private |
Definition at line 1061 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 126 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 1117 of file PFRecHitProducerHCAL.cc.
References reco::PFRecHit::add4Neighbour(), reco::PFRecHit::add8Neighbour(), cond::rpcobgas::detid, reco::PFRecHit::detId(), east, CaloNavigator< T >::east(), PFLayer::ECAL_BARREL, PFLayer::ECAL_ENDCAP, geometry, PFLayer::HCAL_BARREL1, PFLayer::HCAL_ENDCAP, PFLayer::HF_EM, PFLayer::HF_HAD, CaloNavigator< T >::home(), i, reco::PFRecHit::layer(), north, CaloNavigator< T >::north(), PFLayer::PS1, PFLayer::PS2, DetId::rawId(), south, CaloNavigator< T >::south(), west, and CaloNavigator< T >::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 1237 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 1440 of file PFRecHitProducerHCAL.cc.
References north, and CaloSubdetectorTopology::north().
|
private |
Definition at line 1426 of file PFRecHitProducerHCAL.cc.
References south, and CaloSubdetectorTopology::south().
|
private |
Definition at line 110 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 119 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 131 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 134 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 137 of file PFRecHitProducerHCAL.h.
Referenced by createHcalRecHit(), and PFRecHitProducerHCAL().
|
private |
Definition at line 138 of file PFRecHitProducerHCAL.h.
Referenced by createHcalRecHit(), and PFRecHitProducerHCAL().
|
private |
Definition at line 96 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 127 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 126 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 123 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 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 86 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 84 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 106 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 103 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 113 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 116 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 91 of file PFRecHitProducerHCAL.h.
Referenced by PFRecHitProducerHCAL().
|
private |
Definition at line 102 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 107 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
threshold for HF
Definition at line 89 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 92 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().
|
private |
Definition at line 93 of file PFRecHitProducerHCAL.h.
Referenced by createRecHits(), and PFRecHitProducerHCAL().