#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 |
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< PhiWedge > | PhiWedgeCollection |
edm::ValueMap< float > | ShowerShapes_Angle |
edm::ValueMap< float > | ShowerShapes_Roundness |
edm::RefVector < reco::SuperClusterCollection > | TheSuperClusterRefs |
Definition at line 20 of file EcalHaloData.h.
EcalHaloData::EcalHaloData | ( | ) |
Definition at line 10 of file EcalHaloData.cc.
{ }
reco::EcalHaloData::~EcalHaloData | ( | ) | [inline] |
Definition at line 25 of file EcalHaloData.h.
{}
const std::vector<PhiWedge>& reco::EcalHaloData::GetPhiWedges | ( | ) | const [inline] |
Definition at line 32 of file EcalHaloData.h.
References PhiWedgeCollection.
Referenced by BeamHaloAnalyzer::analyze(), GlobalHaloAlgo::Calculate(), and EcalHaloAlgo::Calculate().
{return PhiWedgeCollection;}
std::vector<PhiWedge>& reco::EcalHaloData::GetPhiWedges | ( | ) | [inline] |
Definition at line 33 of file EcalHaloData.h.
References PhiWedgeCollection.
{return PhiWedgeCollection;}
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().
{ return ShowerShapes_Angle;}
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.
{ return ShowerShapes_Roundness;}
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().
{ return ShowerShapes_Roundness;}
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().
{return TheSuperClusterRefs;}
const edm::RefVector<reco::SuperClusterCollection>& reco::EcalHaloData::GetSuperClusters | ( | ) | const [inline] |
Definition at line 37 of file EcalHaloData.h.
References TheSuperClusterRefs.
{return 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 ; }
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().
Definition at line 48 of file EcalHaloData.h.
Referenced by GetSuperClusters(), and NumberOfHaloSuperClusters().