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

Member Typedef Documentation

◆ PFCBB

Definition at line 20 of file PFClusterBuilderBase.h.

◆ PosCalc

Definition at line 23 of file PFClusterBuilderBase.h.

Constructor & Destructor Documentation

◆ PFClusterBuilderBase() [1/2]

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

Definition at line 24 of file PFClusterBuilderBase.h.

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

25  : _nSeeds(0),
26  _nClustersFound(0),
27  _minFractionToKeep(conf.getParameter<double>("minFractionToKeep")),
28  _algoName(conf.getParameter<std::string>("algoName")) {
29  if (conf.exists("positionCalc")) {
30  const edm::ParameterSet& pcConf = conf.getParameterSet("positionCalc");
31  const std::string& algo = pcConf.getParameter<std::string>("algoName");
33  }
34  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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 
)
pure virtual

◆ operator<<()

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

Definition at line 46 of file PFClusterBuilderBase.h.

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

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

◆ operator=()

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

◆ reset()

void PFClusterBuilderBase::reset ( void  )
inline

Definition at line 53 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 61 of file PFClusterBuilderBase.h.

Referenced by operator<<().

◆ _minFractionToKeep

const float PFClusterBuilderBase::_minFractionToKeep
protected

◆ _nClustersFound

unsigned PFClusterBuilderBase::_nClustersFound
protected

Definition at line 56 of file PFClusterBuilderBase.h.

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

◆ _nSeeds

unsigned PFClusterBuilderBase::_nSeeds
protected

Definition at line 56 of file PFClusterBuilderBase.h.

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

◆ _positionCalc

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