10#include "FairLogger.h"
12#include "FairRunSim.h"
14#include "TGeoManager.h"
15#include "TGeoPhysicalNode.h"
33 TGeoNavigator* nav = gGeoManager->GetCurrentNavigator();
35 TGeoVolume* volume = node->GetVolume();
36 TGeoBBox* shape =
dynamic_cast<TGeoBBox*
>(volume->GetShape());
37 Double_t origin[3] = {shape->GetOrigin()[0], shape->GetOrigin()[1],
38 shape->GetOrigin()[2]};
39 Double_t master[3] = {0, 0, 0};
40 nav->LocalToMaster(origin, master);
41 TVector3 pos = TVector3(master[0], master[1], master[2]);
59 TGeoNavigator* nav = gGeoManager->GetCurrentNavigator();
60 TString path =
"cave/DecayVolume_1/T2_1/VetoLiSc_0/";
71 else if (ShapeType == 2)
73 else if (ShapeType == 3)
75 else if (ShapeType == 4)
77 else if (ShapeType == 5)
79 else if (ShapeType == 6)
84 if (Zlayer < 10) path +=
"0";
91 node = nav->GetCurrentNode();
97 LOG(info) <<
"vetoHit: veto hit "
99 LOG(info) <<
" ADC " <<
fdigi <<
" ns";
Float_t fdigi
digitized detector hit
Int_t fDetectorID
Detector unique identifier.
TGeoNode * GetNode() const
void Print(Int_t detID) const