CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Attributes | Friends

pat::Muon Class Reference

Analysis-level muon class. More...

#include <DataFormats/PatCandidates/interface/Muon.h>

Inheritance diagram for pat::Muon:
pat::Lepton< reco::Muon > pat::PATObject< reco::Muon > reco::Muon reco::RecoCandidate reco::LeafCandidate reco::Candidate

List of all members.

Public Types

typedef enum pat::Muon::IPTYPE IpType
enum  IPTYPE {
  None = 0, PV2D = 1, PV3D = 2, BS2D = 3,
  BS3D = 4
}

Public Member Functions

float caloIso () const
reco::MuonMETCorrectionData caloMETMuonCorrs () const
 muon MET corrections for caloMET; returns the muon correction struct if embedded during pat tuple production or an empty element
virtual Muonclone () const
 required reimplementation of the Candidate's clone method
reco::TrackRef combinedMuon () const
 reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon)
double dB (IpType type=None) const
reco::TrackRef dytTrack () const
 reference to Track reconstructed using DYT algorithm
float ecalIso () const
double edB (IpType type=None) const
void embedCaloMETMuonCorrs (const reco::MuonMETCorrectionData &t)
 embed the MuonMETCorrectionData for muon corrected caloMET
void embedCombinedMuon ()
 set reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon)
void embedDytMuon ()
 embed reference to the above dyt Track
void embedPFCandidate ()
 embed the IsolatedPFCandidate pointed to by pfCandidateRef_
void embedPickyMuon ()
 embed reference to the above picky Track
void embedStandAloneMuon ()
 set reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon)
void embedTcMETMuonCorrs (const reco::MuonMETCorrectionData &t)
 embed the MuonMETCorrectionData for tcMET
void embedTpfmsMuon ()
 embed reference to the above tpfms Track
void embedTrack ()
 set reference to Track reconstructed in the tracker only (reimplemented from reco::Muon)
reco::TrackRef globalTrack () const
 reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon)
float hcalIso () const
void initImpactParameters (void)
reco::TrackRef innerTrack () const
 reference to Track reconstructed in the tracker only (reimplemented from reco::Muon)
bool isGood (const std::string &name) const
 Muon (const edm::Ptr< reco::Muon > &aMuonRef)
 constructor from a Ptr to a reco muon
 Muon (const reco::Muon &aMuon)
 constructor from a reco muon
 Muon (const edm::RefToBase< reco::Muon > &aMuonRef)
 constructor from a RefToBase to a reco muon (to be superseded by Ptr counterpart)
 Muon ()
 default constructor
bool muonID (const std::string &name) const
double normChi2 () const
 Norm chi2 gives the normalized chi2 of the global track.
size_t numberOfSourceCandidatePtrs () const
 get the number of non-null PF candidates
unsigned int numberOfValidHits () const
 numberOfValidHits returns the number of valid hits on the global track.
reco::TrackRef outerTrack () const
 reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon)
reco::PFCandidateRef pfCandidateRef () const
 reference to the source IsolatedPFCandidates
reco::TrackRef pickyMuon () const
 Deprecated accessors to call the corresponding above two functions; no dytMuon since this naming is deprecated.
reco::TrackRef pickyTrack () const
 reference to Track reconstructed using hits in the tracker + "good" muon hits (reimplemented from reco::Muon)
double segmentCompatibility (reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration) const
 Returns the segment compatibility, using muon::segmentCompatibility (DataFormats/MuonReco/interface/MuonSelectors.h)
void setDB (double dB, double edB, IpType type=None)
void setNormChi2 (double normChi2)
void setNumberOfValidHits (unsigned int numberOfValidHits)
void setPFCandidateRef (const reco::PFCandidateRef &ref)
 add a reference to the source IsolatedPFCandidate
reco::CandidatePtr sourceCandidatePtr (size_type i) const
 get the candidate pointer with index i
reco::TrackRef standAloneMuon () const
 reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon)
