CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ExampleClusterAlgo Class Reference

#include <ExampleClusterAlgo.h>

Public Member Functions

 ExampleClusterAlgo ()
 
 ExampleClusterAlgo (double energyCut, int nXtalCut)
 
reco::BasicClusterCollection makeClusters (const EcalRecHitCollection &rechits)
 
reco::BasicCluster makeOneCluster ()
 
void setEnergyCut (double value)
 
void setNXtalCut (int value)
 
 ~ExampleClusterAlgo ()
 

Private Attributes

double energyCut_
 
int nXtalCut_
 

Detailed Description

Definition at line 8 of file ExampleClusterAlgo.h.

Constructor & Destructor Documentation

◆ ExampleClusterAlgo() [1/2]

ExampleClusterAlgo::ExampleClusterAlgo ( )

Definition at line 3 of file ExampleClusterAlgo.cc.

3 : energyCut_(0.), nXtalCut_(-1) {}

◆ ExampleClusterAlgo() [2/2]

ExampleClusterAlgo::ExampleClusterAlgo ( double  energyCut,
int  nXtalCut 
)

Definition at line 5 of file ExampleClusterAlgo.cc.

5  {
7  nXtalCut_ = nXtalCut;
8 }

References interestingEgammaIsoDetIdsSequence_cff::energyCut, energyCut_, and nXtalCut_.

◆ ~ExampleClusterAlgo()

ExampleClusterAlgo::~ExampleClusterAlgo ( )

Definition at line 10 of file ExampleClusterAlgo.cc.

10 {}

Member Function Documentation

◆ makeClusters()

reco::BasicClusterCollection ExampleClusterAlgo::makeClusters ( const EcalRecHitCollection rechits)

Definition at line 14 of file ExampleClusterAlgo.cc.

14  {
16 }

◆ makeOneCluster()

reco::BasicCluster ExampleClusterAlgo::makeOneCluster ( )

Definition at line 12 of file ExampleClusterAlgo.cc.

12 { return reco::BasicCluster(); }

◆ setEnergyCut()

void ExampleClusterAlgo::setEnergyCut ( double  value)
inline

Definition at line 14 of file ExampleClusterAlgo.h.

14 { energyCut_ = value; }

References energyCut_, and relativeConstraints::value.

◆ setNXtalCut()

void ExampleClusterAlgo::setNXtalCut ( int  value)
inline

Definition at line 15 of file ExampleClusterAlgo.h.

15 { nXtalCut_ = value; }

References nXtalCut_, and relativeConstraints::value.

Member Data Documentation

◆ energyCut_

double ExampleClusterAlgo::energyCut_
private

Definition at line 21 of file ExampleClusterAlgo.h.

Referenced by ExampleClusterAlgo(), and setEnergyCut().

◆ nXtalCut_

int ExampleClusterAlgo::nXtalCut_
private

Definition at line 22 of file ExampleClusterAlgo.h.

Referenced by ExampleClusterAlgo(), and setNXtalCut().

ExampleClusterAlgo::nXtalCut_
int nXtalCut_
Definition: ExampleClusterAlgo.h:22
ExampleClusterAlgo::energyCut_
double energyCut_
Definition: ExampleClusterAlgo.h:21
reco::BasicCluster
CaloCluster BasicCluster
Definition: BasicClusterFwd.h:13
reco::BasicClusterCollection
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
Definition: BasicClusterFwd.h:16
interestingEgammaIsoDetIdsSequence_cff.energyCut
energyCut
Definition: interestingEgammaIsoDetIdsSequence_cff.py:12
relativeConstraints.value
value
Definition: relativeConstraints.py:53