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

Definition at line 19 of file PFClusterBuilderBase.h.

Definition at line 21 of file PFClusterBuilderBase.h.

Constructor & Destructor Documentation

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

Definition at line 22 of file PFClusterBuilderBase.h.

References patPFMETCorrections_cff::algo, edm::ParameterSet::exists(), reco::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), and AlCaHLTBitMon_QueryRunRegistry::string.

22  :
23  _nSeeds(0), _nClustersFound(0),
24  _minFractionToKeep(conf.getParameter<double>("minFractionToKeep")),
25  _algoName(conf.getParameter<std::string>("algoName")) {
26  if( conf.exists("positionCalc") ) {
27  const edm::ParameterSet& pcConf = conf.getParameterSet("positionCalc");
28  const std::string& algo = pcConf.getParameter<std::string>("algoName");
29  _positionCalc = std::unique_ptr<PosCalc>{PFCPositionCalculatorFactory::get()->create(algo,
30  pcConf)};
31  }
32  }
T getParameter(std::string const &) const
std::unique_ptr< PosCalc > _positionCalc
bool exists(std::string const &parameterName) const
checks if a parameter exists
ParameterSet const & getParameterSet(std::string const &) const
T get(const Candidate &c)
Definition: component.h:55
virtual PFClusterBuilderBase::~PFClusterBuilderBase ( )
virtualdefault
PFClusterBuilderBase::PFClusterBuilderBase ( const PFCBB )
delete

Member Function Documentation

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

Definition at line 44 of file PFClusterBuilderBase.h.

References connectstrParser::o.

44  {
45  o << "PFClusterBuilder with algo \"" << _algoName
46  << "\" located " << _nSeeds << " seeds and built "
47  << _nClustersFound << " PFClusters from those seeds"
48  << " using position calculation: " << _positionCalc->name()
49  << "." << std::endl;
50  return o;
51  }
std::unique_ptr< PosCalc > _positionCalc
PFCBB& PFClusterBuilderBase::operator= ( const PFCBB )
delete
void PFClusterBuilderBase::reset ( void  )
inline

Definition at line 53 of file PFClusterBuilderBase.h.

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

Reimplemented in PFlow2DClusterizerWithTime, Basic2DGenericPFlowClusterizer, and PFMultiDepthClusterizer.

Definition at line 38 of file PFClusterBuilderBase.h.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

38 { }

Member Data Documentation

std::string PFClusterBuilderBase::_algoName
private

Definition at line 61 of file PFClusterBuilderBase.h.

const float PFClusterBuilderBase::_minFractionToKeep
protected
unsigned PFClusterBuilderBase::_nClustersFound
protected

Definition at line 56 of file PFClusterBuilderBase.h.

unsigned PFClusterBuilderBase::_nSeeds
protected

Definition at line 56 of file PFClusterBuilderBase.h.

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