CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Attributes | Private Types | Private Attributes
PFClusterBuilderBase Class Referenceabstract

#include <PFClusterBuilderBase.h>

Inheritance diagram for PFClusterBuilderBase:
Basic2DGenericPFlowClusterizer PFlow2DClusterizerWithTime PFMultiDepthClusterizer

Public Types

typedef PFCPositionCalculatorBase PosCalc
 

Public Member Functions

virtual void buildClusters (const reco::PFClusterCollection &topos, const std::vector< bool > &seedable, reco::PFClusterCollection &outclus)=0
 
std::ostream & operator<< (std::ostream &o) const
 
PFCBBoperator= (const PFCBB &)=delete
 
 PFClusterBuilderBase (const edm::ParameterSet &conf)
 
 PFClusterBuilderBase (const PFCBB &)=delete
 
void reset ()
 
virtual void update (const edm::EventSetup &)
 
virtual ~PFClusterBuilderBase ()=default
 

Protected Attributes

const float _minFractionToKeep
 
unsigned _nClustersFound
 
unsigned _nSeeds
 
std::unique_ptr< PosCalc_positionCalc
 

Private Types

typedef PFClusterBuilderBase PFCBB
 

Private Attributes

std::string _algoName
 

Detailed Description

Definition at line 18 of file PFClusterBuilderBase.h.

Member Typedef Documentation

◆ PFCBB

Definition at line 19 of file PFClusterBuilderBase.h.

◆ PosCalc

Definition at line 22 of file PFClusterBuilderBase.h.

Constructor & Destructor Documentation

◆ PFClusterBuilderBase() [1/2]

PFClusterBuilderBase::PFClusterBuilderBase ( const edm::ParameterSet conf)
inline

Definition at line 23 of file PFClusterBuilderBase.h.

24  : _nSeeds(0),
25  _nClustersFound(0),
26  _minFractionToKeep(conf.getParameter<double>("minFractionToKeep")),
27  _algoName(conf.getParameter<std::string>("algoName")) {
28  if (conf.exists("positionCalc")) {
29  const edm::ParameterSet& pcConf = conf.getParameterSet("positionCalc");
30  const std::string& algo = pcConf.getParameter<std::string>("algoName");
32  }
33  }

References _positionCalc, edm::ParameterSet::exists(), get, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~PFClusterBuilderBase()

virtual PFClusterBuilderBase::~PFClusterBuilderBase ( )
virtualdefault

◆ PFClusterBuilderBase() [2/2]

PFClusterBuilderBase::PFClusterBuilderBase ( const PFCBB )
delete

Member Function Documentation

◆ buildClusters()

virtual void PFClusterBuilderBase::buildClusters ( const reco::PFClusterCollection topos,
const std::vector< bool > &  seedable,
reco::PFClusterCollection outclus 
)
pure virtual

◆ operator<<()

std::ostream& PFClusterBuilderBase::operator<< ( std::ostream &  o) const
inline

Definition at line 45 of file PFClusterBuilderBase.h.

45  {
46  o << "PFClusterBuilder with algo \"" << _algoName << "\" located " << _nSeeds << " seeds and built "
47  << _nClustersFound << " PFClusters from those seeds"
48  << " using position calculation: " << _positionCalc->name() << "." << std::endl;
49  return o;
50  }

References _algoName, _nClustersFound, _nSeeds, _positionCalc, and EcalTangentSkim_cfg::o.

◆ operator=()

PFCBB& PFClusterBuilderBase::operator= ( const PFCBB )
delete

◆ reset()

void PFClusterBuilderBase::reset ( void  )
inline

Definition at line 52 of file PFClusterBuilderBase.h.

52 { _nSeeds = _nClustersFound = 0; }

References _nClustersFound, and _nSeeds.

◆ update()

virtual void PFClusterBuilderBase::update ( const edm::EventSetup )
inlinevirtual

Member Data Documentation

◆ _algoName

std::string PFClusterBuilderBase::_algoName
private

Definition at line 60 of file PFClusterBuilderBase.h.

Referenced by operator<<().

◆ _minFractionToKeep

const float PFClusterBuilderBase::_minFractionToKeep
protected

◆ _nClustersFound

unsigned PFClusterBuilderBase::_nClustersFound
protected

Definition at line 55 of file PFClusterBuilderBase.h.

Referenced by operator<<(), and reset().

◆ _nSeeds

unsigned PFClusterBuilderBase::_nSeeds
protected

Definition at line 55 of file PFClusterBuilderBase.h.

Referenced by operator<<(), and reset().

◆ _positionCalc

std::unique_ptr<PosCalc> PFClusterBuilderBase::_positionCalc
protected
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
cmsdt::algo
algo
Definition: constants.h:164
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet::exists
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: ParameterSet.cc:681
edm::ParameterSet
Definition: ParameterSet.h:47
PFClusterBuilderBase::_nSeeds
unsigned _nSeeds
Definition: PFClusterBuilderBase.h:55
get
#define get
PFClusterBuilderBase::_nClustersFound
unsigned _nClustersFound
Definition: PFClusterBuilderBase.h:55
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
PFClusterBuilderBase::_positionCalc
std::unique_ptr< PosCalc > _positionCalc
Definition: PFClusterBuilderBase.h:57
PFClusterBuilderBase::_algoName
std::string _algoName
Definition: PFClusterBuilderBase.h:60
PFClusterBuilderBase::_minFractionToKeep
const float _minFractionToKeep
Definition: PFClusterBuilderBase.h:56
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2128