reco::MuonMETCorrectionData tcMETMuonCorrs () const
 muon MET corrections for tcMET; returns the muon correction struct if embedded during pat tuple production or an empty element
reco::TrackRef tpfmsMuon () const
reco::TrackRef tpfmsTrack () const
 reference to Track reconstructed using hits in the tracker + info from the first muon station that has hits (reimplemented from reco::Muon)
reco::TrackRef track () const
 reference to Track reconstructed in the tracker only (reimplemented from reco::Muon)
float trackIso () const
virtual ~Muon ()
 destructor

Protected Attributes

bool cachedDB_
 has the normalized chi2 been cached?
std::vector< bool > cachedIP_
bool cachedNormChi2_
bool cachedNumberOfValidHits_
 has the dB been cached?
std::vector
< reco::MuonMETCorrectionData
caloMETMuonCorrs_
std::vector< reco::TrackcombinedMuon_
double dB_
 globalTrack->chi2() / globalTrack->ndof()
std::vector< reco::TrackdytMuon_
double edB_
 dB and edB are the impact parameter at the primary vertex,
std::vector< double > eip_
bool embeddedCaloMETMuonCorrs_
 muon MET corrections for caloMET
bool embeddedCombinedMuon_
 track of combined fit
bool embeddedDytMuon_
bool embeddedPFCandidate_
 true if the IsolatedPFCandidate is embedded
bool embeddedPickyMuon_
bool embeddedStandAloneMuon_
 track of muon system
bool embeddedTCMETMuonCorrs_
 muon MET corrections for tcMET
bool embeddedTpfmsMuon_
bool embeddedTrack_
 tracker of inner track detector
std::vector< double > ip_
double normChi2_
 has the numberOfValidHits been cached?
unsigned int numberOfValidHits_
reco::PFCandidateCollection pfCandidate_
reco::PFCandidateRef pfCandidateRef_
std::vector< reco::TrackpickyMuon_
std::vector< reco::TrackstandAloneMuon_
std::vector
< reco::MuonMETCorrectionData
tcMETMuonCorrs_
std::vector< reco::TracktpfmsMuon_
std::vector< reco::Tracktrack_

Friends

std::ostream & reco::operator<< (std::ostream &out, const Muon &obj)
 pipe operator (introduced to use pat::Muon with PFTopProjectors)

Detailed Description

Analysis-level muon class.

pat::Muon implements the analysis-level muon class within the 'pat' namespace.

Please post comments and questions to the Physics Tools hypernews: https://hypernews.cern.ch/HyperNews/CMS/get/physTools.html

Author:
Steven Lowette, Giovanni Petrucciani, Frederic Ronga, Colin Bernet
Version:
Id:
Muon.h,v 1.37 2011/09/21 03:40:17 tucker Exp

Definition at line 51 of file Muon.h.


Member Typedef Documentation

Muon High Level Selection The user can choose to cache this info so they can drop the global tracks. If the global track is present these should not be set, but the "getters" will return the appropriate value. The exception is dB which requires the beamline


Member Enumeration Documentation

Muon High Level Selection The user can choose to cache this info so they can drop the global tracks. If the global track is present these should not be set, but the "getters" will return the appropriate value. The exception is dB which requires the beamline

Enumerator:
None 
PV2D 
PV3D 
BS2D 
BS3D 

Definition at line 187 of file Muon.h.

          {
            None = 0, PV2D = 1, PV3D = 2, BS2D = 3, BS3D = 4
          } IpType; 

Constructor & Destructor Documentation

Muon::Muon ( )

default constructor

Reimplemented from reco::Muon.

Definition at line 15 of file Muon.cc.

References initImpactParameters().

Referenced by clone().

Muon::Muon ( const reco::Muon aMuon)

constructor from a reco muon

constructor from reco::Muon

Definition at line 39 of file Muon.cc.

References initImpactParameters().

Muon::Muon ( const edm::RefToBase< reco::Muon > &  aMuonRef)

