CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Friends
MuScleFitMuon Class Reference

#include <Muon.h>

Inheritance diagram for MuScleFitMuon:

Public Member Functions

Int_t charge () const
 
void copy (const MuScleFitMuon &copyMuon)
 Used to copy the content of another MuScleFitMuon. More...
 
Float_t e () const
 
Float_t E () const
 
Float_t energy () const
 
Float_t Eta () const
 
Float_t eta () const
 
UInt_t hitsMuon () const
 
UInt_t hitsTk () const
 
 MuScleFitMuon ()
 
 MuScleFitMuon (const lorentzVector &initP4, const int initCharge=-1, const double initPtError=0, const unsigned int initHitsTk=0, const unsigned int initHitsMuon=0)
 
lorentzVector p4 () const
 
Float_t Phi () const
 
Float_t phi () const
 
Float_t Pt () const
 
Float_t pt () const
 
Double_t ptError () const
 
Float_t t () const
 
Float_t x () const
 
Float_t y () const
 
Float_t z () const
 

Public Attributes

Int_t fCharge
 
UInt_t fHitsMuon
 
UInt_t fHitsTk
 
lorentzVector fP4
 
Double_t fPtError
 

Friends

std::ostream & operator<< (std::ostream &stream, const MuScleFitMuon &mu)
 

Detailed Description

Definition at line 14 of file Muon.h.

Constructor & Destructor Documentation

MuScleFitMuon::MuScleFitMuon ( )
inline

Definition at line 17 of file Muon.h.

17  :
18  fP4(lorentzVector(0.,0.,0.,0.)),
19  fCharge(0),//+1 or -1
20  fPtError(0.),
21  fHitsMuon(0),
22  fHitsTk(0)
23  {}
UInt_t fHitsTk
Definition: Muon.h:78
Int_t fCharge
Definition: Muon.h:75
reco::Particle::LorentzVector lorentzVector
Definition: GenMuonPair.h:9
UInt_t fHitsMuon
Definition: Muon.h:77
Double_t fPtError
Definition: Muon.h:76
lorentzVector fP4
Definition: Muon.h:74
MuScleFitMuon::MuScleFitMuon ( const lorentzVector initP4,
const int  initCharge = -1,
const double  initPtError = 0,
const unsigned int  initHitsTk = 0,
const unsigned int  initHitsMuon = 0 
)
inline

Definition at line 25 of file Muon.h.

26  :
27  fP4(initP4),
28  fCharge(initCharge),
29  fPtError(initPtError),
30  fHitsMuon(initHitsMuon),
31  fHitsTk(initHitsTk)
32  {}
UInt_t fHitsTk
Definition: Muon.h:78
Int_t fCharge
Definition: Muon.h:75
UInt_t fHitsMuon
Definition: Muon.h:77
Double_t fPtError
Definition: Muon.h:76
lorentzVector fP4
Definition: Muon.h:74

Member Function Documentation

Int_t MuScleFitMuon::charge ( void  ) const
inline

Definition at line 46 of file Muon.h.

References fCharge.

Referenced by copy().

46 {return fCharge;}
Int_t fCharge
Definition: Muon.h:75
void MuScleFitMuon::copy ( const MuScleFitMuon copyMuon)
inline

Used to copy the content of another MuScleFitMuon.

Definition at line 35 of file Muon.h.

References charge(), fCharge, fHitsMuon, fHitsTk, fP4, fPtError, hitsMuon(), hitsTk(), p4(), and ptError().

36  {
37  fP4 = copyMuon.p4();
38  fPtError = copyMuon.ptError();
39  fCharge = copyMuon.charge();
40  fHitsMuon = copyMuon.hitsMuon();
41  fHitsTk = copyMuon.hitsTk();
42  }
UInt_t fHitsTk
Definition: Muon.h:78
Int_t fCharge
Definition: Muon.h:75
UInt_t hitsMuon() const
Definition: Muon.h:48
UInt_t fHitsMuon
Definition: Muon.h:77
Double_t ptError() const
Definition: Muon.h:47
Double_t fPtError
Definition: Muon.h:76
UInt_t hitsTk() const
Definition: Muon.h:49
lorentzVector fP4
Definition: Muon.h:74
Int_t charge() const
Definition: Muon.h:46
lorentzVector p4() const
Definition: Muon.h:45
Float_t MuScleFitMuon::e ( ) const
inline

Definition at line 56 of file Muon.h.

References fP4.

56 { return fP4.e(); }
lorentzVector fP4
Definition: Muon.h:74
Float_t MuScleFitMuon::E ( ) const
inline

Definition at line 58 of file Muon.h.

References fP4.

