CMS 3D CMS Logo

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() [1/2]

MuScleFitMuon::MuScleFitMuon ( )
inline

Definition at line 16 of file Muon.h.

17  : fP4(lorentzVector(0., 0., 0., 0.)),
18  fCharge(0), //+1 or -1
19  fPtError(0.),
20  fHitsMuon(0),
21  fHitsTk(0) {}
UInt_t fHitsTk
Definition: Muon.h:73
Int_t fCharge
Definition: Muon.h:70
UInt_t fHitsMuon
Definition: Muon.h:72
Double_t fPtError
Definition: Muon.h:71
reco::Particle::LorentzVector lorentzVector
Definition: Muon.h:12
lorentzVector fP4
Definition: Muon.h:69

◆ MuScleFitMuon() [2/2]

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 23 of file Muon.h.

28  : fP4(initP4), fCharge(initCharge), fPtError(initPtError), fHitsMuon(initHitsMuon), fHitsTk(initHitsTk) {}
UInt_t fHitsTk
Definition: Muon.h:73
Int_t fCharge
Definition: Muon.h:70
UInt_t fHitsMuon
Definition: Muon.h:72
Double_t fPtError
Definition: Muon.h:71
lorentzVector fP4
Definition: Muon.h:69

Member Function Documentation

◆ charge()

Int_t MuScleFitMuon::charge ( void  ) const
inline

Definition at line 41 of file Muon.h.

References fCharge.

Referenced by copy().

41 { return fCharge; }
Int_t fCharge
Definition: Muon.h:70

◆ copy()

void MuScleFitMuon::copy ( const MuScleFitMuon copyMuon)
inline

Used to copy the content of another MuScleFitMuon.

Definition at line 31 of file Muon.h.

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

31  {
32  fP4 = copyMuon.p4();
33  fPtError = copyMuon.ptError();
34  fCharge = copyMuon.charge();
35  fHitsMuon = copyMuon.hitsMuon();
36  fHitsTk = copyMuon.hitsTk();
37  }
Int_t charge() const
Definition: Muon.h:41
UInt_t fHitsTk
Definition: Muon.h:73
lorentzVector p4() const
Definition: Muon.h:40
Int_t fCharge
Definition: Muon.h:70
UInt_t fHitsMuon
Definition: Muon.h:72
Double_t fPtError
Definition: Muon.h:71
Double_t ptError() const
Definition: Muon.h:42
lorentzVector fP4
Definition: Muon.h:69
UInt_t hitsMuon() const
Definition: Muon.h:43
UInt_t hitsTk() const
Definition: Muon.h:44

◆ e()

Float_t MuScleFitMuon::e ( ) const
inline

Definition at line 51 of file Muon.h.

References fP4.

51 { return fP4.e(); }
lorentzVector fP4
Definition: Muon.h:69

◆ E()

Float_t MuScleFitMuon::E ( ) const
inline

Definition at line 53 of file Muon.h.

References fP4.

53 { return fP4.E(); }
lorentzVector fP4
Definition: Muon.h:69

◆ energy()

Float_t MuScleFitMuon::energy ( ) const
inline

Definition at line 54 of file Muon.h.

References fP4.

Referenced by Jet.Jet::rawEnergy().

54 { return fP4.energy(); }
lorentzVector fP4
Definition: Muon.h:69

◆ Eta()

Float_t MuScleFitMuon::Eta ( ) const
inline

Definition at line 56 of file Muon.h.

References fP4.

56 { return fP4.Eta(); }
lorentzVector fP4
Definition: Muon.h:69

◆ eta()

Float_t MuScleFitMuon::eta ( void  ) const
inline

Definition at line 60 of file Muon.h.

References fP4.

Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), Jet.Jet::jetID(), datamodel.Object::p4(), and Jet.Jet::puJetId().

60 { return fP4.eta(); }
lorentzVector fP4
Definition: Muon.h:69

◆ hitsMuon()

UInt_t MuScleFitMuon::hitsMuon ( ) const
inline

