CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 > HGCalImagingAlgo

Public Types

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

Public Member Functions

virtual std::vector
< reco::BasicCluster
getClusters (bool)=0
 
virtual hgcal_clustering::Density getDensity ()=0
 
void getEventSetup (const edm::EventSetup &es)
 
virtual void getEventSetupPerAlgorithm (const edm::EventSetup &es)
 
 HGCalClusteringAlgoBase (VerbosityLevel v, reco::CaloCluster::AlgoId algo, edm::ConsumesCollector iC)
 
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,
CaloGeometryRecord
caloGeomToken_
 
std::vector< reco::BasicClusterclusters_v_
 
hgcal::RecHitTools rhtools_
 
VerbosityLevel verbosity_
 

Detailed Description

Definition at line 48 of file HGCalClusteringAlgoBase.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

HGCalClusteringAlgoBase::HGCalClusteringAlgoBase ( VerbosityLevel  v,
reco::CaloCluster::AlgoId  algo,
edm::ConsumesCollector  iC 
)
inline
virtual HGCalClusteringAlgoBase::~HGCalClusteringAlgoBase ( )
inlinevirtual

Definition at line 54 of file HGCalClusteringAlgoBase.h.

54 {}

Member Function Documentation

virtual std::vector<reco::BasicCluster> HGCalClusteringAlgoBase::getClusters ( bool  )
pure virtual
virtual hgcal_clustering::Density HGCalClusteringAlgoBase::getDensity ( )
pure virtual
void HGCalClusteringAlgoBase::getEventSetup ( const edm::EventSetup es)
inline

Definition at line 63 of file HGCalClusteringAlgoBase.h.

References caloGeomToken_, hgcal::RecHitTools::firstLayerBH(), firstLayerBH_, relativeConstraints::geom, getEventSetupPerAlgorithm(), edm::EventSetup::getHandle(), hgcal::RecHitTools::getScintMaxIphi(), isNose_, hgcal::RecHitTools::lastLayer(), hgcal::RecHitTools::lastLayerEE(), lastLayerEE_, hgcal::RecHitTools::lastLayerFH(), lastLayerFH_, maxlayer_, rhtools_, scintMaxIphi_, and hgcal::RecHitTools::setGeometry().

63  {
65  rhtools_.setGeometry(*geom);
72  }
unsigned int lastLayer(bool nose=false) const
Definition: RecHitTools.h:79
void setGeometry(CaloGeometry const &)
Definition: RecHitTools.cc:68
unsigned int firstLayerBH() const
Definition: RecHitTools.h:77
unsigned int lastLayerEE(bool nose=false) const
Definition: RecHitTools.h:75
int getScintMaxIphi() const
Definition: RecHitTools.h:84
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:157
virtual void getEventSetupPerAlgorithm(const edm::EventSetup &es)
unsigned int lastLayerFH() const
Definition: RecHitTools.h:76
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
virtual void HGCalClusteringAlgoBase::getEventSetupPerAlgorithm ( const edm::EventSetup es)
inlinevirtual

Reimplemented in HGCalCLUEAlgoT< TILE >, and HGCalImagingAlgo.

Definition at line 61 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

61 {}
virtual void HGCalClusteringAlgoBase::makeClusters ( )
pure virtual
virtual void HGCalClusteringAlgoBase::populate ( const HGCRecHitCollection hits)
pure virtual
virtual void HGCalClusteringAlgoBase::reset ( )
pure virtual
void HGCalClusteringAlgoBase::setAlgoId ( reco::CaloCluster::AlgoId  algo,
bool  isNose = false 
)
inline

Definition at line 74 of file HGCalClusteringAlgoBase.h.

References algoId_, and isNose_.

74  {
75  algoId_ = algo;
76  isNose_ = isNose;
77  }
reco::CaloCluster::AlgoId algoId_
void HGCalClusteringAlgoBase::setVerbosity ( VerbosityLevel  the_verbosity)
inline

Definition at line 73 of file HGCalClusteringAlgoBase.h.

References verbosity_.

73 { verbosity_ = the_verbosity; }

Member Data Documentation

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

Definition at line 98 of file HGCalClusteringAlgoBase.h.

Referenced by setAlgoId().

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

Definition at line 100 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

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

Definition at line 93 of file HGCalClusteringAlgoBase.h.

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

unsigned int HGCalClusteringAlgoBase::firstLayerBH_

Definition at line 84 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

bool HGCalClusteringAlgoBase::isNose_

Definition at line 86 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup(), and setAlgoId().

unsigned int HGCalClusteringAlgoBase::lastLayerEE_

Definition at line 82 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

unsigned int HGCalClusteringAlgoBase::lastLayerFH_

Definition at line 83 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

unsigned int HGCalClusteringAlgoBase::maxlayer_

Definition at line 80 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

hgcal::RecHitTools HGCalClusteringAlgoBase::rhtools_
protected

Definition at line 95 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

int HGCalClusteringAlgoBase::scintMaxIphi_

Definition at line 85 of file HGCalClusteringAlgoBase.h.

Referenced by getEventSetup().

VerbosityLevel HGCalClusteringAlgoBase::verbosity_
protected

Definition at line 90 of file HGCalClusteringAlgoBase.h.

Referenced by setVerbosity().