CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
PassiveHit Class Reference

#include <PassiveHit.h>

Public Member Functions

double energy () const
 
double energyTotal () const
 
const char * getName () const
 
unsigned int id () const
 
bool operator< (const PassiveHit &d) const
 
bool operator== (const PassiveHit &d) const
 
 PassiveHit (std::string vname, unsigned int id, float e=0, float etot=0, float t=0, int it=0, int ip=0, float stepl=0, float xp=0, float yp=0, float zp=0)
 
 PassiveHit ()
 
int pdgId () const
 
void setEnergy (double e)
 
void setEnergyTotal (double e)
 
void setID (std::string vname, unsigned int id)
 
void setPDGId (int ip)
 
void setStepLength (float stepl)
 
void setTime (float t)
 
void setTrackId (int it)
 
void setX (float xp)
 
void setY (float yp)
 
void setZ (float zp)
 
float stepLength () const
 
double time () const
 
int trackId () const
 
std::string vname () const
 
float x () const
 
float y () const
 
float z () const
 

Static Public Member Functions

static const char * name ()
 

Protected Attributes

float energy_
 
float etotal_
 
unsigned int id_
 
int ip_
 
int it_
 
float stepl_
 
float time_
 
std::string vname_
 
float xp_
 
float yp_
 
float zp_
 

Detailed Description

Definition at line 9 of file PassiveHit.h.

Constructor & Destructor Documentation

◆ PassiveHit() [1/2]

PassiveHit::PassiveHit ( std::string  vname,
unsigned int  id,
float  e = 0,
float  etot = 0,
float  t = 0,
int  it = 0,
int  ip = 0,
float  stepl = 0,
float  xp = 0,
float  yp = 0,
float  zp = 0 
)
inline

Definition at line 11 of file PassiveHit.h.

22  : vname_(vname),
23  id_(id),
24  energy_(e),
25  etotal_(etot),
26  time_(t),
27  it_(it),
28  ip_(ip),
29  stepl_(stepl),
30  xp_(xp),
31  yp_(yp),
32  zp_(zp) {}
float stepl_
Definition: PassiveHit.h:93
float etotal_
Definition: PassiveHit.h:89
float xp_
Definition: PassiveHit.h:94
float yp_
Definition: PassiveHit.h:95
float zp_
Definition: PassiveHit.h:96
std::string vname_
Definition: PassiveHit.h:86
std::string vname() const
Definition: PassiveHit.h:60
float energy_
Definition: PassiveHit.h:88
float time_
Definition: PassiveHit.h:90
unsigned int id_
Definition: PassiveHit.h:87

◆ PassiveHit() [2/2]

PassiveHit::PassiveHit ( )
inline

Definition at line 33 of file PassiveHit.h.

34  : vname_(""), id_(0), energy_(0), etotal_(0), time_(0), it_(0), ip_(0), stepl_(0), xp_(0), yp_(0), zp_(0) {}
float stepl_
Definition: PassiveHit.h:93
float etotal_
Definition: PassiveHit.h:89
float xp_
Definition: PassiveHit.h:94
float yp_
Definition: PassiveHit.h:95
float zp_
Definition: PassiveHit.h:96
std::string vname_
Definition: PassiveHit.h:86
float energy_
Definition: PassiveHit.h:88
float time_
Definition: PassiveHit.h:90
unsigned int id_
Definition: PassiveHit.h:87

Member Function Documentation

◆ energy()

double PassiveHit::energy ( void  ) const
inline

Definition at line 42 of file PassiveHit.h.

References energy_.

Referenced by Jet.Jet::rawEnergy().

42 { return energy_; }
float energy_
Definition: PassiveHit.h:88

◆ energyTotal()

double PassiveHit::energyTotal ( ) const
inline

Definition at line 44 of file PassiveHit.h.

References etotal_.

44 { return etotal_; }
float etotal_
Definition: PassiveHit.h:89

◆ getName()

const char* PassiveHit::getName ( void  ) const
inline

Definition at line 39 of file PassiveHit.h.

References name().

Referenced by plotting.Plot::draw().

39 { return name(); }
static const char * name()
Definition: PassiveHit.h:37

◆ id()

unsigned int PassiveHit::id ( void  ) const
inline

Definition at line 61 of file PassiveHit.h.

References id_.

Referenced by setID().

61 { return id_; }
unsigned int id_
Definition: PassiveHit.h:87

◆ name()

static const char* PassiveHit::name ( void  )
inlinestatic

Definition at line 37 of file PassiveHit.h.

Referenced by config.CFG::__str__(), validation.Sample::digest(), and getName().

37 { return "PassiveHit"; }

◆ operator<()

bool PassiveHit::operator< ( const PassiveHit d) const
inline

Definition at line 80 of file PassiveHit.h.

References ztail::d, and energy_.

80 { return energy_ < d.energy_; }
d
Definition: ztail.py:151
float energy_
Definition: PassiveHit.h:88

◆ operator==()

bool PassiveHit::operator== ( const PassiveHit d) const
inline

Definition at line 83 of file PassiveHit.h.

References ztail::d, energy_, id_, and vname_.

83 { return (energy_ == d.energy_ && id_ == d.id_ && vname_ == d.vname_); }
d
Definition: ztail.py:151
std::string vname_
Definition: PassiveHit.h:86
float energy_
Definition: PassiveHit.h:88
unsigned int id_
Definition: PassiveHit.h:87

