CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::EcalHaloData Class Reference

#include <EcalHaloData.h>

Public Member Functions

 EcalHaloData ()
 
std::vector< HaloClusterCandidateECAL > & getHaloClusterCandidatesEB ()
 
const std::vector< HaloClusterCandidateECAL > & getHaloClusterCandidatesEB () const
 
std::vector< HaloClusterCandidateECAL > & getHaloClusterCandidatesEE ()
 
const std::vector< HaloClusterCandidateECAL > & getHaloClusterCandidatesEE () const
 
std::vector< PhiWedge > & GetPhiWedges ()
 
const std::vector< PhiWedge > & GetPhiWedges () const
 
edm::ValueMap< float > & GetShowerShapesAngle ()
 
const edm::ValueMap< float > & GetShowerShapesAngle () const
 
edm::ValueMap< float > & GetShowerShapesRoundness ()
 
const edm::ValueMap< float > & GetShowerShapesRoundness () const
 
edm::RefVector< reco::SuperClusterCollection > & GetSuperClusters ()
 
const edm::RefVector< reco::SuperClusterCollection > & GetSuperClusters () const
 
int NumberOfHaloSuperClusters (float roundness=100., float angle=4.0) const
 
void setHaloClusterCandidatesEB (const std::vector< HaloClusterCandidateECAL > &x)
 
void setHaloClusterCandidatesEE (const std::vector< HaloClusterCandidateECAL > &x)
 
 ~EcalHaloData ()
 

Private Attributes

std::vector< PhiWedgePhiWedgeCollection
 
edm::ValueMap< float > ShowerShapes_Angle
 
edm::ValueMap< float > ShowerShapes_Roundness
 
std::vector< HaloClusterCandidateECALthehaloclustercands_eb
 
std::vector< HaloClusterCandidateECALthehaloclustercands_ee
 
edm::RefVector< reco::SuperClusterCollectionTheSuperClusterRefs
 

Detailed Description

Definition at line 21 of file EcalHaloData.h.

Constructor & Destructor Documentation

◆ EcalHaloData()

EcalHaloData::EcalHaloData ( )

Definition at line 10 of file EcalHaloData.cc.

10 {}

◆ ~EcalHaloData()

reco::EcalHaloData::~EcalHaloData ( )
inline

Definition at line 26 of file EcalHaloData.h.

26 {}

Member Function Documentation

◆ getHaloClusterCandidatesEB() [1/2]

std::vector<HaloClusterCandidateECAL>& reco::EcalHaloData::getHaloClusterCandidatesEB ( )
inline

Definition at line 48 of file EcalHaloData.h.

48 { return thehaloclustercands_eb; }

References thehaloclustercands_eb.

◆ getHaloClusterCandidatesEB() [2/2]

const std::vector<HaloClusterCandidateECAL>& reco::EcalHaloData::getHaloClusterCandidatesEB ( ) const
inline

Definition at line 47 of file EcalHaloData.h.

47 { return thehaloclustercands_eb; }

References thehaloclustercands_eb.

Referenced by GlobalHaloAlgo::Calculate().

◆ getHaloClusterCandidatesEE() [1/2]

std::vector<HaloClusterCandidateECAL>& reco::EcalHaloData::getHaloClusterCandidatesEE ( )
inline

Definition at line 50 of file EcalHaloData.h.

50 { return thehaloclustercands_ee; }

References thehaloclustercands_ee.

◆ getHaloClusterCandidatesEE() [2/2]

const std::vector<HaloClusterCandidateECAL>& reco::EcalHaloData::getHaloClusterCandidatesEE ( ) const
inline

Definition at line 49 of file EcalHaloData.h.

49 { return thehaloclustercands_ee; }

References thehaloclustercands_ee.

Referenced by GlobalHaloAlgo::Calculate().

◆ GetPhiWedges() [1/2]

std::vector<PhiWedge>& reco::EcalHaloData::GetPhiWedges ( )
inline

Definition at line 34 of file EcalHaloData.h.

34 { return PhiWedgeCollection; }

References PhiWedgeCollection.

◆ GetPhiWedges() [2/2]

const std::vector<PhiWedge>& reco::EcalHaloData::GetPhiWedges ( ) const
inline

◆ GetShowerShapesAngle() [1/2]

edm::ValueMap<float>& reco::EcalHaloData::GetShowerShapesAngle ( )
inline

◆ GetShowerShapesAngle() [2/2]

const edm::ValueMap<float>& reco::EcalHaloData::GetShowerShapesAngle ( ) const
inline

Definition at line 45 of file EcalHaloData.h.

45 { return ShowerShapes_Angle; }

References ShowerShapes_Angle.

◆ GetShowerShapesRoundness() [1/2]

edm::ValueMap<float>& reco::EcalHaloData::GetShowerShapesRoundness ( )
inline

◆ GetShowerShapesRoundness() [2/2]

const edm::ValueMap<float>& reco::EcalHaloData::GetShowerShapesRoundness ( ) const
inline

