CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 hasMuonRef () const
 
bool hasRpcInfo () const
 
bool hasTrackIsoRef () const
 
bool hasTrackRef () const
 
 HSCParticle ()
 
reco::MuonRef muonRef () const
 
float p () const
 
float pt () const
 
const RPCBetaMeasurementrpc () 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_
 

Detailed Description

Definition at line 48 of file HSCParticle.h.

Constructor & Destructor Documentation

susybsm::HSCParticle::HSCParticle ( )
inline

Definition at line 52 of file HSCParticle.h.

52 { }

Member Function Documentation

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

Definition at line 73 of file HSCParticle.h.

References caloInfoRef_.

73 { return caloInfoRef_; }
HSCPCaloInfoRef caloInfoRef_
Definition: HSCParticle.h:85
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(), and CandidateSelector::isSelected().

59 { return caloInfoRef_.isNonnull(); }
HSCPCaloInfoRef caloInfoRef_
Definition: HSCParticle.h:85
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:248
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 BetaCalculatorRPC::addInfoToCandidate(), HSCPTreeBuilder::filter(), CandidateSelector::isSelected(), p(), pt(), and type().

55 { return muonRef_.isNonnull(); }
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:248
reco::MuonRef muonRef_
Definition: HSCParticle.h:84
bool susybsm::HSCParticle::hasRpcInfo ( ) const
inline

Definition at line 58 of file HSCParticle.h.

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

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

58 { return rpc_.beta!=-9999; }
RPCBetaMeasurement rpc_
Definition: HSCParticle.h:87
bool susybsm::HSCParticle::hasTrackIsoRef ( ) const
inline

Definition at line 57 of file HSCParticle.h.

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

57 { return trackIsoRef_.isNonnull(); }
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:248
reco::TrackRef trackIsoRef_
Definition: HSCParticle.h:83
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 BetaCalculatorECAL::addInfoToCandidate(), HSCPTreeBuilder::filter(), CandidateSelector::isSelected(), p(), pt(), and type().

56 { return trackRef_.isNonnull(); }
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:248
reco::TrackRef trackRef_
Definition: HSCParticle.h:82
reco::MuonRef susybsm::HSCParticle::muonRef ( ) const
inline

Definition at line 72 of file HSCParticle.h.

References muonRef_.

Referenced by BetaCalculatorRPC::addInfoToCandidate(), HSCPTreeBuilder::filter(), CandidateSelector::isSelected(), p(), pt(), and type().

72 { return muonRef_; }
reco::MuonRef muonRef_
Definition: HSCParticle.h:84
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().

14  {
15  if( hasMuonRef() && muonRef()->combinedMuon() .isNonnull()){ return muonRef()->combinedMuon() ->p();
16  }else if(hasMuonRef() && muonRef()->innerTrack() .isNonnull()){ return muonRef()->innerTrack() ->p();
17  }else if(hasMuonRef() && muonRef()->standAloneMuon().isNonnull()){ return muonRef()->standAloneMuon()->p();
18  }else if(hasTrackRef()&& trackRef() .isNonnull()){ return trackRef() ->p();
19  }else return 0.0f;
20 }
bool hasTrackRef() const
Definition: HSCParticle.h:56
reco::MuonRef muonRef() const
Definition: HSCParticle.h:72
reco::TrackRef trackRef() const
Definition: HSCParticle.h:70
bool hasMuonRef() const
Definition: HSCParticle.h:55
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().

22  {
23  if( hasMuonRef() && muonRef()->combinedMuon() .isNonnull()){ return muonRef()->combinedMuon() ->pt();
24  }else if(hasMuonRef() && muonRef()->innerTrack() .isNonnull()){ return muonRef()->innerTrack() ->pt();
25  }else if(hasMuonRef() && muonRef()->standAloneMuon().isNonnull()){ return muonRef()->standAloneMuon()->pt();
26  }else if(hasTrackRef()&& trackRef() .isNonnull()){ return trackRef() ->pt();
27  }else return 0.0f;
28 }
bool hasTrackRef() const
Definition: HSCParticle.h:56
reco::MuonRef muonRef() const
Definition: HSCParticle.h:72
reco::TrackRef trackRef() const
Definition: HSCParticle.h:70
bool hasMuonRef() const
Definition: HSCParticle.h:55
const RPCBetaMeasurement& susybsm::HSCParticle::rpc ( ) const
inline

Definition at line 74 of file HSCParticle.h.

References rpc_.

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

74 { return rpc_; }
RPCBetaMeasurement rpc_
Definition: HSCParticle.h:87
void susybsm::HSCParticle::setCaloInfo ( const HSCPCaloInfoRef data)
inline

Definition at line 66 of file HSCParticle.h.

References caloInfoRef_, and runTheMatrix::data.

66 {caloInfoRef_ = data;}
HSCPCaloInfoRef caloInfoRef_
Definition: HSCParticle.h:85
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().

62 {muonRef_ = data;}
reco::MuonRef muonRef_
Definition: HSCParticle.h:84
void susybsm::HSCParticle::setRpc ( const RPCBetaMeasurement data)
inline

Definition at line 65 of file HSCParticle.h.

References runTheMatrix::data, and rpc_.

Referenced by BetaCalculatorRPC::addInfoToCandidate().

65 {rpc_ = data;}
RPCBetaMeasurement rpc_
Definition: HSCParticle.h:87
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().

63 {trackRef_ = data;}
reco::TrackRef trackRef_
Definition: HSCParticle.h:82
void susybsm::HSCParticle::setTrackIso ( const reco::TrackRef data)
inline

Definition at line 64 of file HSCParticle.h.

References runTheMatrix::data, and trackIsoRef_.

64 {trackIsoRef_ = data;}
reco::TrackRef trackIsoRef_
Definition: HSCParticle.h:83
reco::TrackRef susybsm::HSCParticle::trackIsoRef ( ) const
inline

Definition at line 71 of file HSCParticle.h.

References trackIsoRef_.

71 { return trackIsoRef_; }
reco::TrackRef trackIsoRef_
Definition: HSCParticle.h:83
reco::TrackRef susybsm::HSCParticle::trackRef ( ) const
inline

Definition at line 70 of file HSCParticle.h.

References trackRef_.

Referenced by BetaCalculatorECAL::addInfoToCandidate(), HSCPTreeBuilder::filter(), CandidateSelector::isSelected(), p(), and pt().

70 { return trackRef_; }
reco::TrackRef trackRef_
Definition: HSCParticle.h:82
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(), python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputCommands(), python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputCommands(), python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), and python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties().

Member Data Documentation

HSCPCaloInfoRef susybsm::HSCParticle::caloInfoRef_
private

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().

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

Definition at line 83 of file HSCParticle.h.

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

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

Definition at line 82 of file HSCParticle.h.

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