◆ pdgId()

int PassiveHit::pdgId ( ) const
inline

Definition at line 64 of file PassiveHit.h.

References ip_.

Referenced by Particle.Particle::__str__().

64 { return ip_; }

◆ setEnergy()

void PassiveHit::setEnergy ( double  e)
inline

Definition at line 43 of file PassiveHit.h.

References MillePedeFileConverter_cfg::e, and energy_.

◆ setEnergyTotal()

void PassiveHit::setEnergyTotal ( double  e)
inline

Definition at line 45 of file PassiveHit.h.

References MillePedeFileConverter_cfg::e, and etotal_.

◆ setID()

void PassiveHit::setID ( std::string  vname,
unsigned int  id 
)
inline

Definition at line 56 of file PassiveHit.h.

References id(), id_, vname(), and vname_.

56  {
57  vname_ = vname;
58  id_ = id;
59  }
unsigned int id() const
Definition: PassiveHit.h:61
std::string vname_
Definition: PassiveHit.h:86
std::string vname() const
Definition: PassiveHit.h:60
unsigned int id_
Definition: PassiveHit.h:87

◆ setPDGId()

void PassiveHit::setPDGId ( int  ip)
inline

Definition at line 65 of file PassiveHit.h.

References ip_.

65 { ip_ = ip; }

◆ setStepLength()

void PassiveHit::setStepLength ( float  stepl)
inline

Definition at line 69 of file PassiveHit.h.

References stepl_.

69 { stepl_ = stepl; }
float stepl_
Definition: PassiveHit.h:93

◆ setTime()

void PassiveHit::setTime ( float  t)
inline

Definition at line 49 of file PassiveHit.h.

References submitPVValidationJobs::t, and time_.

◆ setTrackId()

void PassiveHit::setTrackId ( int  it)
inline

◆ setX()

void PassiveHit::setX ( float  xp)
inline

Definition at line 73 of file PassiveHit.h.

References xp_.

73 { xp_ = xp; }
float xp_
Definition: PassiveHit.h:94

◆ setY()

void PassiveHit::setY ( float  yp)
inline

Definition at line 75 of file PassiveHit.h.

References yp_.

75 { yp_ = yp; }
float yp_
Definition: PassiveHit.h:95

◆ setZ()

void PassiveHit::setZ ( float  zp)
inline

Definition at line 77 of file PassiveHit.h.

References zp_.

77 { zp_ = zp; }
float zp_
Definition: PassiveHit.h:96

◆ stepLength()

float PassiveHit::stepLength ( ) const
inline

Definition at line 68 of file PassiveHit.h.

References stepl_.

68 { return stepl_; }
float stepl_
Definition: PassiveHit.h:93

◆ time()

double PassiveHit::time ( ) const
inline

Definition at line 48 of file PassiveHit.h.

References time_.

48 { return time_; }
float time_
Definition: PassiveHit.h:90

◆ trackId()

int PassiveHit::trackId ( ) const
inline

Definition at line 52 of file PassiveHit.h.

References it_.

52 { return it_; }

◆ vname()

std::string PassiveHit::vname ( ) const
inline

Definition at line 60 of file PassiveHit.h.

References vname_.

Referenced by setID().

60 { return vname_; }
std::string vname_
Definition: PassiveHit.h:86

◆ x()

float PassiveHit::x ( ) const
inline

◆ y()

float PassiveHit::y ( ) const
inline

◆ z()

float PassiveHit::z ( ) const
inline

Definition at line 76 of file PassiveHit.h.

References zp_.

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

76 { return zp_; }
float zp_
Definition: PassiveHit.h:96

Member Data Documentation

◆ energy_

float PassiveHit::energy_
protected

Definition at line 88 of file PassiveHit.h.

Referenced by energy(), operator<(), operator==(), and setEnergy().

◆ etotal_

float PassiveHit::etotal_
protected

Definition at line 89 of file PassiveHit.h.

Referenced by energyTotal(), and setEnergyTotal().

◆ id_

unsigned int PassiveHit::id_
protected

Definition at line 87 of file PassiveHit.h.

Referenced by id(), operator==(), and setID().

◆ ip_

int PassiveHit::ip_
protected

Definition at line 92 of file PassiveHit.h.

Referenced by pdgId(), and setPDGId().

◆ it_

int PassiveHit::it_
protected

Definition at line 91 of file PassiveHit.h.

Referenced by setTrackId(), and trackId().

◆ stepl_

float PassiveHit::stepl_
protected

Definition at line 93 of file PassiveHit.h.

Referenced by setStepLength(), and stepLength().

◆ time_

float PassiveHit::time_
protected

Definition at line 90 of file PassiveHit.h.

Referenced by setTime(), and time().

◆ vname_

std::string PassiveHit::vname_
protected

Definition at line 86 of file PassiveHit.h.

Referenced by operator==(), setID(), and vname().

◆ xp_

float PassiveHit::xp_
protected

Definition at line 94 of file PassiveHit.h.

Referenced by setX(), and x().

◆ yp_

float PassiveHit::yp_
protected

Definition at line 95 of file PassiveHit.h.

Referenced by setY(), and y().

◆ zp_

float PassiveHit::zp_
protected

Definition at line 96 of file PassiveHit.h.

Referenced by setZ(), and z().