constructor from a RefToBase to a reco muon (to be superseded by Ptr counterpart)

constructor from ref to reco::Muon

Definition at line 63 of file Muon.cc.

References initImpactParameters().

Muon::Muon ( const edm::Ptr< reco::Muon > &  aMuonRef)

constructor from a Ptr to a reco muon

constructor from ref to reco::Muon

Definition at line 87 of file Muon.cc.

References initImpactParameters().

Muon::~Muon ( ) [virtual]

destructor

Definition at line 111 of file Muon.cc.

            {
}

Member Function Documentation

float pat::Muon::caloIso ( ) const [inline]

Overload of pat::Lepton::trackIso(); returns the sum of ecalIso() and hcalIso

Reimplemented from pat::Lepton< reco::Muon >.

Definition at line 159 of file Muon.h.

References ecalIso(), and hcalIso().

{ return ecalIso()+hcalIso(); }
reco::MuonMETCorrectionData pat::Muon::caloMETMuonCorrs ( ) const [inline]

muon MET corrections for caloMET; returns the muon correction struct if embedded during pat tuple production or an empty element

Definition at line 92 of file Muon.h.

References caloMETMuonCorrs_, and embeddedCaloMETMuonCorrs_.

virtual Muon* pat::Muon::clone ( void  ) const [inline, virtual]

required reimplementation of the Candidate's clone method

Reimplemented from pat::Lepton< reco::Muon >.

Definition at line 67 of file Muon.h.

References Muon().

{ return new Muon(*this); }
reco::TrackRef Muon::combinedMuon ( ) const [virtual]

reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon)

Reimplemented from reco::Muon.

Definition at line 162 of file Muon.cc.

References combinedMuon_, embeddedCombinedMuon_, and globalTrack().

Referenced by globalTrack().

                                      {
  if (embeddedCombinedMuon_) {
    return reco::TrackRef(&combinedMuon_, 0);
  } else {
    return reco::Muon::globalTrack();
  }
}
double Muon::dB ( IpType  type = None) const
reco::TrackRef Muon::dytTrack ( ) const [virtual]

reference to Track reconstructed using DYT algorithm

reference to Track reconstructed using hits in the tracker + info from the first muon station that has hits

Reimplemented from reco::Muon.

Definition at line 189 of file Muon.cc.

References dytMuon_, and embeddedDytMuon_.

Referenced by embedDytMuon().

                                  {
  if (embeddedDytMuon_) {
    return reco::TrackRef(&dytMuon_, 0);
  } else {
    return reco::Muon::dytTrack();
  }
}
float pat::Muon::ecalIso ( ) const [inline]
double Muon::edB ( IpType  type = None) const

Definition at line 358 of file Muon.cc.

References cachedDB_, cachedIP_, edB_, eip_, max(), None, and reco::Muon::type_.

Referenced by MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), setDB(), and MuonVPlusJetsIDSelectionFunctor::spring10Cuts().

                                   {

  // preserve old functionality exactly
  if (type_ == None){
    if ( cachedDB_ ) {
      return edB_;
    }
    else {
      return std::numeric_limits<double>::max();
    }
  }

  // more IP types (new)
  else if ( cachedIP_[type_] ) {
    return eip_[type_];
  } else {
    return std::numeric_limits<double>::max();
  }
}
void Muon::embedCaloMETMuonCorrs ( const reco::MuonMETCorrectionData t)

embed the MuonMETCorrectionData for muon corrected caloMET

Definition at line 245 of file Muon.cc.

References caloMETMuonCorrs_, and embeddedCaloMETMuonCorrs_.

Referenced by pat::PATMuonProducer::produce().

void Muon::embedCombinedMuon ( )

set reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon)

embed the Track reconstructed in both tracked and muon detector

Definition at line 236 of file Muon.cc.

References combinedMuon_, embeddedCombinedMuon_, and reco::Muon::globalTrack().

