11#include "FairLogger.h"
13#include "FairRunSim.h"
14#include "TGeoManager.h"
32 :
SHiP::DetectorHit(detID, tdc) {}
36 :
SHiP::DetectorHit() {
38 LOG(error) <<
"strawtubesHit: null strawtubesPoint pointer";
41 TVector3 start = TVector3();
42 TVector3 stop = TVector3();
45 FairRunSim::Instance()->GetListOfModules()->FindObject(
"strawtubes"));
50 fabs(gRandom->Gaus(p->dist2Wire(), sigma_spatial)) / v_drift;
51 fdigi = t0 + p->GetTime() + t_drift + (stop[0] - p->GetX()) / speedOfLight;
62 return std::get<0>(decode);
69 return std::get<1>(decode);
76 return std::get<2>(decode);
83 return std::get<3>(decode);
88 cout <<
"-I- strawtubesHit: strawtubes hit " <<
" in detector " <<
fDetectorID
90 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
Double_t StrawSigmaSpatial()
static void StrawEndPoints(Int_t detID, TVector3 &top, TVector3 &bot)
static std::array< Int_t, 4 > StrawDecode(Int_t detID)