CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
IslandClusterAlgo Class Reference

#include <IslandClusterAlgo.h>

Public Types

enum  EcalPart { barrel = 0, endcap = 1 }
 
typedef math::XYZPoint Point
 point in the space More...
 
enum  VerbosityLevel { pDEBUG = 0, pWARNING = 1, pINFO = 2, pERROR = 3 }
 

Public Member Functions

 IslandClusterAlgo ()
 
 IslandClusterAlgo (double ebst, double ecst, const PositionCalc &posCalc, VerbosityLevel the_verbosity=pERROR)
 
std::vector< reco::BasicClustermakeClusters (const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology_p, const CaloSubdetectorGeometry *geometryES_p, EcalPart ecalPart, bool regional=false, const std::vector< EcalEtaPhiRegion > &regions=std::vector< EcalEtaPhiRegion >())
 
void setVerbosity (VerbosityLevel the_verbosity)
 
virtual ~IslandClusterAlgo ()
 

Private Member Functions

void mainSearch (const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry_p, const CaloSubdetectorTopology *topology_p, const CaloSubdetectorGeometry *geometryES_p, EcalPart ecalPart)
 
void makeCluster (const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry_p, const CaloSubdetectorGeometry *geometryES_p)
 
void searchEast (const CaloNavigator< DetId > &navigator, const CaloSubdetectorTopology *topology)
 
void searchNorth (const CaloNavigator< DetId > &navigator)
 
void searchSouth (const CaloNavigator< DetId > &navigator)
 
void searchWest (const CaloNavigator< DetId > &navigator, const CaloSubdetectorTopology *topology)
 
bool shouldBeAdded (EcalRecHitCollection::const_iterator candidate_it, EcalRecHitCollection::const_iterator previous_it)
 

Private Attributes

std::vector< reco::BasicClusterclusters_v
 
std::vector< std::pair< DetId,
float > > 
current_v
 
double ecalBarrelSeedThreshold
 
double ecalEndcapSeedThreshold
 
PositionCalc posCalculator_
 
const EcalRecHitCollectionrecHits_
 
std::vector< EcalRecHitseeds
 
std::set< DetIdused_s
 
VerbosityLevel verbosity
 

Detailed Description

Definition at line 27 of file IslandClusterAlgo.h.

Member Typedef Documentation

point in the space

Definition at line 61 of file IslandClusterAlgo.h.

Member Enumeration Documentation

Enumerator
barrel 
endcap 

Definition at line 31 of file IslandClusterAlgo.h.

Enumerator
pDEBUG 
pWARNING 
pINFO 
pERROR 

Definition at line 32 of file IslandClusterAlgo.h.

Constructor & Destructor Documentation

IslandClusterAlgo::IslandClusterAlgo ( )
inline

Definition at line 34 of file IslandClusterAlgo.h.

34  {
35  }
IslandClusterAlgo::IslandClusterAlgo ( double  ebst,
double  ecst,
const PositionCalc posCalc,
VerbosityLevel  the_verbosity = pERROR 
)
inline

Definition at line 37 of file IslandClusterAlgo.h.

References posCalculator_.

37  :
38  ecalBarrelSeedThreshold(ebst), ecalEndcapSeedThreshold(ecst), verbosity(the_verbosity) {
39  posCalculator_ = posCalc;
40  }
PositionCalc posCalculator_
VerbosityLevel verbosity
virtual IslandClusterAlgo::~IslandClusterAlgo ( )
inlinevirtual

Definition at line 42 of file IslandClusterAlgo.h.

43  {
44  }

Member Function Documentation

void IslandClusterAlgo::mainSearch ( const EcalRecHitCollection hits,
const CaloSubdetectorGeometry geometry_p,
const CaloSubdetectorTopology topology_p,
const CaloSubdetectorGeometry geometryES_p,
EcalPart  ecalPart 
)
private

Definition at line 106 of file IslandClusterAlgo.cc.

void IslandClusterAlgo::makeCluster ( const EcalRecHitCollection hits,
const CaloSubdetectorGeometry geometry_p,
const CaloSubdetectorGeometry geometryES_p 
)
private

Definition at line 266 of file IslandClusterAlgo.cc.

std::vector< reco::BasicCluster > IslandClusterAlgo::makeClusters ( const EcalRecHitCollection hits,
const CaloSubdetectorGeometry geometry,
const CaloSubdetectorTopology topology_p,
const CaloSubdetectorGeometry geometryES_p,
EcalPart  ecalPart,
bool  regional = false,
const std::vector< EcalEtaPhiRegion > &  regions = std::vector<EcalEtaPhiRegion>() 
)

Definition at line 17 of file IslandClusterAlgo.cc.

void IslandClusterAlgo::searchEast ( const CaloNavigator< DetId > &  navigator,
const CaloSubdetectorTopology topology 
)
private

Definition at line 226 of file IslandClusterAlgo.cc.

void IslandClusterAlgo::searchNorth ( const CaloNavigator< DetId > &  navigator)
private

Definition at line 158 of file IslandClusterAlgo.cc.

void IslandClusterAlgo::searchSouth ( const CaloNavigator< DetId > &  navigator)
private

Definition at line 180 of file IslandClusterAlgo.cc.

void IslandClusterAlgo::searchWest ( const CaloNavigator< DetId > &  navigator,
const CaloSubdetectorTopology topology 
)
private

Definition at line 201 of file IslandClusterAlgo.cc.

void IslandClusterAlgo::setVerbosity ( VerbosityLevel  the_verbosity)
inline

Definition at line 46 of file IslandClusterAlgo.h.

References verbosity.

47  {
48  verbosity = the_verbosity;
49  }
VerbosityLevel verbosity
bool IslandClusterAlgo::shouldBeAdded ( EcalRecHitCollection::const_iterator  candidate_it,
EcalRecHitCollection::const_iterator  previous_it 
)
private

Definition at line 252 of file IslandClusterAlgo.cc.

Member Data Documentation

std::vector<reco::BasicCluster> IslandClusterAlgo::clusters_v
private

Definition at line 86 of file IslandClusterAlgo.h.

std::vector< std::pair<DetId, float> > IslandClusterAlgo::current_v
private

Definition at line 83 of file IslandClusterAlgo.h.

double IslandClusterAlgo::ecalBarrelSeedThreshold
private

Definition at line 70 of file IslandClusterAlgo.h.

double IslandClusterAlgo::ecalEndcapSeedThreshold
private

Definition at line 71 of file IslandClusterAlgo.h.

PositionCalc IslandClusterAlgo::posCalculator_
private

Definition at line 66 of file IslandClusterAlgo.h.

Referenced by IslandClusterAlgo().

const EcalRecHitCollection* IslandClusterAlgo::recHits_
private

Definition at line 74 of file IslandClusterAlgo.h.

std::vector<EcalRecHit> IslandClusterAlgo::seeds
private

Definition at line 77 of file IslandClusterAlgo.h.

std::set<DetId> IslandClusterAlgo::used_s
private

Definition at line 80 of file IslandClusterAlgo.h.

VerbosityLevel IslandClusterAlgo::verbosity
private

Definition at line 89 of file IslandClusterAlgo.h.

Referenced by setVerbosity().