Referenced by pat::PATMuonProducer::fillMuon().

                             {
  combinedMuon_.clear();
  if (reco::Muon::globalTrack().isNonnull()) {
      combinedMuon_.push_back(*reco::Muon::globalTrack());
      embeddedCombinedMuon_ = true;
  }
}
void Muon::embedDytMuon ( )

embed reference to the above dyt Track

embed the dyt Track

Definition at line 279 of file Muon.cc.

References dytMuon_, dytTrack(), embeddedDytMuon_, and edm::Ref< C, T, F >::isNonnull().

Referenced by pat::PATMuonProducer::fillMuon().

                        {
  dytMuon_.clear();
  reco::TrackRef tk = reco::Muon::dytTrack();
  if (tk.isNonnull()) {
    dytMuon_.push_back(*tk);
    embeddedDytMuon_ = true;
  }
}
void Muon::embedPFCandidate ( )

embed the IsolatedPFCandidate pointed to by pfCandidateRef_

Definition at line 289 of file Muon.cc.

References embeddedPFCandidate_, edm::Ref< C, T, F >::isAvailable(), edm::Ref< C, T, F >::isNonnull(), pfCandidate_, and pfCandidateRef_.

Referenced by pat::PATMuonProducer::produce().

void Muon::embedPickyMuon ( )

embed reference to the above picky Track

embed the picky Track

Definition at line 259 of file Muon.cc.

References embeddedPickyMuon_, edm::Ref< C, T, F >::isNonnull(), pickyMuon_, and pickyTrack().

Referenced by pat::PATMuonProducer::fillMuon().

                          {
  pickyMuon_.clear();
  reco::TrackRef tk = reco::Muon::pickyTrack();
  if (tk.isNonnull()) {
    pickyMuon_.push_back(*tk);
    embeddedPickyMuon_ = true;
  }
}
void Muon::embedStandAloneMuon ( )

set reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon)

embed the Track reconstructed in the muon detector only

Definition at line 226 of file Muon.cc.

References embeddedStandAloneMuon_, reco::Muon::outerTrack(), and standAloneMuon_.

Referenced by pat::PATMuonProducer::fillMuon().

                               {
  standAloneMuon_.clear();
  if (reco::Muon::outerTrack().isNonnull()) {
      standAloneMuon_.push_back(*reco::Muon::outerTrack());
      embeddedStandAloneMuon_ = true;
  }
}
void Muon::embedTcMETMuonCorrs ( const reco::MuonMETCorrectionData t)

embed the MuonMETCorrectionData for tcMET

Definition at line 252 of file Muon.cc.

References embeddedTCMETMuonCorrs_, and tcMETMuonCorrs_.

Referenced by pat::PATMuonProducer::produce().

                                                                 {
  tcMETMuonCorrs_.clear();
  tcMETMuonCorrs_.push_back(t);
  embeddedTCMETMuonCorrs_ = true;
}
void Muon::embedTpfmsMuon ( )

embed reference to the above tpfms Track

embed the tpfms Track

Definition at line 269 of file Muon.cc.

References embeddedTpfmsMuon_, edm::Ref< C, T, F >::isNonnull(), tpfmsMuon_, and tpfmsTrack().

Referenced by pat::PATMuonProducer::fillMuon().

                          {
  tpfmsMuon_.clear();
  reco::TrackRef tk = reco::Muon::tpfmsTrack();
  if (tk.isNonnull()) {
    tpfmsMuon_.push_back(*tk);
    embeddedTpfmsMuon_ = true;
  }
}
void Muon::embedTrack ( )

set reference to Track reconstructed in the tracker only (reimplemented from reco::Muon)

embed the Track reconstructed in the tracker only

Definition at line 216 of file Muon.cc.

References embeddedTrack_, reco::Muon::innerTrack(), and track_.

