CMS 3D CMS Logo

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

#include <GlobalHaloData.h>

Public Member Functions

float DeltaMEx () const
 
float DeltaMEy () const
 
float DeltaSumEt () const
 
reco::CaloMET GetCorrectedCaloMET (const reco::CaloMET &RawMET) const
 
edm::RefVector
< EcalRecHitCollection > & 
GetEBRechits ()
 
const edm::RefVector
< EcalRecHitCollection > & 
GetEBRechits () const
 
edm::RefVector
< EcalRecHitCollection > & 
GetEERechits ()
 
const edm::RefVector
< EcalRecHitCollection > & 
GetEERechits () const
 
bool GetHaloPatternFoundEB () const
 
bool GetHaloPatternFoundEE () const
 
bool GetHaloPatternFoundHB () const
 
bool GetHaloPatternFoundHE () const
 
edm::RefVector
< HBHERecHitCollection > & 
GetHBHERechits ()
 
const edm::RefVector
< HBHERecHitCollection > & 
GetHBHERechits () const
 
std::vector< PhiWedge > & GetMatchedEcalPhiWedges ()
 
const std::vector< PhiWedge > & GetMatchedEcalPhiWedges () const
 
std::vector< PhiWedge > & GetMatchedHcalPhiWedges ()
 
const std::vector< PhiWedge > & GetMatchedHcalPhiWedges () const
 
bool GetSegmentIsEBCaloMatched () const
 
bool GetSegmentIsEECaloMatched () const
 
bool GetSegmentIsHBCaloMatched () const
 
bool GetSegmentIsHECaloMatched () const
 
 GlobalHaloData ()
 
float METOverSumEt () const
 
void SetHaloPatternFoundEB (bool b)
 
void SetHaloPatternFoundEE (bool b)
 
void SetHaloPatternFoundHB (bool b)
 
void SetHaloPatternFoundHE (bool b)
 
void SetMETCorrections (float x, float y)
 
void SetMETOverSumEt (float x)
 
void SetSegmentIsEBCaloMatched (bool b)
 
void SetSegmentIsEECaloMatched (bool b)
 
void SetSegmentIsHBCaloMatched (bool b)
 
void SetSegmentIsHECaloMatched (bool b)
 
 ~GlobalHaloData ()
 

Private Attributes

float dMEx_
 
float dMEy_
 
float dSumEt_
 
edm::RefVector
< EcalRecHitCollection
ecalebrhRefs
 
edm::RefVector
< EcalRecHitCollection
ecaleerhRefs
 
std::vector< PhiWedgeEcalPhiWedges
 
bool halopatternfoundEB
 
bool halopatternfoundEE
 
bool halopatternfoundHB
 
bool halopatternfoundHE
 
edm::RefVector
< HBHERecHitCollection
hbherhRefs
 
std::vector< PhiWedgeHcalPhiWedges
 
float METOverSumEt_
 
bool segmentisEBcalomatched
 
bool segmentisEEcalomatched
 
bool segmentisHBcalomatched
 
bool segmentisHEcalomatched
 

Detailed Description

Definition at line 17 of file GlobalHaloData.h.

Constructor & Destructor Documentation

GlobalHaloData::GlobalHaloData ( )

Definition at line 14 of file GlobalHaloData.cc.

References dMEx_, dMEy_, dSumEt_, halopatternfoundEB, halopatternfoundEE, halopatternfoundHB, halopatternfoundHE, METOverSumEt_, segmentisEBcalomatched, segmentisEEcalomatched, segmentisHBcalomatched, and segmentisHEcalomatched.

14  {
15  METOverSumEt_ = 0.;
16  dMEx_ = 0.;
17  dMEy_ = 0.;
18  dSumEt_ = 0.;
19 
20  segmentisEBcalomatched = false;
21  segmentisEEcalomatched = false;
22  segmentisHBcalomatched = false;
23  segmentisHEcalomatched = false;
24  halopatternfoundEB = false;
25  halopatternfoundEE = false;
26  halopatternfoundHB = false;
27  halopatternfoundHE = false;
28 }
reco::GlobalHaloData::~GlobalHaloData ( )
inline

Definition at line 22 of file GlobalHaloData.h.

22 {}

Member Function Documentation

float reco::GlobalHaloData::DeltaMEx ( ) const
inline

Definition at line 28 of file GlobalHaloData.h.

References dMEx_.

Referenced by BeamHaloAnalyzer::analyze().

28 { return dMEx_; }
float reco::GlobalHaloData::DeltaMEy ( ) const
inline

