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)
 
 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)
 
float stepLength () const
 
double time () const
 
int trackId () const
 
std::string vname () 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_
 

Detailed Description

Definition at line 9 of file PassiveHit.h.

Constructor & Destructor Documentation

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 
)
inline

Definition at line 11 of file PassiveHit.h.

19  : vname_(vname), id_(id), energy_(e), etotal_(etot), time_(t), it_(it), ip_(ip), stepl_(stepl) {}
float stepl_
Definition: PassiveHit.h:71
float etotal_
Definition: PassiveHit.h:67
std::string vname() const
Definition: PassiveHit.h:46
std::string vname_
Definition: PassiveHit.h:64
float energy_
Definition: PassiveHit.h:66
float time_
Definition: PassiveHit.h:68
unsigned int id_
Definition: PassiveHit.h:65
PassiveHit::PassiveHit ( )
inline

Definition at line 20 of file PassiveHit.h.

20 : vname_(""), id_(0), energy_(0), etotal_(0), time_(0), it_(0), ip_(0), stepl_(0) {}
float stepl_
Definition: PassiveHit.h:71
float etotal_
Definition: PassiveHit.h:67
std::string vname_
Definition: PassiveHit.h:64
float energy_
Definition: PassiveHit.h:66
float time_
Definition: PassiveHit.h:68
unsigned int id_
Definition: PassiveHit.h:65

Member Function Documentation

double PassiveHit::energy ( void  ) const
inline

Definition at line 28 of file PassiveHit.h.

References energy_.

Referenced by operator<<(), and Jet.Jet::rawEnergy().

28 { return energy_; }
float energy_
Definition: PassiveHit.h:66
double PassiveHit::energyTotal ( ) const
inline

Definition at line 30 of file PassiveHit.h.

References etotal_.

Referenced by operator<<().

30 { return etotal_; }
float etotal_
Definition: PassiveHit.h:67
const char* PassiveHit::getName ( void  ) const
inline

Definition at line 25 of file PassiveHit.h.

References name().

Referenced by plotting.Plot::draw().

25 { return name(); }
static const char * name()
Definition: PassiveHit.h:23
unsigned int PassiveHit::id ( void  ) const
inline

Definition at line 47 of file PassiveHit.h.

References id_.

Referenced by operator<<(), and setID().

47 { return id_; }
unsigned int id_
Definition: PassiveHit.h:65
static const char* PassiveHit::name ( void  )
inlinestatic

Definition at line 23 of file PassiveHit.h.

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

23 { return "PassiveHit"; }
bool PassiveHit::operator< ( const PassiveHit d) const
inline

Definition at line 58 of file PassiveHit.h.

References energy_.

58 { return energy_ < d.energy_; }
float energy_
Definition: PassiveHit.h:66
bool PassiveHit::operator== ( const PassiveHit d) const
inline

Definition at line 61 of file PassiveHit.h.

References energy_, id_, and vname_.

61 { return (energy_ == d.energy_ && id_ == d.id_ && vname_ == d.vname_); }
std::string vname_
Definition: PassiveHit.h:64
float energy_
Definition: PassiveHit.h:66
unsigned int id_
Definition: PassiveHit.h:65
int PassiveHit::pdgId ( ) const
inline

Definition at line 50 of file PassiveHit.h.

References ip_.

Referenced by Particle.Particle::__str__().

50 { return ip_; }
void PassiveHit::setEnergy ( double  e)
inline

Definition at line 29 of file PassiveHit.h.

References MillePedeFileConverter_cfg::e, and energy_.

void PassiveHit::setEnergyTotal ( double  e)
inline

Definition at line 31 of file PassiveHit.h.

References MillePedeFileConverter_cfg::e, and etotal_.

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

Definition at line 42 of file PassiveHit.h.

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

42  {
43  vname_ = vname;
44  id_ = id;
45  }
unsigned int id() const
Definition: PassiveHit.h:47
std::string vname() const
Definition: PassiveHit.h:46
std::string vname_
Definition: PassiveHit.h:64
unsigned int id_
Definition: PassiveHit.h:65
void PassiveHit::setPDGId ( int  ip)
inline

Definition at line 51 of file PassiveHit.h.

References ip_.

51 { ip_ = ip; }
void PassiveHit::setStepLength ( float  stepl)
inline

Definition at line 55 of file PassiveHit.h.

References stepl_.

55 { stepl_ = stepl; }
float stepl_
Definition: PassiveHit.h:71
void PassiveHit::setTime ( float  t)
inline

Definition at line 35 of file PassiveHit.h.

References OrderedSet::t, and time_.

35 { time_ = t; }
float time_
Definition: PassiveHit.h:68
void PassiveHit::setTrackId ( int  it)
inline

Definition at line 39 of file PassiveHit.h.

References it_.

39 { it_ = it; }
float PassiveHit::stepLength ( ) const
inline

Definition at line 54 of file PassiveHit.h.

References stepl_.

54 { return stepl_; }
float stepl_
Definition: PassiveHit.h:71
double PassiveHit::time ( ) const
inline

Definition at line 34 of file PassiveHit.h.

References time_.

Referenced by operator<<().

34 { return time_; }
float time_
Definition: PassiveHit.h:68
int PassiveHit::trackId ( ) const
inline

Definition at line 38 of file PassiveHit.h.

References it_.

Referenced by operator<<().

38 { return it_; }
std::string PassiveHit::vname ( ) const
inline

Definition at line 46 of file PassiveHit.h.

References vname_.

Referenced by operator<<(), and setID().

46 { return vname_; }
std::string vname_
Definition: PassiveHit.h:64

Member Data Documentation

float PassiveHit::energy_
protected

Definition at line 66 of file PassiveHit.h.

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

float PassiveHit::etotal_
protected

Definition at line 67 of file PassiveHit.h.

Referenced by energyTotal(), and setEnergyTotal().

unsigned int PassiveHit::id_
protected

Definition at line 65 of file PassiveHit.h.

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

int PassiveHit::ip_
protected

Definition at line 70 of file PassiveHit.h.

Referenced by pdgId(), and setPDGId().

int PassiveHit::it_
protected

Definition at line 69 of file PassiveHit.h.

Referenced by setTrackId(), and trackId().

float PassiveHit::stepl_
protected

Definition at line 71 of file PassiveHit.h.

Referenced by setStepLength(), and stepLength().

float PassiveHit::time_
protected

Definition at line 68 of file PassiveHit.h.

Referenced by setTime(), and time().

std::string PassiveHit::vname_
protected

Definition at line 64 of file PassiveHit.h.

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