Referenced by pat::PATMuonProducer::fillMuon().

                      {
  track_.clear();
  if (reco::Muon::innerTrack().isNonnull()) {
      track_.push_back(*reco::Muon::innerTrack());
      embeddedTrack_ = true;
  }
}
reco::TrackRef pat::Muon::globalTrack ( ) const [inline, virtual]
float pat::Muon::hcalIso ( ) const [inline]
void Muon::initImpactParameters ( void  )

Definition at line 132 of file Muon.cc.

References cachedIP_, eip_, and ip_.

Referenced by Muon().

                                {
  for (int i_ = 0; i_<5; ++i_){
    ip_.push_back(0.0);
    eip_.push_back(0.0);
    cachedIP_.push_back(false);
  }
}
reco::TrackRef pat::Muon::innerTrack ( ) const [inline, virtual]
bool pat::Muon::isGood ( const std::string &  name) const [inline]

wrapper for the muonID method to maintain backwards compatibility with when the reco::Muon::isGood method existed

Definition at line 140 of file Muon.h.

References muonID().

{ return muonID(name); }
bool Muon::muonID ( const std::string &  name) const

accessor for the various muon id algorithms currently defined in DataFormats/MuonReco/interface/MuonSelectors.h e.g. bool result = patmuon.muonID("TMLastStationLoose")

Definition at line 297 of file Muon.cc.

References muon::isGoodMuon(), and muon::selectionTypeFromString().

Referenced by isGood(), MuScleFit::selGlobalMuon(), MuScleFitMuonSelector::selGlobalMuon(), MuScleFitMuonSelector::selTrackerMuon(), and MuScleFit::selTrackerMuon().

double Muon::normChi2 ( ) const

Norm chi2 gives the normalized chi2 of the global track.

Norm chi2 gives the normalized chi2 of the global track. The user can choose to cache this info so they can drop the global track, or they can use the track itself if it is present in the event.

Definition at line 307 of file Muon.cc.

References cachedNormChi2_, globalTrack(), normChi2_, and lumiQTWidget::t.

Referenced by GlbMuQualityCutsAnalysis::analyze(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), ZToLLEdmNtupleDumper::produce(), setNormChi2(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), PFMuonSelector::spring11Cuts(), and MuonVPlusJetsIDSelectionFunctor::summer08Cuts().

                            {
  if ( cachedNormChi2_ ) {
    return normChi2_;
  } else {
    reco::TrackRef t = globalTrack();
    return t->chi2() / t->ndof();
  }
}
size_t pat::Muon::numberOfSourceCandidatePtrs ( ) const [inline, virtual]

get the number of non-null PF candidates

Reimplemented from reco::LeafCandidate.

Definition at line 127 of file Muon.h.

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

                                                 { 
        return pfCandidateRef_.isNonnull() ? 1 : 0;
      }
unsigned int Muon::numberOfValidHits ( ) const

numberOfValidHits returns the number of valid hits on the global track.

numberOfValidHits returns the number of valid hits on the global track. The user can choose to cache this info so they can drop the global track, or they can use the track itself if it is present in the event.

Definition at line 320 of file Muon.cc.

References cachedNumberOfValidHits_, innerTrack(), numberOfValidHits_, and lumiQTWidget::t.

Referenced by GlbMuQualityCutsAnalysis::analyze(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), ZToLLEdmNtupleDumper::produce(), setNumberOfValidHits(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), PFMuonSelector::spring11Cuts(), and MuonVPlusJetsIDSelectionFunctor::summer08Cuts().

                                           {
  if ( cachedNumberOfValidHits_ ) {
    return numberOfValidHits_;
  } else {
    reco::TrackRef t = innerTrack();
    return t->numberOfValidHits();
  }
}
reco::TrackRef pat::Muon::outerTrack ( ) const [inline, virtual]

reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon)

Reimplemented from reco::Muon.

Definition at line 78 of file Muon.h.

References standAloneMuon().

Referenced by GlbMuQualityCutsAnalysis::analyze(), ZToLLEdmNtupleDumper::produce(), ZMuMuMuonUserData::produce(), and standAloneMuon().

