CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
hitfit::Lepjets_Event_Jet Class Reference

A class to represent a jet in an instance of Lepjets_Event class. The class is derived from the Lepjets_Event_Lep class. In addition to the information stored in Lepjets_Event_Lep class, this class holds the following information: More...

#include <Lepjets_Event_Jet.h>

Inheritance diagram for hitfit::Lepjets_Event_Jet:
hitfit::Lepjets_Event_Lep

Public Member Functions

std::ostream & dump (std::ostream &s, bool full=false) const
 Print the content of this object. More...
 
double & e0 ()
 
double e0 () const
 
 Lepjets_Event_Jet (const Fourvec &p, int type, const Vector_Resolution &res, bool svx_tag=false, bool slt_tag=false, const Fourvec &tag_lep=Fourvec(), double slt_edep=0)
 Constructor. More...
 
double & slt_edep ()
 
double slt_edep () const
 
bool & slt_tag ()
 
bool slt_tag () const
 
bool & svx_tag ()
 
bool svx_tag () const
 
Fourvectag_lep ()
 
const Fourvectag_lep () const
 
- Public Member Functions inherited from hitfit::Lepjets_Event_Lep
std::ostream & dump (std::ostream &s, bool full=false) const
 Print the content of this object. More...
 
double eta_sigma () const
 Return the uncertainty in pseudorapidity $\eta$. More...
 
 Lepjets_Event_Lep (const Fourvec &p, int type, const Vector_Resolution &res)
 Constructor, create a new instance of Lepjets_Event_Lep. More...
 
bool operator< (const Lepjets_Event_Lep &x) const
 Comparison operator for sorting purpose, based on $p_{T}$. More...
 
Fourvecp ()
 Return a reference to the four-momentum. More...
 
const Fourvecp () const
 Return a constant reference to the four-momentum. More...
 
double p_sigma () const
 Return the uncertainty in momentum $p$ or $p_{T}$ ( $1/p$ or $1/p_{T}$ if the lepton is a tracking object). More...
 
double phi_sigma () const
 Return the uncertainty in azimuthal angle $\phi$. More...
 
Vector_Resolutionres ()
 Return a reference to the resolution. More...
 
const Vector_Resolutionres () const
 Return a constant reference to the resolution. More...
 
void smear (CLHEP::HepRandomEngine &engine, bool smear_dir=false)
 Smear this object. More...
 
int & type ()
 Return a reference to the type code. More...
 
int type () const
 Return the type code. More...
 

Private Attributes

double _e0
 
double _slt_edep
 
bool _slt_tag
 
bool _svx_tag
 
Fourvec _tag_lep
 

Detailed Description

A class to represent a jet in an instance of Lepjets_Event class. The class is derived from the Lepjets_Event_Lep class. In addition to the information stored in Lepjets_Event_Lep class, this class holds the following information:

Definition at line 76 of file Lepjets_Event_Jet.h.

Constructor & Destructor Documentation

◆ Lepjets_Event_Jet()

hitfit::Lepjets_Event_Jet::Lepjets_Event_Jet ( const Fourvec p,
int  type,
const Vector_Resolution res,
bool  svx_tag = false,
bool  slt_tag = false,
const Fourvec tag_lep = Fourvec(),
double  slt_edep = 0 
)

Constructor.

Parameters
pThe four-momemtum.
typeThe type code.
resThe jet resolution.
svx_tagBoolean flag for SVX tag.
slt_tagBoolean flag for SLT tag.
tag_lepThe SLT lepton four-momentum.
slt_edepThe SLT lepton energy deposition.

Definition at line 38 of file Lepjets_Event_Jet.cc.

62  _e0(p.e()) {}

Member Function Documentation

◆ dump()

std::ostream & hitfit::Lepjets_Event_Jet::dump ( std::ostream &  s,
bool  full = false 
) const

Print the content of this object.

Parameters
sThe output stream to which to write
fullIf TRUE, print all information about this instance of Lepjets_Event_Lep.
If FALSE, print partial information about this instance of Lepjets_Event_Lep.

Definition at line 174 of file Lepjets_Event_Jet.cc.

185  {
187  if (_svx_tag)
188  s << " (svx)";
189  if (_slt_tag)
190  s << " (slt)";
191  if (full) {
192  if (_slt_tag) {
193  s << " tag lep: " << _tag_lep;
194  s << " edep: " << _slt_edep;
195  }
196  s << "\n";
197  }
198  return s;
199  }

References hitfit::Lepjets_Event_Lep::dump(), full, and alignCSCRings::s.

◆ e0() [1/2]

double & hitfit::Lepjets_Event_Jet::e0 ( )

Return a reference of the uncorrected jet energy.

Definition at line 163 of file Lepjets_Event_Jet.cc.

170  {
171  return _e0;
172  }

References _e0.

◆ e0() [2/2]

double hitfit::Lepjets_Event_Jet::e0 ( ) const

Return the uncorrected jet energy.

Definition at line 152 of file Lepjets_Event_Jet.cc.

159  {
160  return _e0;
161  }

References _e0.

◆ slt_edep() [1/2]

double & hitfit::Lepjets_Event_Jet::slt_edep ( )

Return a reference to SLT lepton energy deposition.

Definition at line 141 of file Lepjets_Event_Jet.cc.

