test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
reco::EcalHaloData Class Reference

#include <EcalHaloData.h>

Public Member Functions

 EcalHaloData ()
 
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
 
 ~EcalHaloData ()
 

Private Attributes

std::vector< PhiWedgePhiWedgeCollection
 
edm::ValueMap< float > ShowerShapes_Angle
 
edm::ValueMap< float > ShowerShapes_Roundness
 
edm::RefVector
< reco::SuperClusterCollection
TheSuperClusterRefs
 

Detailed Description

Definition at line 20 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 25 of file EcalHaloData.h.

25 {}

Member Function Documentation

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

Definition at line 32 of file EcalHaloData.h.

References PhiWedgeCollection.

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

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

Definition at line 33 of file EcalHaloData.h.

References PhiWedgeCollection.

33 {return PhiWedgeCollection;}
std::vector< PhiWedge > PhiWedgeCollection
Definition: EcalHaloData.h:47
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:51
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:51
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:50
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:50
edm::RefVector<reco::SuperClusterCollection>& reco::EcalHaloData::GetSuperClusters ( )
inline

Definition at line 36 of file EcalHaloData.h.

References TheSuperClusterRefs.

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

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

Definition at line 37 of file EcalHaloData.h.

References TheSuperClusterRefs.

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

Definition at line 14 of file EcalHaloData.cc.

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

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 }
int i
Definition: DBlmapReader.cc:9
edm::RefVector< reco::SuperClusterCollection > TheSuperClusterRefs
Definition: EcalHaloData.h:48
edm::ValueMap< float > ShowerShapes_Angle
Definition: EcalHaloData.h:51
edm::ValueMap< float > ShowerShapes_Roundness
Definition: EcalHaloData.h:50
double a
Definition: hdecay.h:121
size_type size() const
Size of the RefVector.
Definition: RefVector.h:89
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11

Member Data Documentation

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

Definition at line 47 of file EcalHaloData.h.

Referenced by GetPhiWedges().

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

Definition at line 51 of file EcalHaloData.h.

Referenced by GetShowerShapesAngle(), and NumberOfHaloSuperClusters().

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

Definition at line 50 of file EcalHaloData.h.

Referenced by GetShowerShapesRoundness(), and NumberOfHaloSuperClusters().

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

Definition at line 48 of file EcalHaloData.h.

Referenced by GetSuperClusters(), and NumberOfHaloSuperClusters().