CMS 3D CMS Logo

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

#include <HGCalClusteringAlgoBase.h>

Inheritance diagram for HGCalClusteringAlgoBase:
HGCalCLUEAlgoT< TILE, STRATEGY > HGCalImagingAlgo

Public Types

enum  VerbosityLevel { pDEBUG = 0, pWARNING = 1, pINFO = 2, pERROR = 3 }
 

Public Member Functions

virtual std::vector< reco::BasicClustergetClusters (bool)=0
 
virtual hgcal_clustering::Density getDensity ()
 
void getEventSetup (const edm::EventSetup &es, hgcal::RecHitTools rhtools)
 
virtual void getEventSetupPerAlgorithm (const edm::EventSetup &es)
 
 HGCalClusteringAlgoBase (VerbosityLevel v, reco::CaloCluster::AlgoId algo)
 
virtual void makeClusters ()=0
 
virtual void populate (const HGCRecHitCollection &hits)=0
 
virtual void reset ()=0
 
void setAlgoId (reco::CaloCluster::AlgoId algo, bool isNose=false)
 
void setVerbosity (VerbosityLevel the_verbosity)
 
virtual ~HGCalClusteringAlgoBase ()
 

Public Attributes

unsigned int firstLayerBH_
 
bool isNose_
 
unsigned int lastLayerEE_
 
unsigned int lastLayerFH_
 
unsigned int maxlayer_
 
int scintMaxIphi_
 

Protected Attributes

reco::CaloCluster::AlgoId algoId_
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordcaloGeomToken_
 
std::vector< reco::BasicClusterclusters_v_
 
hgcal::RecHitTools rhtools_
 
VerbosityLevel verbosity_
 

Detailed Description

Definition at line 48 of file HGCalClusteringAlgoBase.h.

Member Enumeration Documentation

◆ VerbosityLevel

Constructor & Destructor Documentation

◆ HGCalClusteringAlgoBase()

HGCalClusteringAlgoBase::HGCalClusteringAlgoBase ( VerbosityLevel  v,
reco::CaloCluster::AlgoId  algo 
)
inline

Definition at line 52 of file HGCalClusteringAlgoBase.h.

◆ ~HGCalClusteringAlgoBase()

virtual HGCalClusteringAlgoBase::~HGCalClusteringAlgoBase ( )
inlinevirtual

Definition at line 53 of file HGCalClusteringAlgoBase.h.

53 {}

Member Function Documentation

◆ getClusters()

virtual std::vector<reco::BasicCluster> HGCalClusteringAlgoBase::getClusters ( bool  )
pure virtual

◆ getDensity()

virtual hgcal_clustering::Density HGCalClusteringAlgoBase::getDensity ( )
inlinevirtual

Reimplemented in HGCalImagingAlgo.

Definition at line 59 of file HGCalClusteringAlgoBase.h.

59 { return {}; }; //implementation is in some child class

◆ getEventSetup()

void HGCalClusteringAlgoBase::getEventSetup ( const edm::EventSetup es,
hgcal::RecHitTools  rhtools 
)
inline

Definition at line 62 of file HGCalClusteringAlgoBase.h.

References hgcal::RecHitTools::firstLayerBH(), firstLayerBH_, getEventSetupPerAlgorithm(), hgcal::RecHitTools::getScintMaxIphi(), isNose_, hgcal::RecHitTools::lastLayer(), hgcal::RecHitTools::lastLayerEE(), lastLayerEE_, hgcal::RecHitTools::lastLayerFH(), lastLayerFH_, maxlayer_, rhtools_, and scintMaxIphi_.

62  {
63  rhtools_ = rhtools;
70  }
unsigned int firstLayerBH() const
Definition: RecHitTools.h:77
unsigned int lastLayerFH() const
Definition: RecHitTools.h:76
int getScintMaxIphi() const
Definition: RecHitTools.h:84
unsigned int lastLayerEE(bool nose=false) const
Definition: RecHitTools.h:75
virtual void getEventSetupPerAlgorithm(const edm::EventSetup &es)
unsigned int lastLayer(bool nose=false) const
Definition: RecHitTools.h:79

◆ getEventSetupPerAlgorithm()

virtual void HGCalClusteringAlgoBase::getEventSetupPerAlgorithm ( const edm::EventSetup es)
inlinevirtual

Reimplemented in HGCalImagingAlgo, and HGCalCLUEAlgoT< TILE, STRATEGY >.

Definition at line 60 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

60 {} //implementation is in some child class

◆ makeClusters()

virtual void HGCalClusteringAlgoBase::makeClusters ( )
pure virtual

◆ populate()

virtual void HGCalClusteringAlgoBase::populate ( const HGCRecHitCollection hits)
pure virtual

◆ reset()

virtual void HGCalClusteringAlgoBase::reset ( )
pure virtual

◆ setAlgoId()

void HGCalClusteringAlgoBase::setAlgoId ( reco::CaloCluster::AlgoId  algo,
bool  isNose = false 
)
inline

Definition at line 72 of file HGCalClusteringAlgoBase.h.

References algoId_, and isNose_.

72  {
73  algoId_ = algo;
74  isNose_ = isNose;
75  }
reco::CaloCluster::AlgoId algoId_

◆ setVerbosity()

void HGCalClusteringAlgoBase::setVerbosity ( VerbosityLevel  the_verbosity)
inline

Definition at line 71 of file HGCalClusteringAlgoBase.h.

References verbosity_.

71 { verbosity_ = the_verbosity; }

Member Data Documentation

◆ algoId_

reco::CaloCluster::AlgoId HGCalClusteringAlgoBase::algoId_
protected

Definition at line 96 of file HGCalClusteringAlgoBase.h.

Referenced by setAlgoId().

◆ caloGeomToken_

edm::ESGetToken<CaloGeometry, CaloGeometryRecord> HGCalClusteringAlgoBase::caloGeomToken_
protected

Definition at line 98 of file HGCalClusteringAlgoBase.h.

◆ clusters_v_

std::vector<reco::BasicCluster> HGCalClusteringAlgoBase::clusters_v_
protected

Definition at line 91 of file HGCalClusteringAlgoBase.h.

Referenced by HGCalCLUEAlgoT< TILE, STRATEGY >::reset().

◆ firstLayerBH_

unsigned int HGCalClusteringAlgoBase::firstLayerBH_

Definition at line 82 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

◆ isNose_

bool HGCalClusteringAlgoBase::isNose_

Definition at line 84 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup(), and setAlgoId().

◆ lastLayerEE_

unsigned int HGCalClusteringAlgoBase::lastLayerEE_

Definition at line 80 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

◆ lastLayerFH_

unsigned int HGCalClusteringAlgoBase::lastLayerFH_

Definition at line 81 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

◆ maxlayer_

unsigned int HGCalClusteringAlgoBase::maxlayer_

Definition at line 78 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

◆ rhtools_

hgcal::RecHitTools HGCalClusteringAlgoBase::rhtools_
protected

Definition at line 93 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

◆ scintMaxIphi_

int HGCalClusteringAlgoBase::scintMaxIphi_

Definition at line 83 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

◆ verbosity_

VerbosityLevel HGCalClusteringAlgoBase::verbosity_
protected

Definition at line 88 of file HGCalClusteringAlgoBase.h.

Referenced by setVerbosity().