CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
susybsm::HSCParticle Class Reference

#include <HSCParticle.h>

Public Member Functions

HSCPCaloInfoRef caloInfoRef () const
 
bool hasCaloInfo () const
 
bool hasMTMuonRef () const
 
bool hasMuonRef () const
 
bool hasRpcInfo () const
 
bool hasTrackIsoRef () const
 
bool hasTrackRef () const
 
 HSCParticle ()
 
reco::MuonRef MTMuonRef () const
 
reco::MuonRef muonRef () const
 
float p () const
 
float pt () const
 
const RPCBetaMeasurementrpc () const
 
void setCaloInfo (const HSCPCaloInfoRef &data)
 
void setMTMuon (const reco::MuonRef &data)
 
void setMuon (const reco::MuonRef &data)
 
void setRpc (const RPCBetaMeasurement &data)
 
void setTrack (const reco::TrackRef &data)
 
void setTrackIso (const reco::TrackRef &data)
 
reco::TrackRef trackIsoRef () const
 
reco::TrackRef trackRef () const
 
int type () const
 

Private Attributes

HSCPCaloInfoRef caloInfoRef_
 
reco::MuonRef MTMuonRef_
 
reco::MuonRef muonRef_
 
RPCBetaMeasurement rpc_
 
reco::TrackRef trackIsoRef_
 
reco::TrackRef trackRef_
 

Detailed Description

Definition at line 42 of file HSCParticle.h.

Constructor & Destructor Documentation

◆ HSCParticle()

susybsm::HSCParticle::HSCParticle ( )
inline

Definition at line 45 of file HSCParticle.h.

45 {}

Member Function Documentation

◆ caloInfoRef()

HSCPCaloInfoRef susybsm::HSCParticle::caloInfoRef ( ) const
inline

Definition at line 68 of file HSCParticle.h.

68 { return caloInfoRef_; }

References caloInfoRef_.

◆ hasCaloInfo()

bool susybsm::HSCParticle::hasCaloInfo ( ) const
inline

Definition at line 53 of file HSCParticle.h.

53 { return caloInfoRef_.isNonnull(); }

References caloInfoRef_, and edm::Ref< C, T, F >::isNonnull().

Referenced by HSCPTreeBuilder::filter(), and CandidateSelector::isSelected().

◆ hasMTMuonRef()

bool susybsm::HSCParticle::hasMTMuonRef ( ) const
inline

Definition at line 49 of file HSCParticle.h.

49 { return MTMuonRef_.isNonnull(); }

References edm::Ref< C, T, F >::isNonnull(), and MTMuonRef_.

Referenced by CandidateSelector::isSelected().

◆ hasMuonRef()

bool susybsm::HSCParticle::hasMuonRef ( ) const
inline

◆ hasRpcInfo()

bool susybsm::HSCParticle::hasRpcInfo ( ) const
inline

Definition at line 52 of file HSCParticle.h.

52 { return rpc_.beta != -9999; }

References susybsm::RPCBetaMeasurement::beta, and rpc_.

Referenced by HSCPTreeBuilder::filter(), and CandidateSelector::isSelected().

◆ hasTrackIsoRef()

bool susybsm::HSCParticle::hasTrackIsoRef ( ) const
inline

Definition at line 51 of file HSCParticle.h.

51 { return trackIsoRef_.isNonnull(); }

References edm::Ref< C, T, F >::isNonnull(), and trackIsoRef_.

◆ hasTrackRef()

bool susybsm::HSCParticle::hasTrackRef ( ) const
inline

◆ MTMuonRef()

reco::MuonRef susybsm::HSCParticle::MTMuonRef ( ) const
inline

Definition at line 67 of file HSCParticle.h.

67 { return MTMuonRef_; }

References MTMuonRef_.

Referenced by CandidateSelector::isSelected().

◆ muonRef()

reco::MuonRef susybsm::HSCParticle::muonRef ( ) const
inline

◆ p()

float susybsm::HSCParticle::p ( ) const

Definition at line 20 of file HSCParticle.cc.

20  {
21  if (hasMuonRef() && muonRef()->combinedMuon().isNonnull()) {
22  return muonRef()->combinedMuon()->p();
23  } else if (hasMuonRef() && muonRef()->innerTrack().isNonnull()) {
24  return muonRef()->innerTrack()->p();
25  } else if (hasMuonRef() && muonRef()->standAloneMuon().isNonnull()) {
26  return muonRef()->standAloneMuon()->p();
27  } else if (hasTrackRef() && trackRef().isNonnull()) {
28  return trackRef()->p();
29  } else
30  return 0.0f;
31  }

References hasMuonRef(), hasTrackRef(), susybsm::HSCParticleType::innerTrack, muonRef(), susybsm::HSCParticleType::standAloneMuon, and trackRef().

Referenced by Electron.Electron::ptErr().

◆ pt()

float susybsm::HSCParticle::pt ( ) const

◆ rpc()

const RPCBetaMeasurement& susybsm::HSCParticle::rpc ( ) const
inline

Definition at line 69 of file HSCParticle.h.

69 { return rpc_; }

References rpc_.

Referenced by HSCPTreeBuilder::filter(), and CandidateSelector::isSelected().

◆ setCaloInfo()

void susybsm::HSCParticle::setCaloInfo ( const HSCPCaloInfoRef data)
inline

