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, const HcalPFCuts *)=0
 
std::ostream & operator<< (std::ostream &o) const
 
PFCBBoperator= (const PFCBB &)=delete
 
 PFClusterBuilderBase (const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
 
 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 21 of file PFClusterBuilderBase.h.

Member Typedef Documentation

◆ PFCBB

Definition at line 22 of file PFClusterBuilderBase.h.

◆ PosCalc

Definition at line 25 of file PFClusterBuilderBase.h.

Constructor & Destructor Documentation

◆ PFClusterBuilderBase() [1/2]

PFClusterBuilderBase::PFClusterBuilderBase ( const edm::ParameterSet conf,
edm::ConsumesCollector cc 
)
inline

Definition at line 26 of file PFClusterBuilderBase.h.

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

27  : _nSeeds(0),
28  _nClustersFound(0),
29  _minFractionToKeep(conf.getParameter<double>("minFractionToKeep")),
30  _algoName(conf.getParameter<std::string>("algoName")) {
31  if (conf.exists("positionCalc")) {
32  const edm::ParameterSet& pcConf = conf.getParameterSet("positionCalc");
33  const std::string& algo = pcConf.getParameter<std::string>("algoName");
35  }
36  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
std::unique_ptr< PosCalc > _positionCalc
bool exists(std::string const &parameterName) const
checks if a parameter exists
ParameterSet const & getParameterSet(std::string const &) const
#define get

◆ ~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,
const HcalPFCuts  
)
pure virtual

◆ operator<<()

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

Definition at line 49 of file PFClusterBuilderBase.h.

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

49  {
50  o << "PFClusterBuilder with algo \"" << _algoName << "\" located " << _nSeeds << " seeds and built "
51  << _nClustersFound << " PFClusters from those seeds"
52  << " using position calculation: " << _positionCalc->name() << "." << std::endl;
53  return o;
54  }
std::unique_ptr< PosCalc > _positionCalc

◆ operator=()

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

◆ reset()

void PFClusterBuilderBase::reset ( void  )
inline

Definition at line 56 of file PFClusterBuilderBase.h.

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 64 of file PFClusterBuilderBase.h.

Referenced by operator<<().

◆ _minFractionToKeep

const float PFClusterBuilderBase::_minFractionToKeep
protected

◆ _nClustersFound

unsigned PFClusterBuilderBase::_nClustersFound
protected

Definition at line 59 of file PFClusterBuilderBase.h.

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

◆ _nSeeds

unsigned PFClusterBuilderBase::_nSeeds
protected

Definition at line 59 of file PFClusterBuilderBase.h.

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

◆ _positionCalc

std::unique_ptr<PosCalc> PFClusterBuilderBase::_positionCalc
protected