1 #ifndef __PFClusterBuilderBase_H__ 2 #define __PFClusterBuilderBase_H__ 23 _nSeeds(0), _nClustersFound(0),
24 _minFractionToKeep(conf.getParameter<double>(
"minFractionToKeep")),
25 _algoName(conf.getParameter<
std::
string>(
"algoName")) {
26 _positionCalc.reset(
nullptr);
27 if( conf.
exists(
"positionCalc") ) {
32 _positionCalc.reset(calcp);
38 PFCBB& operator=(
const PFCBB&) =
delete;
43 const std::vector<bool>& seedable,
47 o <<
"PFClusterBuilder with algo \"" << _algoName
48 <<
"\" located " << _nSeeds <<
" seeds and built " 49 << _nClustersFound <<
" PFClusters from those seeds" 50 <<
" using position calculation: " << _positionCalc->name()
55 void reset() { _nSeeds = _nClustersFound = 0; }
T getParameter(std::string const &) const
std::ostream & operator<<(std::ostream &o) const
std::unique_ptr< PosCalc > _positionCalc
bool exists(std::string const ¶meterName) const
checks if a parameter exists
PFClusterBuilderBase PFCBB
edmplugin::PluginFactory< PFClusterBuilderBase *(const edm::ParameterSet &) > PFClusterBuilderFactory
ParameterSet const & getParameterSet(std::string const &) const
virtual void update(const edm::EventSetup &)
const float _minFractionToKeep
PFClusterBuilderBase(const edm::ParameterSet &conf)
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
T get(const Candidate &c)
PFCPositionCalculatorBase PosCalc