Definition at line 31 of file GlobalHaloData.h.

References dMEy_.

Referenced by BeamHaloAnalyzer::analyze().

31 { return dMEy_; }
float reco::GlobalHaloData::DeltaSumEt ( ) const
inline

Definition at line 34 of file GlobalHaloData.h.

References dSumEt_.

34 { return dSumEt_; }
reco::CaloMET GlobalHaloData::GetCorrectedCaloMET ( const reco::CaloMET RawMET) const

Definition at line 30 of file GlobalHaloData.cc.

References dMEx_, dMEy_, dSumEt_, reco::CaloMET::getSpecific(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), mathSSE::sqrt(), and reco::MET::sumEt().

Referenced by BeamHaloAnalyzer::analyze().

30  {
31  double mex = RawMET.px() + dMEx_;
32  double mey = RawMET.py() + dMEy_;
33  double mez = RawMET.pz();
34  double sumet = RawMET.sumEt() + dSumEt_;
35  const math::XYZTLorentzVector p4(mex, mey, mez, std::sqrt(mex * mex + mey * mey + mez * mez));
36  const math::XYZPoint vtx(0., 0., 0.);
37 
38  reco::CaloMET CorrectedMET(RawMET.getSpecific(), sumet, p4, vtx);
39  return CorrectedMET;
40 }
double pz() const final
z coordinate of momentum vector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
SpecificCaloMETData getSpecific() const
Definition: CaloMET.h:77
double px() const final
x coordinate of momentum vector
double sumEt() const
Definition: MET.h:56
T sqrt(T t)
Definition: SSEVec.h:19
double py() const final
y coordinate of momentum vector
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
edm::RefVector<EcalRecHitCollection>& reco::GlobalHaloData::GetEBRechits ( )
inline

Definition at line 45 of file GlobalHaloData.h.

References ecalebrhRefs.

Referenced by GlobalHaloAlgo::AddtoBeamHaloEBEERechits().

45 { return ecalebrhRefs; }
edm::RefVector< EcalRecHitCollection > ecalebrhRefs
const edm::RefVector<EcalRecHitCollection>& reco::GlobalHaloData::GetEBRechits ( ) const
inline

Definition at line 46 of file GlobalHaloData.h.

References ecalebrhRefs.

46 { return ecalebrhRefs; }
edm::RefVector< EcalRecHitCollection > ecalebrhRefs
edm::RefVector<EcalRecHitCollection>& reco::GlobalHaloData::GetEERechits ( )
inline

Definition at line 48 of file GlobalHaloData.h.

References ecaleerhRefs.

Referenced by GlobalHaloAlgo::AddtoBeamHaloEBEERechits().

48 { return ecaleerhRefs; }
edm::RefVector< EcalRecHitCollection > ecaleerhRefs
const edm::RefVector<EcalRecHitCollection>& reco::GlobalHaloData::GetEERechits ( ) const
inline

Definition at line 49 of file GlobalHaloData.h.

References ecaleerhRefs.

49 { return ecaleerhRefs; }
edm::RefVector< EcalRecHitCollection > ecaleerhRefs
bool reco::GlobalHaloData::GetHaloPatternFoundEB ( ) const
inline

Definition at line 59 of file GlobalHaloData.h.

References halopatternfoundEB.

Referenced by reco::BeamHaloSummaryProducer::produce().

59 { return halopatternfoundEB; }
bool reco::GlobalHaloData::GetHaloPatternFoundEE ( ) const
inline

Definition at line 60 of file GlobalHaloData.h.

References halopatternfoundEE.

Referenced by reco::BeamHaloSummaryProducer::produce().

60 { return halopatternfoundEE; }
bool reco::GlobalHaloData::GetHaloPatternFoundHB ( ) const
inline

Definition at line 61 of file GlobalHaloData.h.

References halopatternfoundHB.

Referenced by reco::BeamHaloSummaryProducer::produce().

61 { return halopatternfoundHB; }
bool reco::GlobalHaloData::GetHaloPatternFoundHE ( ) const
inline

Definition at line 62 of file GlobalHaloData.h.

References halopatternfoundHE.

Referenced by reco::BeamHaloSummaryProducer::produce().

62 { return halopatternfoundHE; }
edm::RefVector<HBHERecHitCollection>& reco::GlobalHaloData::GetHBHERechits ( )
inline

Definition at line 51 of file GlobalHaloData.h.

References hbherhRefs.

Referenced by GlobalHaloAlgo::AddtoBeamHaloHBHERechits().

