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 22 of file EcalHaloData.h.

Constructor & Destructor Documentation

EcalHaloData::EcalHaloData ( )

Definition at line 10 of file EcalHaloData.cc.

11 {
12 }
reco::EcalHaloData::~EcalHaloData ( )
inline

Definition at line 27 of file EcalHaloData.h.

References angle(), and NumberOfHaloSuperClusters().

27 {}

Member Function Documentation

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

Definition at line 50 of file EcalHaloData.h.

References thehaloclustercands_eb.

Referenced by GlobalHaloAlgo::Calculate().

50 {return thehaloclustercands_eb;}
std::vector< HaloClusterCandidateECAL > thehaloclustercands_eb
Definition: EcalHaloData.h:64
std::vector<HaloClusterCandidateECAL>& reco::EcalHaloData::getHaloClusterCandidatesEB ( )
inline

Definition at line 51 of file EcalHaloData.h.

References thehaloclustercands_eb.

51 {return thehaloclustercands_eb;}
std::vector< HaloClusterCandidateECAL > thehaloclustercands_eb
Definition: EcalHaloData.h:64
const std::vector<HaloClusterCandidateECAL>& reco::EcalHaloData::getHaloClusterCandidatesEE ( ) const
inline

Definition at line 52 of file EcalHaloData.h.

References thehaloclustercands_ee.

Referenced by GlobalHaloAlgo::Calculate().

52 {return thehaloclustercands_ee;}
std::vector< HaloClusterCandidateECAL > thehaloclustercands_ee
Definition: EcalHaloData.h:65
std::vector<HaloClusterCandidateECAL>& reco::EcalHaloData::getHaloClusterCandidatesEE ( )
inline

Definition at line 53 of file EcalHaloData.h.

References thehaloclustercands_ee.

53 {return thehaloclustercands_ee;}
std::vector< HaloClusterCandidateECAL > thehaloclustercands_ee
Definition: EcalHaloData.h:65
const std::vector<PhiWedge>& reco::EcalHaloData::GetPhiWedges ( ) const
inline

Definition at line 34 of file EcalHaloData.h.

References PhiWedgeCollection.

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

34 {return PhiWedgeCollection;}
std::vector< PhiWedge > PhiWedgeCollection
Definition: EcalHaloData.h:58
std::vector<PhiWedge>& reco::EcalHaloData::GetPhiWedges ( )
inline

Definition at line 35 of file EcalHaloData.h.

References PhiWedgeCollection.

35 {return PhiWedgeCollection;}
std::vector< PhiWedge > PhiWedgeCollection
Definition: EcalHaloData.h:58
edm::ValueMap<float>& reco::EcalHaloData::GetShowerShapesAngle ( )
inline

Definition at line 46 of file EcalHaloData.h.

References ShowerShapes_Angle.

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

46 { return ShowerShapes_Angle;}
edm::ValueMap< float > ShowerShapes_Angle
Definition: EcalHaloData.h:62
const edm::ValueMap<float>& reco::EcalHaloData::GetShowerShapesAngle ( ) const
inline

Definition at line 47 of file EcalHaloData.h.

References ShowerShapes_Angle.

47 { return ShowerShapes_Angle;}
edm::ValueMap< float > ShowerShapes_Angle
Definition: EcalHaloData.h:62
edm::ValueMap<float>& reco::EcalHaloData::GetShowerShapesRoundness ( )
inline

Definition at line 43 of file EcalHaloData.h.

References ShowerShapes_Roundness.

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

43 { return ShowerShapes_Roundness;}
edm::ValueMap< float > ShowerShapes_Roundness
Definition: EcalHaloData.h:61
const edm::ValueMap<float>& reco::EcalHaloData::GetShowerShapesRoundness ( ) const
inline

Definition at line 44 of file EcalHaloData.h.

References ShowerShapes_Roundness.

44 { return ShowerShapes_Roundness;}
edm::ValueMap< float > ShowerShapes_Roundness
Definition: EcalHaloData.h:61
edm::RefVector<reco::SuperClusterCollection>& reco::EcalHaloData::GetSuperClusters ( )
inline

Definition at line 38 of file EcalHaloData.h.

References TheSuperClusterRefs.

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

38 {return TheSuperClusterRefs;}
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition: EcalHaloData.h:59
const edm::RefVector<reco::SuperClusterCollection>& reco::EcalHaloData::GetSuperClusters ( ) const
inline

Definition at line 39 of file EcalHaloData.h.

References TheSuperClusterRefs.

39 {return TheSuperClusterRefs;}
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition: EcalHaloData.h:59
int EcalHaloData::NumberOfHaloSuperClusters ( float  roundness = 100.,
float  angle = 4.0 
) const

Definition at line 14 of file EcalHaloData.cc.

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

Referenced by ~EcalHaloData().

15 {
16 
17  int n = 0 ;
18  for( unsigned int i = 0 ; i < TheSuperClusterRefs.size() ; i++ )
19  {
21  float r = ShowerShapes_Roundness[cluster];
22  float a = ShowerShapes_Angle[cluster];
23 
24  if( (r > 0 && r < roundness) && ( a > 0 && a < angle ) )
25  n++ ;
26  }
27 
28  return n ;
29 }
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition: EcalHaloData.h:59
edm::ValueMap< float > ShowerShapes_Angle
Definition: EcalHaloData.h:62
edm::ValueMap< float > ShowerShapes_Roundness
Definition: EcalHaloData.h:61
double a
Definition: hdecay.h:121
size_type size() const
Size of the RefVector.
Definition: RefVector.h:107
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void reco::EcalHaloData::setHaloClusterCandidatesEB ( const std::vector< HaloClusterCandidateECAL > &  x)
inline

Definition at line 55 of file EcalHaloData.h.

References thehaloclustercands_eb.

Referenced by EcalHaloAlgo::Calculate().

std::vector< HaloClusterCandidateECAL > thehaloclustercands_eb
Definition: EcalHaloData.h:64
void reco::EcalHaloData::setHaloClusterCandidatesEE ( const std::vector< HaloClusterCandidateECAL > &  x)
inline

Definition at line 56 of file EcalHaloData.h.

References thehaloclustercands_ee.

Referenced by EcalHaloAlgo::Calculate().

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

Member Data Documentation

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

Definition at line 58 of file EcalHaloData.h.

Referenced by GetPhiWedges().

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

Definition at line 62 of file EcalHaloData.h.

Referenced by GetShowerShapesAngle(), and NumberOfHaloSuperClusters().

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

Definition at line 61 of file EcalHaloData.h.

Referenced by GetShowerShapesRoundness(), and NumberOfHaloSuperClusters().

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

Definition at line 64 of file EcalHaloData.h.

Referenced by getHaloClusterCandidatesEB(), and setHaloClusterCandidatesEB().

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

Definition at line 65 of file EcalHaloData.h.

Referenced by getHaloClusterCandidatesEE(), and setHaloClusterCandidatesEE().

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

Definition at line 59 of file EcalHaloData.h.

Referenced by GetSuperClusters(), and NumberOfHaloSuperClusters().