{ return standAloneMuon(); }
reco::PFCandidateRef Muon::pfCandidateRef ( ) const

reference to the source IsolatedPFCandidates

reference to the source IsolatedPFCandidates null if this has been built from a standard muon

Definition at line 198 of file Muon.cc.

References embeddedPFCandidate_, pfCandidate_, and pfCandidateRef_.

Referenced by pat::PATMuonProducer::fillMuon().

                                              {
  if (embeddedPFCandidate_) {
    return reco::PFCandidateRef(&pfCandidate_, 0);
  } else {
    return pfCandidateRef_;
  }
}
reco::TrackRef pat::Muon::pickyMuon ( ) const [inline]

Deprecated accessors to call the corresponding above two functions; no dytMuon since this naming is deprecated.

Definition at line 107 of file Muon.h.

References pickyTrack().

{ return pickyTrack(); } // JMTBAD gcc deprecated attribute?
reco::TrackRef Muon::pickyTrack ( ) const [virtual]

reference to Track reconstructed using hits in the tracker + "good" muon hits (reimplemented from reco::Muon)

reference to Track reconstructed using hits in the tracker + "good" muon hits

Reimplemented from reco::Muon.

Definition at line 171 of file Muon.cc.

References embeddedPickyMuon_, and pickyMuon_.

Referenced by embedPickyMuon(), and pickyMuon().

                                    {
  if (embeddedPickyMuon_) {
    return reco::TrackRef(&pickyMuon_, 0);
  } else {
    return reco::Muon::pickyTrack();
  }
}
double Muon::segmentCompatibility ( reco::Muon::ArbitrationType  arbitrationType = reco::Muon::SegmentAndTrackArbitration) const

Returns the segment compatibility, using muon::segmentCompatibility (DataFormats/MuonReco/interface/MuonSelectors.h)

Definition at line 379 of file Muon.cc.

                                                                               {
   return muon::segmentCompatibility(*this, arbitrationType);
}
void pat::Muon::setDB ( double  dB,
double  edB,
IpType  type = None 
) [inline]

Definition at line 194 of file Muon.h.

References cachedDB_, cachedIP_, dB(), dB_, edB(), edB_, eip_, ip_, None, and reco::Muon::type().

Referenced by pat::PATMuonProducer::embedHighLevel(), and pat::PATMuonProducer::produce().

                                                                   { 
          if (type == None) {
            dB_ = dB; edB_ = edB; 
            cachedDB_ = true;
          }
          ip_[type] = dB; eip_[type] = edB; cachedIP_[type] = true;
        }
void pat::Muon::setNormChi2 ( double  normChi2) [inline]

Definition at line 209 of file Muon.h.

References cachedNormChi2_, normChi2(), and normChi2_.

Referenced by pat::PATMuonProducer::produce().

void pat::Muon::setNumberOfValidHits ( unsigned int  numberOfValidHits) [inline]
void pat::Muon::setPFCandidateRef ( const reco::PFCandidateRef ref) [inline]

add a reference to the source IsolatedPFCandidate

Definition at line 121 of file Muon.h.

References pfCandidateRef_.

Referenced by pat::PATMuonProducer::produce().

                                                            {
        pfCandidateRef_ = ref;
      } 
reco::CandidatePtr Muon::sourceCandidatePtr ( size_type  i) const [virtual]

get the candidate pointer with index i

reference to the parent PF candidate for use in TopProjector

Reimplemented from reco::LeafCandidate.

Definition at line 207 of file Muon.cc.

References embeddedPFCandidate_, edm::Ref< C, T, F >::get(), edm::Ref< C, T, F >::id(), edm::Ref< C, T, F >::key(), and pfCandidateRef_.

reco::TrackRef Muon::standAloneMuon ( ) const [virtual]

reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon)

Reimplemented from reco::Muon.

Definition at line 152 of file Muon.cc.

References embeddedStandAloneMuon_, outerTrack(), and standAloneMuon_.

