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) {}

◆ 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) {}

Member Function Documentation

◆ charge()

Int_t MuScleFitMuon::charge ( void  ) const
inline

Definition at line 41 of file Muon.h.

41 { return fCharge; }

References fCharge.

Referenced by copy().

◆ copy()

void MuScleFitMuon::copy ( const MuScleFitMuon copyMuon)
inline

Used to copy the content of another MuScleFitMuon.

Definition at line 31 of file Muon.h.

31  {
32  fP4 = copyMuon.p4();
33  fPtError = copyMuon.ptError();
34  fCharge = copyMuon.charge();
35  fHitsMuon = copyMuon.hitsMuon();
36  fHitsTk = copyMuon.hitsTk();
37  }

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

◆ e()

Float_t MuScleFitMuon::e ( ) const
inline

Definition at line 51 of file Muon.h.

51 { return fP4.e(); }

References fP4.

◆ E()

Float_t MuScleFitMuon::E ( ) const
inline

Definition at line 53 of file Muon.h.

53 { return fP4.E(); }

References fP4.

◆ energy()

Float_t MuScleFitMuon::energy ( ) const
inline

Definition at line 54 of file Muon.h.

54 { return fP4.energy(); }

References fP4.

Referenced by Jet.Jet::rawEnergy().

◆ Eta()

Float_t MuScleFitMuon::Eta ( ) const
inline

Definition at line 56 of file Muon.h.

56 { return fP4.Eta(); }

References fP4.

◆ eta()

Float_t MuScleFitMuon::eta ( void  ) const
inline

Definition at line 60 of file Muon.h.

60 { return fP4.eta(); }

References fP4.

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

◆ hitsMuon()

UInt_t MuScleFitMuon::hitsMuon ( ) const
inline

Definition at line 43 of file Muon.h.

43 { return fHitsMuon; }

References fHitsMuon.

Referenced by copy().

◆ hitsTk()

UInt_t MuScleFitMuon::hitsTk ( ) const
inline

Definition at line 44 of file Muon.h.

44 { return fHitsTk; }

References fHitsTk.

Referenced by copy().

◆ p4()

lorentzVector MuScleFitMuon::p4 ( ) const
inline

Definition at line 40 of file Muon.h.

40 { return fP4; }

References fP4.

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

◆ Phi()

Float_t MuScleFitMuon::Phi ( ) const
inline

Definition at line 57 of file Muon.h.

57 { return fP4.Phi(); }

References fP4.

◆ phi()

Float_t MuScleFitMuon::phi ( void  ) const
inline

Definition at line 61 of file Muon.h.

61 { return fP4.phi(); }

References fP4.

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

◆ Pt()

Float_t MuScleFitMuon::Pt ( ) const
inline

Definition at line 55 of file Muon.h.

55 { return fP4.Pt(); }

References fP4.

◆ pt()

Float_t MuScleFitMuon::pt ( ) const
inline

◆ ptError()

Double_t MuScleFitMuon::ptError ( ) const
inline

Definition at line 42 of file Muon.h.

42 { return fPtError; }

References fPtError.

Referenced by copy().

◆ t()

Float_t MuScleFitMuon::t ( ) const
inline

Definition at line 50 of file Muon.h.

50 { return fP4.t(); }

References fP4.

◆ x()

Float_t MuScleFitMuon::x ( ) const
inline

◆ y()

Float_t MuScleFitMuon::y ( ) const
inline

◆ z()

Float_t MuScleFitMuon::z ( ) const
inline

Definition at line 49 of file Muon.h.

49 { return fP4.z(); }

References fP4.

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

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  }

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

MuScleFitMuon::fP4
lorentzVector fP4
Definition: Muon.h:69
MuScleFitMuon::fHitsTk
UInt_t fHitsTk
Definition: Muon.h:73
amptDefaultParameters_cff.mu
mu
Definition: amptDefaultParameters_cff.py:16
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
MuScleFitMuon::fHitsMuon
UInt_t fHitsMuon
Definition: Muon.h:72
MuScleFitMuon::hitsTk
UInt_t hitsTk() const
Definition: Muon.h:44
MuScleFitMuon::fPtError
Double_t fPtError
Definition: Muon.h:71
MuScleFitMuon::ptError
Double_t ptError() const
Definition: Muon.h:42
MuScleFitMuon::hitsMuon
UInt_t hitsMuon() const
Definition: Muon.h:43
lorentzVector
reco::Particle::LorentzVector lorentzVector
Definition: Muon.h:12
MuScleFitMuon::charge
Int_t charge() const
Definition: Muon.h:41
MuScleFitMuon::p4
lorentzVector p4() const
Definition: Muon.h:40
MuScleFitMuon::fCharge
Int_t fCharge
Definition: Muon.h:70