Definition at line 43 of file Muon.h.

References fHitsMuon.

Referenced by copy().

43 { return fHitsMuon; }
UInt_t fHitsMuon
Definition: Muon.h:72

◆ hitsTk()

UInt_t MuScleFitMuon::hitsTk ( ) const
inline

Definition at line 44 of file Muon.h.

References fHitsTk.

Referenced by copy().

44 { return fHitsTk; }
UInt_t fHitsTk
Definition: Muon.h:73

◆ p4()

lorentzVector MuScleFitMuon::p4 ( void  ) const
inline

Definition at line 40 of file Muon.h.

References fP4.

Referenced by copy(), Tau.Tau::dxy_approx(), Tau.Tau::dz(), Lepton.Lepton::p4WithFSR(), and RootTreeHandler::readTree().

40 { return fP4; }
lorentzVector fP4
Definition: Muon.h:69

◆ Phi()

Float_t MuScleFitMuon::Phi ( ) const
inline

Definition at line 57 of file Muon.h.

References fP4.

57 { return fP4.Phi(); }
lorentzVector fP4
Definition: Muon.h:69

◆ phi()

Float_t MuScleFitMuon::phi ( void  ) const
inline

Definition at line 61 of file Muon.h.

References fP4.

Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), datamodel.Object::p4(), and ntupleDataFormat.Track::phiPull().

61 { return fP4.phi(); }
lorentzVector fP4
Definition: Muon.h:69

◆ Pt()

Float_t MuScleFitMuon::Pt ( ) const
inline

Definition at line 55 of file Muon.h.

References fP4.

55 { return fP4.Pt(); }
lorentzVector fP4
Definition: Muon.h:69

◆ pt()

Float_t MuScleFitMuon::pt ( ) const
inline

◆ ptError()

Double_t MuScleFitMuon::ptError ( ) const
inline

Definition at line 42 of file Muon.h.

References fPtError.

Referenced by copy().

42 { return fPtError; }
Double_t fPtError
Definition: Muon.h:71

◆ t()

Float_t MuScleFitMuon::t ( ) const
inline

Definition at line 50 of file Muon.h.

References fP4.

50 { return fP4.t(); }
lorentzVector fP4
Definition: Muon.h:69

◆ x()

Float_t MuScleFitMuon::x ( ) const
inline

◆ y()

Float_t MuScleFitMuon::y ( ) const
inline

Definition at line 48 of file Muon.h.

References fP4.

Referenced by svgfig.Ellipse::__repr__(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().

48 { return fP4.y(); }
lorentzVector fP4
Definition: Muon.h:69

◆ z()

Float_t MuScleFitMuon::z ( ) const
inline

Definition at line 49 of file Muon.h.

References fP4.

Referenced by geometryXMLparser.Alignable::pos(), and ntupleDataFormat._HitObject::r3D().

49 { return fP4.z(); }
lorentzVector fP4
Definition: Muon.h:69

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 63 of file Muon.h.

63  {
64  stream << "p4 = " << mu.p4() << ", q = " << mu.charge() << ", ptError = " << mu.ptError()
65  << ", hitsTk = " << mu.hitsTk() << ", hitsMuon = " << mu.hitsMuon();
66  return stream;
67  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream

Member Data Documentation

◆ fCharge

Int_t MuScleFitMuon::fCharge

Definition at line 70 of file Muon.h.

Referenced by charge(), and copy().

◆ fHitsMuon

UInt_t MuScleFitMuon::fHitsMuon

Definition at line 72 of file Muon.h.

Referenced by copy(), and hitsMuon().

◆ fHitsTk

UInt_t MuScleFitMuon::fHitsTk

Definition at line 73 of file Muon.h.

Referenced by copy(), and hitsTk().

◆ fP4

lorentzVector MuScleFitMuon::fP4

Definition at line 69 of file Muon.h.

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

◆ fPtError

Double_t MuScleFitMuon::fPtError

Definition at line 71 of file Muon.h.

Referenced by copy(), and ptError().