Definition at line 42 of file EcalHaloData.h.

42 { return ShowerShapes_Roundness; }

References ShowerShapes_Roundness.

◆ GetSuperClusters() [1/2]

edm::RefVector<reco::SuperClusterCollection>& reco::EcalHaloData::GetSuperClusters ( )
inline

◆ GetSuperClusters() [2/2]

const edm::RefVector<reco::SuperClusterCollection>& reco::EcalHaloData::GetSuperClusters ( ) const
inline

Definition at line 38 of file EcalHaloData.h.

38 { return TheSuperClusterRefs; }

References TheSuperClusterRefs.

◆ NumberOfHaloSuperClusters()

int EcalHaloData::NumberOfHaloSuperClusters ( float  roundness = 100.,
float  angle = 4.0 
) const

Definition at line 12 of file EcalHaloData.cc.

12  {
13  int n = 0;
14  for (unsigned int i = 0; i < TheSuperClusterRefs.size(); i++) {
16  float r = ShowerShapes_Roundness[cluster];
17  float a = ShowerShapes_Angle[cluster];
18 
19  if ((r > 0 && r < roundness) && (a > 0 && a < angle))
20  n++;
21  }
22 
23  return n;
24 }

References a, angle(), mps_fire::i, dqmiodumpmetadata::n, alignCSCRings::r, ShowerShapes_Angle, ShowerShapes_Roundness, edm::RefVector< C, T, F >::size(), and TheSuperClusterRefs.

◆ setHaloClusterCandidatesEB()

void reco::EcalHaloData::setHaloClusterCandidatesEB ( const std::vector< HaloClusterCandidateECAL > &  x)
inline

Definition at line 52 of file EcalHaloData.h.

References thehaloclustercands_eb.

Referenced by EcalHaloAlgo::Calculate().

◆ setHaloClusterCandidatesEE()

void reco::EcalHaloData::setHaloClusterCandidatesEE ( const std::vector< HaloClusterCandidateECAL > &  x)
inline

Definition at line 53 of file EcalHaloData.h.

References thehaloclustercands_ee.

Referenced by EcalHaloAlgo::Calculate().

Member Data Documentation

◆ PhiWedgeCollection

std::vector<PhiWedge> reco::EcalHaloData::PhiWedgeCollection
private

Definition at line 56 of file EcalHaloData.h.

Referenced by GetPhiWedges().

◆ ShowerShapes_Angle

edm::ValueMap<float> reco::EcalHaloData::ShowerShapes_Angle
private

Definition at line 60 of file EcalHaloData.h.

Referenced by GetShowerShapesAngle(), and NumberOfHaloSuperClusters().

◆ ShowerShapes_Roundness

edm::ValueMap<float> reco::EcalHaloData::ShowerShapes_Roundness
private

Definition at line 59 of file EcalHaloData.h.

Referenced by GetShowerShapesRoundness(), and NumberOfHaloSuperClusters().

◆ thehaloclustercands_eb

std::vector<HaloClusterCandidateECAL> reco::EcalHaloData::thehaloclustercands_eb
private

Definition at line 62 of file EcalHaloData.h.

Referenced by getHaloClusterCandidatesEB(), and setHaloClusterCandidatesEB().

◆ thehaloclustercands_ee

std::vector<HaloClusterCandidateECAL> reco::EcalHaloData::thehaloclustercands_ee
private

Definition at line 63 of file EcalHaloData.h.

Referenced by getHaloClusterCandidatesEE(), and setHaloClusterCandidatesEE().

◆ TheSuperClusterRefs

edm::RefVector<reco::SuperClusterCollection> reco::EcalHaloData::TheSuperClusterRefs
private

Definition at line 57 of file EcalHaloData.h.

Referenced by GetSuperClusters(), and NumberOfHaloSuperClusters().

mps_fire.i
i
Definition: mps_fire.py:428
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
DDAxes::x
reco::EcalHaloData::TheSuperClusterRefs
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition: EcalHaloData.h:57
edm::Ref< SuperClusterCollection >
reco::EcalHaloData::ShowerShapes_Angle
edm::ValueMap< float > ShowerShapes_Angle
Definition: EcalHaloData.h:60
reco::EcalHaloData::ShowerShapes_Roundness
edm::ValueMap< float > ShowerShapes_Roundness
Definition: EcalHaloData.h:59
a
double a
Definition: hdecay.h:119
reco::EcalHaloData::thehaloclustercands_eb
std::vector< HaloClusterCandidateECAL > thehaloclustercands_eb
Definition: EcalHaloData.h:62
reco::EcalHaloData::PhiWedgeCollection
std::vector< PhiWedge > PhiWedgeCollection
Definition: EcalHaloData.h:56
alignCSCRings.r
r
Definition: alignCSCRings.py:93
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
reco::EcalHaloData::thehaloclustercands_ee
std::vector< HaloClusterCandidateECAL > thehaloclustercands_ee
Definition: EcalHaloData.h:63
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102