148  {
149  return _slt_edep;
150  }

References _slt_edep.

◆ slt_edep() [2/2]

double hitfit::Lepjets_Event_Jet::slt_edep ( ) const

Return the SLT lepton energy deposition.

Definition at line 130 of file Lepjets_Event_Jet.cc.

137  {
138  return _slt_edep;
139  }

References _slt_edep.

◆ slt_tag() [1/2]

bool & hitfit::Lepjets_Event_Jet::slt_tag ( )

Return a reference to the SLT tag flag.

Definition at line 97 of file Lepjets_Event_Jet.cc.

104  {
105  return _slt_tag;
106  }

References _slt_tag.

◆ slt_tag() [2/2]

bool hitfit::Lepjets_Event_Jet::slt_tag ( ) const

Return the SLT tag flag.

Definition at line 86 of file Lepjets_Event_Jet.cc.

93  {
94  return _slt_tag;
95  }

References _slt_tag.

◆ svx_tag() [1/2]

bool & hitfit::Lepjets_Event_Jet::svx_tag ( )

Return a reference to the SVX tag flag.

Definition at line 75 of file Lepjets_Event_Jet.cc.

82  {
83  return _svx_tag;
84  }

References _svx_tag.

◆ svx_tag() [2/2]

bool hitfit::Lepjets_Event_Jet::svx_tag ( ) const

Return the SVX tag flag.

Definition at line 64 of file Lepjets_Event_Jet.cc.

71  {
72  return _svx_tag;
73  }

References _svx_tag.

◆ tag_lep() [1/2]

Fourvec & hitfit::Lepjets_Event_Jet::tag_lep ( )

Return a reference to the SLT lepton.

Definition at line 119 of file Lepjets_Event_Jet.cc.

126  {
127  return _tag_lep;
128  }

References _tag_lep.

◆ tag_lep() [2/2]

const Fourvec & hitfit::Lepjets_Event_Jet::tag_lep ( ) const

Return a constant reference to the SLT lepton.

Definition at line 108 of file Lepjets_Event_Jet.cc.

115  {
116  return _tag_lep;
117  }

References _tag_lep.

Member Data Documentation

◆ _e0

double hitfit::Lepjets_Event_Jet::_e0
private

The uncorrected jet energy.

Definition at line 200 of file Lepjets_Event_Jet.h.

Referenced by e0().

◆ _slt_edep

double hitfit::Lepjets_Event_Jet::_slt_edep
private

The SLT lepton energy deposition.

Definition at line 195 of file Lepjets_Event_Jet.h.

Referenced by slt_edep().

◆ _slt_tag

bool hitfit::Lepjets_Event_Jet::_slt_tag
private

Boolean flag for the SLT tag.

Definition at line 185 of file Lepjets_Event_Jet.h.

Referenced by slt_tag().

◆ _svx_tag

bool hitfit::Lepjets_Event_Jet::_svx_tag
private

Boolean flag for the SVX tag.

Definition at line 180 of file Lepjets_Event_Jet.h.

Referenced by svx_tag().

◆ _tag_lep

Fourvec hitfit::Lepjets_Event_Jet::_tag_lep
private

The SLT lepton four-momentum.

Definition at line 190 of file Lepjets_Event_Jet.h.

Referenced by tag_lep().

hitfit::Lepjets_Event_Jet::svx_tag
bool svx_tag() const
Definition: Lepjets_Event_Jet.cc:64
hitfit::Lepjets_Event_Jet::_tag_lep
Fourvec _tag_lep
Definition: Lepjets_Event_Jet.h:190
full
Definition: GenABIO.cc:168
alignCSCRings.s
s
Definition: alignCSCRings.py:92
hitfit::Lepjets_Event_Lep::Lepjets_Event_Lep
Lepjets_Event_Lep(const Fourvec &p, int type, const Vector_Resolution &res)
Constructor, create a new instance of Lepjets_Event_Lep.
Definition: Lepjets_Event_Lep.cc:38
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
hitfit::Lepjets_Event_Lep::p
Fourvec & p()
Return a reference to the four-momentum.
Definition: Lepjets_Event_Lep.cc:49
hitfit::Lepjets_Event_Jet::tag_lep
Fourvec & tag_lep()
Definition: Lepjets_Event_Jet.cc:119
res
Definition: Electron.h:6
hitfit::Lepjets_Event_Jet::_slt_tag
bool _slt_tag
Definition: Lepjets_Event_Jet.h:185
hitfit::Lepjets_Event_Jet::_e0
double _e0
Definition: Lepjets_Event_Jet.h:200
hitfit::Lepjets_Event_Jet::_slt_edep
double _slt_edep
Definition: Lepjets_Event_Jet.h:195
hitfit::Lepjets_Event_Jet::slt_tag
bool slt_tag() const
Definition: Lepjets_Event_Jet.cc:86
hitfit::Lepjets_Event_Jet::_svx_tag
bool _svx_tag
Definition: Lepjets_Event_Jet.h:180
hitfit::Lepjets_Event_Lep::dump
std::ostream & dump(std::ostream &s, bool full=false) const
Print the content of this object.
Definition: Lepjets_Event_Lep.cc:160
hitfit::Lepjets_Event_Jet::slt_edep
double slt_edep() const
Definition: Lepjets_Event_Jet.cc:130