3 #include "TGeoManager.h"
4 #include "St_geant_Maker/St_geant_Maker.h"
33 #define agcstep agcstep_
70 geant3 = St_geant_Maker::instance()->Geant3();
94 Double_t x =
ctrak->vect[0];
95 Double_t y =
ctrak->vect[1];
98 Double_t r = TMath::Sqrt(x*x+y*y);
120 if ( 0 ==
ctrak->sleng )
139 if ( r <
rmin )
return;
155 for ( Int_t i=0;i<
cvolu->nlevel;i++ )
159 memcpy( buff, &
cvolu->names[i],
sizeof(
cvolu->names[i]) );
161 TString volume;
for ( Int_t ii=0;ii<4;ii++ ) volume += buff[ii];
163 path += volume; path +=
"_";
164 path +=
cvolu->number[i];
168 std::hash<std::string> hash_fn;
169 mStep->
volNameHash = hash_fn(std::string(path.Data()));
176 mFile = TFile::Open( filename,
"recreate" );
177 mTree =
new TTree(
"stepping",
"custom stepping tree" );
ClassImp(AgUStep) extern"C"
void Clear(const Option_t *opts="")
void Init(const Char_t *filename="")
Initialize stepping routine. Opens TFile and creates TTree.
static TGiant3 * geant3
Pointer to all geant3 structures.
static AgUStep * Instance()
TGeoManager * gGeoManager
static AgUStep * sInstance