5 #include "StMcMtdHit.hh"
6 #include "StMcTrack.hh"
7 #include "StParticleDefinition.hh"
8 #include "tables/St_g2t_mtd_hit_Table.h"
13 StMcMtdHit::StMcMtdHit()
22 StMcMtdHit::~StMcMtdHit() { }
38 int StMcMtdHit::operator!=(
const StMcMtdHit& h)
const
54 bool StMcMtdHit::sameCell(
const StMcMtdHit& h)
const
58 return h.mBackleg == mBackleg && h.mModule == mModule && h.mCell == mCell;
62 ostream& operator<<(ostream& os,
const StMcMtdHit & h)
65 <<
" backleg: " << h.backleg()
66 <<
" mod: " << h.module()
67 <<
" cell: " << h.cell()
69 <<
" pathL: " << h.pathLength()
70 <<
" tof (simu): " << h.tof()
71 <<
" position: " << h.position();
74 if(t->particleDefinition()){
75 os <<
" | g2t key : " << t->key()
76 <<
" Name: "<<(t->particleDefinition()->name()).c_str();
79 else os <<
" Parent track undefined ";
83 StMcMtdHit::StMcMtdHit(g2t_mtd_hit_st* pt):
86 pt->de, pt->ds, pt->
tof, pt->id, pt->volume_id, 0)
88 const static float kMtdPadWidth = 3.8 + 0.6;
89 const static int kNCell = 12;
91 int volume_id = pt->volume_id;
92 int ires = volume_id/100;
93 mPathLength = pt->s_track;
96 mCell = Int_t((pt->x[1] + kMtdPadWidth * kNCell/2) / kMtdPadWidth) + 1;
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...