24 #include "StMcCalorimeterHit.hh"
25 #include "StMcTrack.hh"
26 #include "StParticleDefinition.hh"
32 StMcCalorimeterHit::StMcCalorimeterHit():mModule(0),mEta(0),mSub(0),mdE(0),mParentTrack(0)
35 StMcCalorimeterHit::StMcCalorimeterHit(
int m,
int e,
int s,
float de)
36 :mModule(m),mEta(e),mSub(s),mdE(de),mParentTrack(0)
39 StMcCalorimeterHit::StMcCalorimeterHit(
int m,
int e,
int s,
float de,
StMcTrack* parent)
40 :mModule(m),mEta(e),mSub(s),mdE(de),mParentTrack(parent)
43 StMcCalorimeterHit::~StMcCalorimeterHit() { }
48 return h.mModule == mModule && h.mEta == mEta &&
49 h.mSub == mSub && h.mParentTrack == mParentTrack;
59 if(*
this == h) mdE += h.dE();
66 return h.mModule == mModule && h.mEta == mEta && h.mSub == mSub;
69 void StMcCalorimeterHit::setModule(
int val) { mModule = val; }
71 void StMcCalorimeterHit::setEta(
int val) { mEta = val; }
73 void StMcCalorimeterHit::setSub(
int val) { mSub = val; }
75 void StMcCalorimeterHit::setdE(
float val) { mdE = val; }
77 void StMcCalorimeterHit::setParentTrack(
StMcTrack* val) { mParentTrack = val; }
82 <<
" m: " << h.module()
88 if(t->particleDefinition()){
89 os <<
" | g2t key : " << t->key()
90 <<
" Name: "<<(t->particleDefinition()->name()).c_str();
93 else os <<
" Parent track undefined ";
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...