1 #ifndef __InitialClusteringStepBase_H__
2 #define __InitialClusteringStepBase_H__
14 #include <unordered_map>
37 const std::vector<edm::ParameterSet>&
thresholds =
39 for(
const auto& pset : thresholds ) {
41 const double& thresh_E =
42 pset.getParameter<
double>(
"gatheringThreshold");
43 const double& thresh_pT =
44 pset.getParameter<
double>(
"gatheringThresholdPt");
45 const double thresh_pT2 = thresh_pT*thresh_pT;
49 <<
"Detector layer : " << det <<
" is not in the list of recognized"
50 <<
" detector layers!";
53 std::make_pair(thresh_E,thresh_pT2));
64 const std::vector<bool>& mask,
65 const std::vector<bool>& seeds,
69 o <<
"InitialClusteringStep with algo \"" <<
_algoName
70 <<
"\" located " <<
_nSeeds <<
" seeds and built "
79 const unsigned i )
const {
83 const std::unordered_map<std::string,int>
_layerMap;
84 std::unordered_map<int,std::pair<double,double> >
T getParameter(std::string const &) const
VParameterSet const & getParameterSetVector(std::string const &name) const
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
_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
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
edm::Ref< PFRecHitCollection > PFRecHitRef
persistent reference to PFRecHit objects
virtual void update(const edm::EventSetup &)
InitialClusteringStepBase(const edm::ParameterSet &conf)
ICSB & operator=(const ICSB &)=delete
edmplugin::PluginFactory< InitialClusteringStepBase *(const edm::ParameterSet &) > InitialClusteringStepFactory
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
virtual ~InitialClusteringStepBase()
std::unordered_map< int, std::pair< double, double > > _thresholds