#include <HSCParticle.h>
Public Member Functions | |
HSCPCaloInfoRef | caloInfoRef () const |
bool | hasCaloInfo () const |
bool | hasMuonRef () const |
bool | hasRpcInfo () const |
bool | hasTrackIsoRef () const |
bool | hasTrackRef () const |
HSCParticle () | |
reco::MuonRef | muonRef () const |
float | p () const |
float | pt () const |
const RPCBetaMeasurement & | rpc () const |
void | setCaloInfo (const HSCPCaloInfoRef &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 | muonRef_ |
RPCBetaMeasurement | rpc_ |
reco::TrackRef | trackIsoRef_ |
reco::TrackRef | trackRef_ |
Definition at line 48 of file HSCParticle.h.
susybsm::HSCParticle::HSCParticle | ( | ) | [inline] |
Definition at line 52 of file HSCParticle.h.
{ }
HSCPCaloInfoRef susybsm::HSCParticle::caloInfoRef | ( | ) | const [inline] |
bool susybsm::HSCParticle::hasCaloInfo | ( | ) | const [inline] |
Definition at line 59 of file HSCParticle.h.
References caloInfoRef_, and edm::Ref< C, T, F >::isNonnull().
Referenced by HSCPTreeBuilder::filter().
{ return caloInfoRef_.isNonnull(); }
bool susybsm::HSCParticle::hasMuonRef | ( | ) | const [inline] |
Definition at line 55 of file HSCParticle.h.
References edm::Ref< C, T, F >::isNonnull(), and muonRef_.
Referenced by HSCPTreeBuilder::filter(), p(), pt(), and type().
bool susybsm::HSCParticle::hasRpcInfo | ( | ) | const [inline] |
Definition at line 58 of file HSCParticle.h.
References susybsm::RPCBetaMeasurement::beta, and rpc_.
Referenced by HSCPTreeBuilder::filter().
{ return rpc_.beta!=-9999; }
bool susybsm::HSCParticle::hasTrackIsoRef | ( | ) | const [inline] |
Definition at line 57 of file HSCParticle.h.
References edm::Ref< C, T, F >::isNonnull(), and trackIsoRef_.
{ return trackIsoRef_.isNonnull(); }
bool susybsm::HSCParticle::hasTrackRef | ( | ) | const [inline] |
Definition at line 56 of file HSCParticle.h.
References edm::Ref< C, T, F >::isNonnull(), and trackRef_.
Referenced by HSCPTreeBuilder::filter(), p(), pt(), and type().
reco::MuonRef susybsm::HSCParticle::muonRef | ( | ) | const [inline] |
Definition at line 72 of file HSCParticle.h.
References muonRef_.
Referenced by HSCPTreeBuilder::filter(), p(), pt(), and type().
{ return muonRef_; }
float susybsm::HSCParticle::p | ( | ) | const |
Definition at line 14 of file HSCParticle.cc.
References hasMuonRef(), hasTrackRef(), susybsm::HSCParticleType::innerTrack, muonRef(), susybsm::HSCParticleType::standAloneMuon, and trackRef().
{ if( hasMuonRef() && muonRef()->combinedMuon() .isNonnull()){ return muonRef()->combinedMuon() ->p(); }else if(hasMuonRef() && muonRef()->innerTrack() .isNonnull()){ return muonRef()->innerTrack() ->p(); }else if(hasMuonRef() && muonRef()->standAloneMuon().isNonnull()){ return muonRef()->standAloneMuon()->p(); }else if(hasTrackRef()&& trackRef() .isNonnull()){ return trackRef() ->p(); }else return 0.0f; }
float susybsm::HSCParticle::pt | ( | ) | const |
Definition at line 22 of file HSCParticle.cc.
References hasMuonRef(), hasTrackRef(), susybsm::HSCParticleType::innerTrack, muonRef(), susybsm::HSCParticleType::standAloneMuon, and trackRef().
{ if( hasMuonRef() && muonRef()->combinedMuon() .isNonnull()){ return muonRef()->combinedMuon() ->pt(); }else if(hasMuonRef() && muonRef()->innerTrack() .isNonnull()){ return muonRef()->innerTrack() ->pt(); }else if(hasMuonRef() && muonRef()->standAloneMuon().isNonnull()){ return muonRef()->standAloneMuon()->pt(); }else if(hasTrackRef()&& trackRef() .isNonnull()){ return trackRef() ->pt(); }else return 0.0f; }
const RPCBetaMeasurement& susybsm::HSCParticle::rpc | ( | ) | const [inline] |
Definition at line 74 of file HSCParticle.h.
References rpc_.
Referenced by HSCPTreeBuilder::filter().
{ return rpc_; }
void susybsm::HSCParticle::setCaloInfo | ( | const HSCPCaloInfoRef & | data | ) | [inline] |
Definition at line 66 of file HSCParticle.h.
References caloInfoRef_, and runTheMatrix::data.
{caloInfoRef_ = data;}
void susybsm::HSCParticle::setMuon | ( | const reco::MuonRef & | data | ) | [inline] |
Definition at line 62 of file HSCParticle.h.
References runTheMatrix::data, and muonRef_.
Referenced by HSCParticleProducer::getHSCPSeedCollection().
void susybsm::HSCParticle::setRpc | ( | const RPCBetaMeasurement & | data | ) | [inline] |
Definition at line 65 of file HSCParticle.h.
References runTheMatrix::data, and rpc_.
void susybsm::HSCParticle::setTrack | ( | const reco::TrackRef & | data | ) | [inline] |
Definition at line 63 of file HSCParticle.h.
References runTheMatrix::data, and trackRef_.
Referenced by HSCParticleProducer::getHSCPSeedCollection().
void susybsm::HSCParticle::setTrackIso | ( | const reco::TrackRef & | data | ) | [inline] |
Definition at line 64 of file HSCParticle.h.
References runTheMatrix::data, and trackIsoRef_.
{trackIsoRef_ = data;}
reco::TrackRef susybsm::HSCParticle::trackIsoRef | ( | ) | const [inline] |
reco::TrackRef susybsm::HSCParticle::trackRef | ( | ) | const [inline] |
Definition at line 70 of file HSCParticle.h.
References trackRef_.
Referenced by HSCPTreeBuilder::filter(), p(), and pt().
{ return trackRef_; }
int susybsm::HSCParticle::type | ( | ) | const |
Definition at line 5 of file HSCParticle.cc.
References susybsm::HSCParticleType::globalMuon, hasMuonRef(), hasTrackRef(), susybsm::HSCParticleType::innerTrack, susybsm::HSCParticleType::matchedStandAloneMuon, muonRef(), susybsm::HSCParticleType::standAloneMuon, susybsm::HSCParticleType::trackerMuon, and susybsm::HSCParticleType::unknown.
Referenced by HSCPTreeBuilder::filter().
{ if ( hasTrackRef() && !hasMuonRef()){ return HSCParticleType::innerTrack; }else if(!hasTrackRef() && hasMuonRef()){ return HSCParticleType::standAloneMuon; }else if( hasTrackRef() && hasMuonRef() && muonRef()->isGlobalMuon()){ return HSCParticleType::globalMuon; }else if( hasTrackRef() && hasMuonRef() && muonRef()->isStandAloneMuon()){ return HSCParticleType::matchedStandAloneMuon; }else if( hasTrackRef() && hasMuonRef() && muonRef()->isTrackerMuon()){ return HSCParticleType::trackerMuon; }else return HSCParticleType::unknown; }
Definition at line 85 of file HSCParticle.h.
Referenced by caloInfoRef(), hasCaloInfo(), and setCaloInfo().
reco::MuonRef susybsm::HSCParticle::muonRef_ [private] |
Definition at line 84 of file HSCParticle.h.
Referenced by hasMuonRef(), muonRef(), and setMuon().
RPCBetaMeasurement susybsm::HSCParticle::rpc_ [private] |
Definition at line 87 of file HSCParticle.h.
Referenced by hasRpcInfo(), rpc(), and setRpc().
Definition at line 83 of file HSCParticle.h.
Referenced by hasTrackIsoRef(), setTrackIso(), and trackIsoRef().
Definition at line 82 of file HSCParticle.h.
Referenced by hasTrackRef(), setTrack(), and trackRef().