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
CosmicClusterAlgo Class Reference

#include <CosmicClusterAlgo.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

 CosmicClusterAlgo ()
 
 CosmicClusterAlgo (double ebst, double ebSt, double ebDt, double ebSp, double ecst, double ecSt, double ecDt, double ecSp, const PositionCalc &posCalc, VerbosityLevel the_verbosity=pERROR)
 
std::vector< reco::BasicClustermakeClusters (const EcalRecHitCollection *hits, const EcalUncalibratedRecHitCollection *uncalibhits, 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 ~CosmicClusterAlgo ()
 

Private Member Functions

void addCrystal (const DetId &det, const bool in9)
 
bool checkMaxima (CaloNavigator< DetId > &navigator)
 
void mainSearch (const CaloSubdetectorGeometry *geometry_p, const CaloSubdetectorTopology *topology_p, const CaloSubdetectorGeometry *geometryES_p, EcalPart ecalPart)
 
void makeCluster (const CaloSubdetectorGeometry *geometry_p, const CaloSubdetectorGeometry *geometryES_p, DetId seedId)
 
void prepareCluster (CaloNavigator< DetId > &navigator, const CaloSubdetectorGeometry *geometry)
 

Private Attributes

std::set< DetIdcanSeed_s
 
std::vector< reco::BasicClusterclusters_v
 
std::vector< DetIdcurrent_v25
 
std::vector< std::pair< DetId,
float > > 
current_v25Sup
 
std::vector< DetIdcurrent_v9
 
double ecalBarrelSecondThreshold
 
double ecalBarrelSeedThreshold
 
double ecalBarrelSingleThreshold
 
double ecalBarrelSupThreshold
 
double ecalEndcapSecondThreshold
 
double ecalEndcapSeedThreshold
 
double ecalEndcapSingleThreshold
 
double ecalEndcapSupThreshold
 
bool inEB
 
PositionCalc posCalculator_
 
const EcalRecHitCollectionrecHits_
 
std::vector< EcalRecHitseeds
 
const
EcalUncalibratedRecHitCollection
uncalibRecHits_
 
std::set< DetIdused_s
 
VerbosityLevel verbosity
 

Detailed Description

Definition at line 28 of file CosmicClusterAlgo.h.

Member Typedef Documentation

point in the space

Definition at line 63 of file CosmicClusterAlgo.h.

Member Enumeration Documentation

Enumerator
barrel 
endcap 

Definition at line 32 of file CosmicClusterAlgo.h.

Enumerator
pDEBUG 
pWARNING 
pINFO 
pERROR 

Definition at line 33 of file CosmicClusterAlgo.h.

Constructor & Destructor Documentation

CosmicClusterAlgo::CosmicClusterAlgo ( )
inline

Definition at line 35 of file CosmicClusterAlgo.h.

35  {
36  }
CosmicClusterAlgo::CosmicClusterAlgo ( double  ebst,
double  ebSt,
double  ebDt,
double  ebSp,
double  ecst,
double  ecSt,
double  ecDt,
double  ecSp,
const PositionCalc posCalc,
VerbosityLevel  the_verbosity = pERROR 
)
inline

Definition at line 38 of file CosmicClusterAlgo.h.

References posCalculator_.

virtual CosmicClusterAlgo::~CosmicClusterAlgo ( )
inlinevirtual

Definition at line 43 of file CosmicClusterAlgo.h.

44  {
45  }

Member Function Documentation

void CosmicClusterAlgo::addCrystal ( const DetId det,
const bool  in9 
)
private

Definition at line 405 of file CosmicClusterAlgo.cc.

bool CosmicClusterAlgo::checkMaxima ( CaloNavigator< DetId > &  navigator)
private

Definition at line 306 of file CosmicClusterAlgo.cc.

void CosmicClusterAlgo::mainSearch ( const CaloSubdetectorGeometry geometry_p,
const CaloSubdetectorTopology topology_p,
const CaloSubdetectorGeometry geometryES_p,
EcalPart  ecalPart 
)
private

Definition at line 151 of file CosmicClusterAlgo.cc.

void CosmicClusterAlgo::makeCluster ( const CaloSubdetectorGeometry geometry_p,
const CaloSubdetectorGeometry geometryES_p,
DetId  seedId 
)
private

Definition at line 221 of file CosmicClusterAlgo.cc.

std::vector< reco::BasicCluster > CosmicClusterAlgo::makeClusters ( const EcalRecHitCollection hits,
const EcalUncalibratedRecHitCollection uncalibhits,
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 18 of file CosmicClusterAlgo.cc.

void CosmicClusterAlgo::prepareCluster ( CaloNavigator< DetId > &  navigator,
const CaloSubdetectorGeometry geometry 
)
private

Definition at line 344 of file CosmicClusterAlgo.cc.

void CosmicClusterAlgo::setVerbosity ( VerbosityLevel  the_verbosity)
inline

Definition at line 47 of file CosmicClusterAlgo.h.

References verbosity.

48  {
49  verbosity = the_verbosity;
50  }
VerbosityLevel verbosity

Member Data Documentation

std::set<DetId> CosmicClusterAlgo::canSeed_s
private

Definition at line 92 of file CosmicClusterAlgo.h.

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

Definition at line 104 of file CosmicClusterAlgo.h.

std::vector<DetId> CosmicClusterAlgo::current_v25
private

Definition at line 100 of file CosmicClusterAlgo.h.

std::vector< std::pair<DetId, float> > CosmicClusterAlgo::current_v25Sup
private

Definition at line 101 of file CosmicClusterAlgo.h.

std::vector<DetId> CosmicClusterAlgo::current_v9
private

Definition at line 99 of file CosmicClusterAlgo.h.

double CosmicClusterAlgo::ecalBarrelSecondThreshold
private

Definition at line 74 of file CosmicClusterAlgo.h.

double CosmicClusterAlgo::ecalBarrelSeedThreshold
private

Definition at line 72 of file CosmicClusterAlgo.h.

double CosmicClusterAlgo::ecalBarrelSingleThreshold
private

Definition at line 73 of file CosmicClusterAlgo.h.

double CosmicClusterAlgo::ecalBarrelSupThreshold
private

Definition at line 75 of file CosmicClusterAlgo.h.

double CosmicClusterAlgo::ecalEndcapSecondThreshold
private

Definition at line 79 of file CosmicClusterAlgo.h.

double CosmicClusterAlgo::ecalEndcapSeedThreshold
private

Definition at line 77 of file CosmicClusterAlgo.h.

double CosmicClusterAlgo::ecalEndcapSingleThreshold
private

Definition at line 78 of file CosmicClusterAlgo.h.

double CosmicClusterAlgo::ecalEndcapSupThreshold
private

Definition at line 80 of file CosmicClusterAlgo.h.

bool CosmicClusterAlgo::inEB
private

Definition at line 96 of file CosmicClusterAlgo.h.

PositionCalc CosmicClusterAlgo::posCalculator_
private

Definition at line 68 of file CosmicClusterAlgo.h.

Referenced by CosmicClusterAlgo().

const EcalRecHitCollection* CosmicClusterAlgo::recHits_
private

Definition at line 83 of file CosmicClusterAlgo.h.

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

Definition at line 88 of file CosmicClusterAlgo.h.

const EcalUncalibratedRecHitCollection* CosmicClusterAlgo::uncalibRecHits_
private

Definition at line 85 of file CosmicClusterAlgo.h.

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

Definition at line 91 of file CosmicClusterAlgo.h.

VerbosityLevel CosmicClusterAlgo::verbosity
private

Definition at line 107 of file CosmicClusterAlgo.h.

Referenced by setVerbosity().