CMS 3D CMS Logo

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

#include <EcalHaloData.h>

Public Member Functions

 EcalHaloData ()
 
const 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 ()
 
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]

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

Definition at line 47 of file EcalHaloData.h.

References thehaloclustercands_eb.

Referenced by GlobalHaloAlgo::Calculate().

47 { return thehaloclustercands_eb; }
std::vector< HaloClusterCandidateECAL > thehaloclustercands_eb
Definition: EcalHaloData.h:62

◆ getHaloClusterCandidatesEB() [2/2]

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

Definition at line 48 of file EcalHaloData.h.

References thehaloclustercands_eb.

48 { return thehaloclustercands_eb; }
std::vector< HaloClusterCandidateECAL > thehaloclustercands_eb
Definition: EcalHaloData.h:62

◆ getHaloClusterCandidatesEE() [1/2]

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

Definition at line 49 of file EcalHaloData.h.

References thehaloclustercands_ee.

Referenced by GlobalHaloAlgo::Calculate().

49 { return thehaloclustercands_ee; }
std::vector< HaloClusterCandidateECAL > thehaloclustercands_ee
Definition: EcalHaloData.h:63

◆ getHaloClusterCandidatesEE() [2/2]

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

Definition at line 50 of file EcalHaloData.h.

References thehaloclustercands_ee.

50 { return thehaloclustercands_ee; }
std::vector< HaloClusterCandidateECAL > thehaloclustercands_ee
Definition: EcalHaloData.h:63

◆ GetPhiWedges() [1/2]

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

Definition at line 33 of file EcalHaloData.h.

References PhiWedgeCollection.

Referenced by BeamHaloAnalyzer::analyze(), EcalHaloAlgo::Calculate(), and GlobalHaloAlgo::Calculate().

33 { return PhiWedgeCollection; }
std::vector< PhiWedge > PhiWedgeCollection
Definition: EcalHaloData.h:56

◆ GetPhiWedges() [2/2]

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

Definition at line 34 of file EcalHaloData.h.

References PhiWedgeCollection.

34 { return PhiWedgeCollection; }
std::vector< PhiWedge > PhiWedgeCollection
Definition: EcalHaloData.h:56

◆ GetShowerShapesAngle() [1/2]

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

Definition at line 44 of file EcalHaloData.h.

References ShowerShapes_Angle.

Referenced by BeamHaloAnalyzer::analyze(), EcalHaloAlgo::Calculate(), and reco::BeamHaloSummaryProducer::produce().

44 { return ShowerShapes_Angle; }
edm::ValueMap< float > ShowerShapes_Angle
Definition: EcalHaloData.h:60

◆ GetShowerShapesAngle() [2/2]

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

Definition at line 45 of file EcalHaloData.h.

References ShowerShapes_Angle.

45 { return ShowerShapes_Angle; }
edm::ValueMap< float > ShowerShapes_Angle
Definition: EcalHaloData.h:60

◆ GetShowerShapesRoundness() [1/2]

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

Definition at line 41 of file EcalHaloData.h.

References ShowerShapes_Roundness.

Referenced by BeamHaloAnalyzer::analyze(), EcalHaloAlgo::Calculate(), and reco::BeamHaloSummaryProducer::produce().

41 { return ShowerShapes_Roundness; }
edm::ValueMap< float > ShowerShapes_Roundness
Definition: EcalHaloData.h:59

◆ GetShowerShapesRoundness() [2/2]

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

Definition at line 42 of file EcalHaloData.h.

References ShowerShapes_Roundness.

42 { return ShowerShapes_Roundness; }
edm::ValueMap< float > ShowerShapes_Roundness
Definition: EcalHaloData.h:59

◆ GetSuperClusters() [1/2]

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

Definition at line 37 of file EcalHaloData.h.

References TheSuperClusterRefs.

Referenced by BeamHaloAnalyzer::analyze(), EcalHaloAlgo::Calculate(), and reco::BeamHaloSummaryProducer::produce().

37 { return TheSuperClusterRefs; }
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition: EcalHaloData.h:57

◆ GetSuperClusters() [2/2]

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

Definition at line 38 of file EcalHaloData.h.

References TheSuperClusterRefs.

38 { return TheSuperClusterRefs; }
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition: EcalHaloData.h:57

◆ NumberOfHaloSuperClusters()

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

Definition at line 12 of file EcalHaloData.cc.

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

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 }
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition: EcalHaloData.h:57
edm::ValueMap< float > ShowerShapes_Angle
Definition: EcalHaloData.h:60
edm::ValueMap< float > ShowerShapes_Roundness
Definition: EcalHaloData.h:59
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102
double a
Definition: hdecay.h:121
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11

◆ setHaloClusterCandidatesEB()

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

Definition at line 52 of file EcalHaloData.h.

References thehaloclustercands_eb, and x.

Referenced by EcalHaloAlgo::Calculate().

std::vector< HaloClusterCandidateECAL > thehaloclustercands_eb
Definition: EcalHaloData.h:62

◆ setHaloClusterCandidatesEE()

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

Definition at line 53 of file EcalHaloData.h.

References thehaloclustercands_ee, and x.

Referenced by EcalHaloAlgo::Calculate().

std::vector< HaloClusterCandidateECAL > thehaloclustercands_ee
Definition: EcalHaloData.h:63

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().