CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::EcalHaloData Class Reference

#include <EcalHaloData.h>

List of all members.

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
const edm::RefVector
< reco::SuperClusterCollection > & 
GetSuperClusters () const
edm::RefVector
< reco::SuperClusterCollection > & 
GetSuperClusters ()
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.

{
}
reco::EcalHaloData::~EcalHaloData ( ) [inline]

Definition at line 25 of file EcalHaloData.h.

{}

Member Function Documentation

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

Definition at line 33 of file EcalHaloData.h.

References PhiWedgeCollection.

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

Definition at line 45 of file EcalHaloData.h.

References ShowerShapes_Angle.

{ return ShowerShapes_Angle;}
const edm::ValueMap<float>& reco::EcalHaloData::GetShowerShapesRoundness ( ) const [inline]

Definition at line 42 of file EcalHaloData.h.

References ShowerShapes_Roundness.

edm::ValueMap<float>& reco::EcalHaloData::GetShowerShapesRoundness ( ) [inline]
edm::RefVector<reco::SuperClusterCollection>& reco::EcalHaloData::GetSuperClusters ( ) [inline]
const edm::RefVector<reco::SuperClusterCollection>& reco::EcalHaloData::GetSuperClusters ( ) const [inline]

Definition at line 37 of file EcalHaloData.h.

References TheSuperClusterRefs.

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

Definition at line 14 of file EcalHaloData.cc.

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

{

  int n = 0 ; 
  for( unsigned int i = 0 ; i < TheSuperClusterRefs.size() ; i++ )
    {
      edm::Ref<SuperClusterCollection> cluster(TheSuperClusterRefs, i) ;
      float r = ShowerShapes_Roundness[cluster];
      float a = ShowerShapes_Angle[cluster];
      
      if( (r > 0 && r < roundness) && ( a > 0 && a < angle ) ) 
        n++ ;
    }

  return  n ;
}

Member Data Documentation

Definition at line 47 of file EcalHaloData.h.

Referenced by GetPhiWedges().

Definition at line 51 of file EcalHaloData.h.

Referenced by GetShowerShapesAngle(), and NumberOfHaloSuperClusters().

Definition at line 50 of file EcalHaloData.h.

Referenced by GetShowerShapesRoundness(), and NumberOfHaloSuperClusters().

Definition at line 48 of file EcalHaloData.h.

Referenced by GetSuperClusters(), and NumberOfHaloSuperClusters().