1 #ifndef __InitialClusteringStepBase_H__
2 #define __InitialClusteringStepBase_H__
14 #include <unordered_map>
42 const std::vector<edm::ParameterSet>& thresholds =
44 for(
const auto&
pset : thresholds ) {
46 const double& thresh_E =
47 pset.getParameter<
double>(
"gatheringThreshold");
48 const double& thresh_pT =
49 pset.getParameter<
double>(
"gatheringThresholdPt");
50 const double thresh_pT2 = thresh_pT*thresh_pT;
54 <<
"Detector layer : " << det <<
" is not in the list of recognized"
55 <<
" detector layers!";
58 std::make_pair(thresh_E,thresh_pT2));
71 const std::vector<bool>& mask,
72 const std::vector<bool>& seeds,
76 o <<
"InitialClusteringStep with algo \"" <<
_algoName
77 <<
"\" located " <<
_nSeeds <<
" seeds and built "
86 const unsigned i )
const {
90 const std::unordered_map<std::string,int>
_layerMap;
91 std::unordered_map<int,std::pair<double,double> >
T getParameter(std::string const &) const
VParameterSet const & getParameterSetVector(std::string const &name) const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
const std::unordered_map< std::string, int > _layerMap
std::ostream & operator<<(std::ostream &o)
reco::PFRecHitRef makeRefhit(const edm::Handle< reco::PFRecHitCollection > &h, const unsigned i) const
InitialClusteringStepBase ICSB
edmplugin::PluginFactory< InitialClusteringStepBase *(const edm::ParameterSet &, edm::ConsumesCollector &) > InitialClusteringStepFactory
virtual void updateEvent(const edm::Event &)
_algoName(conf.getParameter< std::string >("algoName"))
const std::string _algoName
virtual void buildClusters(const edm::Handle< reco::PFRecHitCollection > &, const std::vector< bool > &mask, const std::vector< bool > &seeds, reco::PFClusterCollection &)=0
edm::Ref< PFRecHitCollection > PFRecHitRef
persistent reference to PFRecHit objects
virtual void update(const edm::EventSetup &)
ICSB & operator=(const ICSB &)=delete
InitialClusteringStepBase(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
virtual ~InitialClusteringStepBase()
std::unordered_map< int, std::pair< double, double > > _thresholds