11#include "FairLogger.h"
13#include "FairRunSim.h"
15#include "TGeoManager.h"
36 LOG(error) <<
"strawtubesHit: null strawtubesPoint pointer";
39 TVector3 start = TVector3();
40 TVector3 stop = TVector3();
43 FairRunSim::Instance()->GetListOfModules()->FindObject(
"strawtubes"));
44 Double_t v_drift =
module->StrawVdrift();
45 Double_t sigma_spatial =
module->StrawSigmaSpatial();
48 fabs(gRandom->Gaus(p->dist2Wire(), sigma_spatial)) / v_drift;
61 return std::get<0>(decode);
68 return std::get<1>(decode);
75 return std::get<2>(decode);
82 return std::get<3>(decode);
87 cout <<
"-I- strawtubesHit: strawtubes hit " <<
" in detector " <<
fDetectorID
89 cout <<
" TDC " <<
fdigi <<
" ns" << endl;
Float_t fdigi
digitized detector hit
Int_t GetDetectorID() const
Int_t fDetectorID
Detector unique identifier.
Int_t GetStationNumber() const
Int_t GetLayerNumber() const
Int_t GetViewNumber() const
Int_t GetStrawNumber() const
static void StrawEndPoints(Int_t detID, TVector3 &bot, TVector3 &top)
static std::array< Int_t, 4 > StrawDecode(Int_t detID)