Referenced by outerTrack().

                                        {
  if (embeddedStandAloneMuon_) {
    return reco::TrackRef(&standAloneMuon_, 0);
  } else {
    return reco::Muon::outerTrack();
  }
}
reco::MuonMETCorrectionData pat::Muon::tcMETMuonCorrs ( ) const [inline]

muon MET corrections for tcMET; returns the muon correction struct if embedded during pat tuple production or an empty element

Definition at line 95 of file Muon.h.

References embeddedTCMETMuonCorrs_, and tcMETMuonCorrs_.

reco::TrackRef pat::Muon::tpfmsMuon ( ) const [inline]

Definition at line 108 of file Muon.h.

References tpfmsTrack().

{ return tpfmsTrack(); } // JMTBAD gcc deprecated attribute?
reco::TrackRef Muon::tpfmsTrack ( ) const [virtual]

reference to Track reconstructed using hits in the tracker + info from the first muon station that has hits (reimplemented from reco::Muon)

reference to Track reconstructed using hits in the tracker + info from the first muon station that has hits

Reimplemented from reco::Muon.

Definition at line 180 of file Muon.cc.

References embeddedTpfmsMuon_, and tpfmsMuon_.

Referenced by embedTpfmsMuon(), and tpfmsMuon().

                                    {
  if (embeddedTpfmsMuon_) {
    return reco::TrackRef(&tpfmsMuon_, 0);
  } else {
    return reco::Muon::tpfmsTrack();
  }
}
reco::TrackRef Muon::track ( void  ) const [virtual]

reference to Track reconstructed in the tracker only (reimplemented from reco::Muon)

Reimplemented from reco::Muon.

Definition at line 142 of file Muon.cc.

References embeddedTrack_, innerTrack(), and track_.

Referenced by ZMuMu_vtxAnalyzer::analyze(), GenPurposeSkimmerData::analyze(), pat::CaloIsolationEnergy::calculate(), pat::LeptonVertexSignificance::calculate(), pat::TrackerIsolationPt::calculate(), and innerTrack().

                               {
  if (embeddedTrack_) {
    return reco::TrackRef(&track_, 0);
  } else {
    return reco::Muon::innerTrack();
  }
}
float pat::Muon::trackIso ( ) const [inline]

if muon id results are ever extracted from muon id value maps then the isMuonIDAvailable method will be defined Overload of pat::Lepton::trackIso(); returns the value of the summed track pt in a cone of deltaR<0.3

Reimplemented from pat::Lepton< reco::Muon >.

Definition at line 148 of file Muon.h.

References reco::Muon::isolationR03().

Referenced by DimuonStatistics::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), ZMuMu_vtxAnalyzer::analyze(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), and MuonVPlusJetsIDSelectionFunctor::summer08Cuts().

{ return isolationR03().sumPt; }

Friends And Related Function Documentation

std::ostream& reco::operator<< ( std::ostream &  out,
const Muon obj 
) [friend]

pipe operator (introduced to use pat::Muon with PFTopProjectors)


Member Data Documentation

bool pat::Muon::cachedDB_ [protected]

has the normalized chi2 been cached?

Definition at line 258 of file Muon.h.

Referenced by dB(), edB(), and setDB().

std::vector<bool> pat::Muon::cachedIP_ [protected]

Definition at line 266 of file Muon.h.

Referenced by dB(), edB(), initImpactParameters(), and setDB().

bool pat::Muon::cachedNormChi2_ [protected]

Definition at line 257 of file Muon.h.

Referenced by normChi2(), and setNormChi2().

has the dB been cached?

Definition at line 260 of file Muon.h.

Referenced by numberOfValidHits(), and setNumberOfValidHits().

Definition at line 236 of file Muon.h.

Referenced by caloMETMuonCorrs(), and embedCaloMETMuonCorrs().

std::vector<reco::Track> pat::Muon::combinedMuon_ [protected]

Definition at line 229 of file Muon.h.