51 { return hbherhRefs; }
edm::RefVector< HBHERecHitCollection > hbherhRefs
const edm::RefVector<HBHERecHitCollection>& reco::GlobalHaloData::GetHBHERechits ( ) const
inline

Definition at line 52 of file GlobalHaloData.h.

References hbherhRefs.

52 { return hbherhRefs; }
edm::RefVector< HBHERecHitCollection > hbherhRefs
std::vector<PhiWedge>& reco::GlobalHaloData::GetMatchedEcalPhiWedges ( )
inline

Definition at line 42 of file GlobalHaloData.h.

References EcalPhiWedges.

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

42 { return EcalPhiWedges; }
std::vector< PhiWedge > EcalPhiWedges
const std::vector<PhiWedge>& reco::GlobalHaloData::GetMatchedEcalPhiWedges ( ) const
inline

Definition at line 43 of file GlobalHaloData.h.

References EcalPhiWedges.

43 { return EcalPhiWedges; }
std::vector< PhiWedge > EcalPhiWedges
std::vector<PhiWedge>& reco::GlobalHaloData::GetMatchedHcalPhiWedges ( )
inline

Definition at line 39 of file GlobalHaloData.h.

References HcalPhiWedges.

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

39 { return HcalPhiWedges; }
std::vector< PhiWedge > HcalPhiWedges
const std::vector<PhiWedge>& reco::GlobalHaloData::GetMatchedHcalPhiWedges ( ) const
inline

Definition at line 40 of file GlobalHaloData.h.

References HcalPhiWedges.

40 { return HcalPhiWedges; }
std::vector< PhiWedge > HcalPhiWedges
bool reco::GlobalHaloData::GetSegmentIsEBCaloMatched ( ) const
inline

Definition at line 56 of file GlobalHaloData.h.

References segmentisEBcalomatched.

Referenced by reco::BeamHaloSummaryProducer::produce().

56 { return segmentisEBcalomatched; }
bool reco::GlobalHaloData::GetSegmentIsEECaloMatched ( ) const
inline

Definition at line 57 of file GlobalHaloData.h.

References segmentisEEcalomatched.

Referenced by reco::BeamHaloSummaryProducer::produce().

57 { return segmentisEEcalomatched; }
bool reco::GlobalHaloData::GetSegmentIsHBCaloMatched ( ) const
inline

Definition at line 54 of file GlobalHaloData.h.

References segmentisHBcalomatched.

Referenced by reco::BeamHaloSummaryProducer::produce().

54 { return segmentisHBcalomatched; }
bool reco::GlobalHaloData::GetSegmentIsHECaloMatched ( ) const
inline

Definition at line 55 of file GlobalHaloData.h.

References segmentisHEcalomatched.

Referenced by reco::BeamHaloSummaryProducer::produce().

55 { return segmentisHEcalomatched; }
float reco::GlobalHaloData::METOverSumEt ( ) const
inline

Definition at line 25 of file GlobalHaloData.h.

References METOverSumEt_.

25 { return METOverSumEt_; }
void reco::GlobalHaloData::SetHaloPatternFoundEB ( bool  b)
inline

Definition at line 75 of file GlobalHaloData.h.

References b, and halopatternfoundEB.

Referenced by GlobalHaloAlgo::Calculate().

75 { halopatternfoundEB = b; }
double b
Definition: hdecay.h:118
void reco::GlobalHaloData::SetHaloPatternFoundEE ( bool  b)
inline

Definition at line 76 of file GlobalHaloData.h.

References b, and halopatternfoundEE.

Referenced by GlobalHaloAlgo::Calculate().

76 { halopatternfoundEE = b; }
double b
Definition: hdecay.h:118
void reco::GlobalHaloData::SetHaloPatternFoundHB ( bool  b)
inline

Definition at line 77 of file GlobalHaloData.h.

References b, and halopatternfoundHB.

Referenced by GlobalHaloAlgo::Calculate().

77 { halopatternfoundHB = b; }
double b
Definition: hdecay.h:118
void reco::GlobalHaloData::SetHaloPatternFoundHE ( bool  b)
inline

Definition at line 78 of file GlobalHaloData.h.

References b, and halopatternfoundHE.

Referenced by GlobalHaloAlgo::Calculate().

78 { halopatternfoundHE = b; }
double b
Definition: hdecay.h:118
void reco::GlobalHaloData::SetMETCorrections ( float  x,
float  y 
)
inline

Definition at line 66 of file GlobalHaloData.h.

References dMEx_, and dMEy_.

Referenced by GlobalHaloAlgo::Calculate().

