Public Member Functions | |
HGCalLayerClusterProducer (const edm::ParameterSet &) | |
Constructor with parameter settings - which can be changed in hgcalLayerCluster_cff.py. Constructor will set all variables by input param ps. algoID variables will be set accordingly to the detector type. More... | |
void | produce (edm::Event &, const edm::EventSetup &) override |
Method run the algoritm to get clusters. More... | |
~HGCalLayerClusterProducer () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Method fill description which will be used in pyhton file. More... | |
Private Member Functions | |
math::XYZPoint | calculatePosition (std::unordered_map< uint32_t, const HGCRecHit *> &hitmap, const std::vector< std::pair< DetId, float >> &hitsAndFractions) |
Counts position for all points in the cluster. More... | |
std::pair< float, float > | calculateTime (std::unordered_map< uint32_t, const HGCRecHit *> &hitmap, const std::vector< std::pair< DetId, float >> &hitsAndFractions, size_t sizeCluster) |
Counts time for all points in the cluster. More... | |
void | setAlgoId () |
Sets algoId accordingly to the detector type. More... | |
Private Attributes | |
std::unique_ptr< HGCalClusteringAlgoBase > | algo_ |
reco::CaloCluster::AlgoId | algoId_ |
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | caloGeomToken_ |
std::string | detector_ |
edm::EDGetTokenT< HGCRecHitCollection > | hits_token_ |
unsigned int | hitsTime_ |
double | positionDeltaRho2_ |
hgcal::RecHitTools | rhtools_ |
std::vector< double > | thresholdW0_ |
std::string | timeClname_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Definition at line 35 of file HGCalLayerClusterProducer.cc.
HGCalLayerClusterProducer::HGCalLayerClusterProducer | ( | const edm::ParameterSet & | ps | ) |
Constructor with parameter settings - which can be changed in hgcalLayerCluster_cff.py. Constructor will set all variables by input param ps. algoID variables will be set accordingly to the detector type.
[in] | ps | parametr set to set variables |
Definition at line 105 of file HGCalLayerClusterProducer.cc.
References algo_, algoId_, detector_, get, edm::ParameterSet::getParameter(), hits_token_, positionDeltaRho2_, setAlgoId(), AlCaHLTBitMon_QueryRunRegistry::string, thresholdW0_, and timeClname_.
|
inlineoverride |
Definition at line 45 of file HGCalLayerClusterProducer.cc.
|
private |
Counts position for all points in the cluster.
[in] | hitmap | hitmap to find correct RecHit |
[in] | hitsAndFraction | all hits in the cluster |
Definition at line 145 of file HGCalLayerClusterProducer.cc.
References d1, CaloRecHit::detid(), CaloRecHit::energy(), f, hgcal::RecHitTools::getPosition(), hgcal::RecHitTools::getSiThickIndex(), dqm-mbProfile::log, SiStripPI::max, position, positionDeltaRho2_, rhtools_, thresholdW0_, x, and y.
Referenced by produce().
|
private |
Counts time for all points in the cluster.
[in] | hitmap | hitmap to find correct RecHit only for silicon (not for BH-HSci) |
[in] | hitsAndFraction | all hits in the cluster |
Definition at line 199 of file HGCalLayerClusterProducer.cc.
References hgcalsimclustertime::ComputeClusterTime::fixSizeHighestDensity(), hitsTime_, CaloRecHit::time(), and HGCRecHit::timeError().
Referenced by produce().
|
static |
Method fill description which will be used in pyhton file.
[out] | description | to be fill |
Definition at line 131 of file HGCalLayerClusterProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addNode(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Method run the algoritm to get clusters.
[in,out] | evt | from get info and put result |
[in] | es | to get event setup info |
Definition at line 225 of file HGCalLayerClusterProducer.cc.
References algo_, calculatePosition(), calculateTime(), caloGeomToken_, bsc_activity_cfg::clusters, detector_, trigObjTnPSource_cfi::filler, relativeConstraints::geom, edm::Event::getByToken(), edm::EventSetup::getHandle(), hfClusterShapes_cfi::hits, hits_token_, reco::CaloCluster::hitsAndFractions(), mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, eostools::move(), edm::Event::put(), rhtools_, hgcal::RecHitTools::setGeometry(), reco::CaloCluster::setPosition(), reco::CaloCluster::size(), and timeClname_.
|
private |
Sets algoId accordingly to the detector type.
Definition at line 278 of file HGCalLayerClusterProducer.cc.
References algoId_, detector_, reco::CaloCluster::hfnose, reco::CaloCluster::hgcal_em, and reco::CaloCluster::hgcal_had.
Referenced by HGCalLayerClusterProducer().
|
private |
Definition at line 66 of file HGCalLayerClusterProducer.cc.
Referenced by HGCalLayerClusterProducer(), and produce().
|
private |
Definition at line 64 of file HGCalLayerClusterProducer.cc.
Referenced by HGCalLayerClusterProducer(), and setAlgoId().
|
private |
Definition at line 76 of file HGCalLayerClusterProducer.cc.
Referenced by produce().
|
private |
Definition at line 67 of file HGCalLayerClusterProducer.cc.
Referenced by HGCalLayerClusterProducer(), produce(), and setAlgoId().
|
private |
Definition at line 62 of file HGCalLayerClusterProducer.cc.
Referenced by HGCalLayerClusterProducer(), and produce().
|
private |
Definition at line 70 of file HGCalLayerClusterProducer.cc.
Referenced by calculateTime().
|
private |
Definition at line 74 of file HGCalLayerClusterProducer.cc.
Referenced by calculatePosition(), and HGCalLayerClusterProducer().
|
private |
Definition at line 75 of file HGCalLayerClusterProducer.cc.
Referenced by calculatePosition(), and produce().
|
private |
Definition at line 73 of file HGCalLayerClusterProducer.cc.
Referenced by calculatePosition(), and HGCalLayerClusterProducer().
|
private |
Definition at line 69 of file HGCalLayerClusterProducer.cc.
Referenced by HGCalLayerClusterProducer(), and produce().