Referenced by combinedMuon(), and embedCombinedMuon().

double pat::Muon::dB_ [protected]

globalTrack->chi2() / globalTrack->ndof()

Definition at line 262 of file Muon.h.

Referenced by dB(), and setDB().

std::vector<reco::Track> pat::Muon::dytMuon_ [protected]

Definition at line 244 of file Muon.h.

Referenced by dytTrack(), and embedDytMuon().

double pat::Muon::edB_ [protected]

dB and edB are the impact parameter at the primary vertex,

Definition at line 263 of file Muon.h.

Referenced by edB(), and setDB().

std::vector<double> pat::Muon::eip_ [protected]

Definition at line 268 of file Muon.h.

Referenced by edB(), initImpactParameters(), and setDB().

muon MET corrections for caloMET

Definition at line 235 of file Muon.h.

Referenced by caloMETMuonCorrs(), and embedCaloMETMuonCorrs().

track of combined fit

Definition at line 228 of file Muon.h.

Referenced by combinedMuon(), and embedCombinedMuon().

bool pat::Muon::embeddedDytMuon_ [protected]

Definition at line 241 of file Muon.h.

Referenced by dytTrack(), and embedDytMuon().

true if the IsolatedPFCandidate is embedded

Definition at line 248 of file Muon.h.

Referenced by embedPFCandidate(), pfCandidateRef(), and sourceCandidatePtr().

Definition at line 239 of file Muon.h.

Referenced by embedPickyMuon(), and pickyTrack().

track of muon system

Definition at line 225 of file Muon.h.

Referenced by embedStandAloneMuon(), and standAloneMuon().

muon MET corrections for tcMET

Definition at line 232 of file Muon.h.

Referenced by embedTcMETMuonCorrs(), and tcMETMuonCorrs().

Definition at line 240 of file Muon.h.

Referenced by embedTpfmsMuon(), and tpfmsTrack().

bool pat::Muon::embeddedTrack_ [protected]

tracker of inner track detector

Definition at line 222 of file Muon.h.

Referenced by embedTrack(), and track().

std::vector<double> pat::Muon::ip_ [protected]

Definition at line 267 of file Muon.h.

Referenced by dB(), initImpactParameters(), and setDB().

double pat::Muon::normChi2_ [protected]

has the numberOfValidHits been cached?

Definition at line 261 of file Muon.h.

Referenced by normChi2(), and setNormChi2().

unsigned int pat::Muon::numberOfValidHits_ [protected]

Definition at line 270 of file Muon.h.

Referenced by numberOfValidHits(), and setNumberOfValidHits().

if embeddedPFCandidate_, a copy of the source IsolatedPFCandidate is stored in this vector

Definition at line 251 of file Muon.h.

Referenced by embedPFCandidate(), and pfCandidateRef().

reference to the IsolatedPFCandidate this has been built from null if this has been built from a standard muon

Definition at line 254 of file Muon.h.

Referenced by embedPFCandidate(), numberOfSourceCandidatePtrs(), pfCandidateRef(), setPFCandidateRef(), and sourceCandidatePtr().

std::vector<reco::Track> pat::Muon::pickyMuon_ [protected]

Definition at line 242 of file Muon.h.

Referenced by embedPickyMuon(), and pickyTrack().

std::vector<reco::Track> pat::Muon::standAloneMuon_ [protected]

Definition at line 226 of file Muon.h.

Referenced by embedStandAloneMuon(), and standAloneMuon().

Definition at line 233 of file Muon.h.

Referenced by embedTcMETMuonCorrs(), and tcMETMuonCorrs().

std::vector<reco::Track> pat::Muon::tpfmsMuon_ [protected]

Definition at line 243 of file Muon.h.

Referenced by embedTpfmsMuon(), and tpfmsTrack().

std::vector<reco::Track> pat::Muon::track_ [protected]

Definition at line 223 of file Muon.h.

Referenced by embedTrack(), and track().