66  {
67  dMEx_ = x;
68  dMEy_ = y;
69  }
void reco::GlobalHaloData::SetMETOverSumEt ( float  x)
inline

Definition at line 65 of file GlobalHaloData.h.

References METOverSumEt_.

Referenced by GlobalHaloAlgo::Calculate().

void reco::GlobalHaloData::SetSegmentIsEBCaloMatched ( bool  b)
inline

Definition at line 73 of file GlobalHaloData.h.

References b, and segmentisEBcalomatched.

Referenced by GlobalHaloAlgo::Calculate().

double b
Definition: hdecay.h:118
void reco::GlobalHaloData::SetSegmentIsEECaloMatched ( bool  b)
inline

Definition at line 74 of file GlobalHaloData.h.

References b, and segmentisEEcalomatched.

Referenced by GlobalHaloAlgo::Calculate().

double b
Definition: hdecay.h:118
void reco::GlobalHaloData::SetSegmentIsHBCaloMatched ( bool  b)
inline

Definition at line 71 of file GlobalHaloData.h.

References b, and segmentisHBcalomatched.

Referenced by GlobalHaloAlgo::Calculate().

double b
Definition: hdecay.h:118
void reco::GlobalHaloData::SetSegmentIsHECaloMatched ( bool  b)
inline

Definition at line 72 of file GlobalHaloData.h.

References b, and segmentisHEcalomatched.

Referenced by GlobalHaloAlgo::Calculate().

double b
Definition: hdecay.h:118

Member Data Documentation

float reco::GlobalHaloData::dMEx_
private

Definition at line 82 of file GlobalHaloData.h.

Referenced by DeltaMEx(), GetCorrectedCaloMET(), GlobalHaloData(), and SetMETCorrections().

float reco::GlobalHaloData::dMEy_
private

Definition at line 83 of file GlobalHaloData.h.

Referenced by DeltaMEy(), GetCorrectedCaloMET(), GlobalHaloData(), and SetMETCorrections().

float reco::GlobalHaloData::dSumEt_
private

Definition at line 84 of file GlobalHaloData.h.

Referenced by DeltaSumEt(), GetCorrectedCaloMET(), and GlobalHaloData().

edm::RefVector<EcalRecHitCollection> reco::GlobalHaloData::ecalebrhRefs
private

Definition at line 92 of file GlobalHaloData.h.

Referenced by GetEBRechits().

edm::RefVector<EcalRecHitCollection> reco::GlobalHaloData::ecaleerhRefs
private

Definition at line 93 of file GlobalHaloData.h.

Referenced by GetEERechits().

std::vector<PhiWedge> reco::GlobalHaloData::EcalPhiWedges
private

Definition at line 87 of file GlobalHaloData.h.

Referenced by GetMatchedEcalPhiWedges().

bool reco::GlobalHaloData::halopatternfoundEB
private

Definition at line 90 of file GlobalHaloData.h.

Referenced by GetHaloPatternFoundEB(), GlobalHaloData(), and SetHaloPatternFoundEB().

bool reco::GlobalHaloData::halopatternfoundEE
private

Definition at line 90 of file GlobalHaloData.h.

Referenced by GetHaloPatternFoundEE(), GlobalHaloData(), and SetHaloPatternFoundEE().

bool reco::GlobalHaloData::halopatternfoundHB
private

Definition at line 90 of file GlobalHaloData.h.

Referenced by GetHaloPatternFoundHB(), GlobalHaloData(), and SetHaloPatternFoundHB().

bool reco::GlobalHaloData::halopatternfoundHE
private

Definition at line 90 of file GlobalHaloData.h.

Referenced by GetHaloPatternFoundHE(), GlobalHaloData(), and SetHaloPatternFoundHE().

edm::RefVector<HBHERecHitCollection> reco::GlobalHaloData::hbherhRefs
private

Definition at line 94 of file GlobalHaloData.h.

Referenced by GetHBHERechits().

std::vector<PhiWedge> reco::GlobalHaloData::HcalPhiWedges
private

Definition at line 86 of file GlobalHaloData.h.

Referenced by GetMatchedHcalPhiWedges().

float reco::GlobalHaloData::METOverSumEt_
private

Definition at line 81 of file GlobalHaloData.h.

Referenced by GlobalHaloData(), METOverSumEt(), and SetMETOverSumEt().

bool reco::GlobalHaloData::segmentisEBcalomatched
private
bool reco::GlobalHaloData::segmentisEEcalomatched
private
bool reco::GlobalHaloData::segmentisHBcalomatched
private
bool reco::GlobalHaloData::segmentisHEcalomatched
private