58 {return fP4.E(); }
lorentzVector fP4
Definition: Muon.h:74
Float_t MuScleFitMuon::energy ( ) const
inline

Definition at line 59 of file Muon.h.

References fP4.

59 {return fP4.energy(); }
lorentzVector fP4
Definition: Muon.h:74
Float_t MuScleFitMuon::Eta ( ) const
inline

Definition at line 61 of file Muon.h.

References fP4.

61 {return fP4.Eta(); }
lorentzVector fP4
Definition: Muon.h:74
Float_t MuScleFitMuon::eta ( void  ) const
inline

Definition at line 65 of file Muon.h.

References fP4.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

65 {return fP4.eta(); }
lorentzVector fP4
Definition: Muon.h:74
UInt_t MuScleFitMuon::hitsMuon ( ) const
inline

Definition at line 48 of file Muon.h.

References fHitsMuon.

Referenced by copy().

48 {return fHitsMuon;}
UInt_t fHitsMuon
Definition: Muon.h:77
UInt_t MuScleFitMuon::hitsTk ( ) const
inline

Definition at line 49 of file Muon.h.

References fHitsTk.

Referenced by copy().

49 {return fHitsTk;}
UInt_t fHitsTk
Definition: Muon.h:78
lorentzVector MuScleFitMuon::p4 ( ) const
inline

Definition at line 45 of file Muon.h.

References fP4.

Referenced by copy(), Tau.Tau::dxy_approx(), Tau.Tau::dz(), Jet.Jet::jetID(), and RootTreeHandler::readTree().

45 {return fP4;}
lorentzVector fP4
Definition: Muon.h:74
Float_t MuScleFitMuon::Phi ( ) const
inline

Definition at line 62 of file Muon.h.

References fP4.

62 {return fP4.Phi(); }
lorentzVector fP4
Definition: Muon.h:74
Float_t MuScleFitMuon::phi ( void  ) const
inline

Definition at line 66 of file Muon.h.

References fP4.

Referenced by Particle.Particle::__str__().

66 {return fP4.phi(); }
lorentzVector fP4
Definition: Muon.h:74
Float_t MuScleFitMuon::Pt ( ) const
inline

Definition at line 60 of file Muon.h.

References fP4.

60 {return fP4.Pt(); }
lorentzVector fP4
Definition: Muon.h:74
Float_t MuScleFitMuon::pt ( void  ) const
inline
Double_t MuScleFitMuon::ptError ( ) const
inline

Definition at line 47 of file Muon.h.

References fPtError.

Referenced by copy().

47 {return fPtError;}
Double_t fPtError
Definition: Muon.h:76
Float_t MuScleFitMuon::t ( ) const
inline

Definition at line 55 of file Muon.h.

References fP4.

55 { return fP4.t(); }
lorentzVector fP4
Definition: Muon.h:74
Float_t MuScleFitMuon::x ( ) const
inline
Float_t MuScleFitMuon::y ( ) const
inline
Float_t MuScleFitMuon::z ( ) const
inline

Definition at line 54 of file Muon.h.

References fP4.

Referenced by geometryXMLparser.Alignable::pos().

54 { return fP4.z(); }
lorentzVector fP4
Definition: Muon.h:74

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const MuScleFitMuon mu 
)
friend

Definition at line 69 of file Muon.h.

69  {
70  stream << "p4 = " << mu.p4() << ", q = " << mu.charge() << ", ptError = " << mu.ptError() << ", hitsTk = " <<mu. hitsTk() << ", hitsMuon = " << mu.hitsMuon();
71  return stream;
72  }
UInt_t hitsMuon() const
Definition: Muon.h:48
Double_t ptError() const
Definition: Muon.h:47
UInt_t hitsTk() const
Definition: Muon.h:49
Int_t charge() const
Definition: Muon.h:46
lorentzVector p4() const
Definition: Muon.h:45

Member Data Documentation

Int_t MuScleFitMuon::fCharge

Definition at line 75 of file Muon.h.

Referenced by charge(), and copy().

UInt_t MuScleFitMuon::fHitsMuon

Definition at line 77 of file Muon.h.

Referenced by copy(), and hitsMuon().

UInt_t MuScleFitMuon::fHitsTk

Definition at line 78 of file Muon.h.

Referenced by copy(), and hitsTk().

lorentzVector MuScleFitMuon::fP4

Definition at line 74 of file Muon.h.

Referenced by copy(), e(), E(), energy(), Eta(), eta(), p4(), Phi(), phi(), Pt(), pt(), t(), x(), y(), and z().

Double_t MuScleFitMuon::fPtError

Definition at line 76 of file Muon.h.

Referenced by copy(), and ptError().