Definition at line 61 of file HSCParticle.h.

61 { caloInfoRef_ = data; }

References caloInfoRef_, and data.

◆ setMTMuon()

void susybsm::HSCParticle::setMTMuon ( const reco::MuonRef data)
inline

Definition at line 57 of file HSCParticle.h.

57 { MTMuonRef_ = data; }

References data, and MTMuonRef_.

Referenced by HSCParticleProducer::getHSCPSeedCollection().

◆ setMuon()

void susybsm::HSCParticle::setMuon ( const reco::MuonRef data)
inline

Definition at line 56 of file HSCParticle.h.

56 { muonRef_ = data; }

References data, and muonRef_.

Referenced by HSCParticleProducer::getHSCPSeedCollection().

◆ setRpc()

void susybsm::HSCParticle::setRpc ( const RPCBetaMeasurement data)
inline

Definition at line 60 of file HSCParticle.h.

60 { rpc_ = data; }

References data, and rpc_.

Referenced by BetaCalculatorRPC::addInfoToCandidate().

◆ setTrack()

void susybsm::HSCParticle::setTrack ( const reco::TrackRef data)
inline

Definition at line 58 of file HSCParticle.h.

58 { trackRef_ = data; }

References data, and trackRef_.

Referenced by HSCParticleProducer::getHSCPSeedCollection().

◆ setTrackIso()

void susybsm::HSCParticle::setTrackIso ( const reco::TrackRef data)
inline

Definition at line 59 of file HSCParticle.h.

59 { trackIsoRef_ = data; }

References data, and trackIsoRef_.

◆ trackIsoRef()

reco::TrackRef susybsm::HSCParticle::trackIsoRef ( ) const
inline

Definition at line 65 of file HSCParticle.h.

65 { return trackIsoRef_; }

References trackIsoRef_.

◆ trackRef()

reco::TrackRef susybsm::HSCParticle::trackRef ( ) const
inline

◆ type()

int susybsm::HSCParticle::type ( ) const

Member Data Documentation

◆ caloInfoRef_

HSCPCaloInfoRef susybsm::HSCParticle::caloInfoRef_
private

Definition at line 81 of file HSCParticle.h.

Referenced by caloInfoRef(), hasCaloInfo(), and setCaloInfo().

◆ MTMuonRef_

reco::MuonRef susybsm::HSCParticle::MTMuonRef_
private

Definition at line 80 of file HSCParticle.h.

Referenced by hasMTMuonRef(), MTMuonRef(), and setMTMuon().

◆ muonRef_

reco::MuonRef susybsm::HSCParticle::muonRef_
private

Definition at line 79 of file HSCParticle.h.

Referenced by hasMuonRef(), muonRef(), and setMuon().

◆ rpc_

RPCBetaMeasurement susybsm::HSCParticle::rpc_
private

Definition at line 83 of file HSCParticle.h.

Referenced by hasRpcInfo(), rpc(), and setRpc().

◆ trackIsoRef_

reco::TrackRef susybsm::HSCParticle::trackIsoRef_
private

Definition at line 78 of file HSCParticle.h.

Referenced by hasTrackIsoRef(), setTrackIso(), and trackIsoRef().

◆ trackRef_

reco::TrackRef susybsm::HSCParticle::trackRef_
private

Definition at line 77 of file HSCParticle.h.

Referenced by hasTrackRef(), setTrack(), and trackRef().

susybsm::HSCParticle::caloInfoRef_
HSCPCaloInfoRef caloInfoRef_
Definition: HSCParticle.h:81
susybsm::HSCParticle::trackRef_
reco::TrackRef trackRef_
Definition: HSCParticle.h:77
susybsm::HSCParticle::hasMuonRef
bool hasMuonRef() const
Definition: HSCParticle.h:48
susybsm::RPCBetaMeasurement::beta
float beta
Definition: HSCParticle.h:34
susybsm::HSCParticleType::trackerMuon
Definition: HSCParticle.h:20
susybsm::HSCParticle::trackIsoRef_
reco::TrackRef trackIsoRef_
Definition: HSCParticle.h:78
susybsm::HSCParticleType::matchedStandAloneMuon
Definition: HSCParticle.h:20
susybsm::HSCParticle::hasTrackRef
bool hasTrackRef() const
Definition: HSCParticle.h:50
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
susybsm::HSCParticle::muonRef
reco::MuonRef muonRef() const
Definition: HSCParticle.h:66
susybsm::HSCParticleType::innerTrack
Definition: HSCParticle.h:20
susybsm::HSCParticle::MTMuonRef_
reco::MuonRef MTMuonRef_
Definition: HSCParticle.h:80
susybsm::HSCParticle::trackRef
reco::TrackRef trackRef() const
Definition: HSCParticle.h:64
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
susybsm::HSCParticle::rpc_
RPCBetaMeasurement rpc_
Definition: HSCParticle.h:83
susybsm::HSCParticleType::standAloneMuon
Definition: HSCParticle.h:20
susybsm::HSCParticle::muonRef_
reco::MuonRef muonRef_
Definition: HSCParticle.h:79
susybsm::HSCParticleType::globalMuon
Definition: HSCParticle.h:20
susybsm::HSCParticleType::unknown
Definition: HSCParticle.h:20