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(), NULL, and AlCaHLTBitMon_QueryRunRegistry::string.

22  :
23  _nSeeds(0), _nClustersFound(0),
24  _minFractionToKeep(conf.getParameter<double>("minFractionToKeep")),
25  _algoName(conf.getParameter<std::string>("algoName")) {
26  _positionCalc.reset(NULL);
27  if( conf.exists("positionCalc") ) {
28  const edm::ParameterSet& pcConf = conf.getParameterSet("positionCalc");
29  const std::string& algo = pcConf.getParameter<std::string>("algoName");
30  PosCalc* calcp = PFCPositionCalculatorFactory::get()->create(algo,
31  pcConf);
32  _positionCalc.reset(calcp);
33  }
34  }
T getParameter(std::string const &) const
std::unique_ptr< PosCalc > _positionCalc
bool exists(std::string const &parameterName) const
checks if a parameter exists
#define NULL
Definition: scimark2.h:8
ParameterSet const & getParameterSet(std::string const &) const
T get(const Candidate &c)
Definition: component.h:55
PFCPositionCalculatorBase PosCalc
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 46 of file PFClusterBuilderBase.h.

References connectstrParser::o.

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

Definition at line 55 of file PFClusterBuilderBase.h.

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

Reimplemented in PFlow2DClusterizerWithTime, Basic2DGenericPFlowClusterizer, and PFMultiDepthClusterizer.

Definition at line 40 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().

40 { }

Member Data Documentation

std::string PFClusterBuilderBase::_algoName
private

Definition at line 63 of file PFClusterBuilderBase.h.

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

Definition at line 58 of file PFClusterBuilderBase.h.

unsigned PFClusterBuilderBase::_nSeeds
protected

Definition at line 58 of file PFClusterBuilderBase.h.

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