#include <strawtubesHit.h>
|
| Bool_t | flag {true} |
| | validity flag
|
Definition at line 11 of file strawtubesHit.h.
◆ strawtubesHit() [1/4]
| strawtubesHit::strawtubesHit |
( |
| ) |
|
Default constructor
Definition at line 27 of file strawtubesHit.cxx.
27: SHiP::DetectorHit() {}
◆ strawtubesHit() [2/4]
| strawtubesHit::strawtubesHit |
( |
Int_t | detID, |
|
|
Float_t | tdc ) |
Constructor with arguments
- Parameters
-
| detID | Detector ID |
| digi | digitized/measured TDC |
| flag | True/False, false if there is another hit with smaller tdc |
Definition at line 29 of file strawtubesHit.cxx.
30 : SHiP::DetectorHit(detID, tdc) {}
◆ strawtubesHit() [3/4]
Definition at line 33 of file strawtubesHit.cxx.
34 : SHiP::DetectorHit() {
35 if (!p) {
36 LOG(error) << "strawtubesHit: null strawtubesPoint pointer";
37 return;
38 }
39 TVector3 start = TVector3();
40 TVector3 stop = TVector3();
42 strawtubes* module = dynamic_cast<strawtubes*>(
43 FairRunSim::Instance()->GetListOfModules()->FindObject("strawtubes"));
44 Double_t v_drift = module->StrawVdrift();
45 Double_t sigma_spatial = module->StrawSigmaSpatial();
47 Double_t t_drift =
48 fabs(gRandom->Gaus(
p->dist2Wire(), sigma_spatial)) / v_drift;
51}
Float_t fdigi
digitized detector hit
Int_t fDetectorID
Detector unique identifier.
static void StrawEndPoints(Int_t detID, TVector3 &bot, TVector3 &top)
◆ ~strawtubesHit()
| strawtubesHit::~strawtubesHit |
( |
| ) |
|
|
overridedefault |
◆ strawtubesHit() [4/4]
◆ ClassDefOverride()
◆ GetLayerNumber()
| Int_t strawtubesHit::GetLayerNumber |
( |
| ) |
const |
Definition at line 71 of file strawtubesHit.cxx.
71 {
74
75 return std::get<2>(decode);
76}
Int_t GetDetectorID() const
static std::array< Int_t, 4 > StrawDecode(Int_t detID)
◆ GetStationNumber()
| Int_t strawtubesHit::GetStationNumber |
( |
| ) |
const |
Accessors
Definition at line 57 of file strawtubesHit.cxx.
57 {
60
61 return std::get<0>(decode);
62}
◆ GetStrawNumber()
| Int_t strawtubesHit::GetStrawNumber |
( |
| ) |
const |
◆ GetTDC()
| Float_t strawtubesHit::GetTDC |
( |
| ) |
const |
|
inline |
◆ GetViewNumber()
| Int_t strawtubesHit::GetViewNumber |
( |
| ) |
const |
◆ isValid()
| bool strawtubesHit::isValid |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ Print() [1/2]
| void strawtubesHit::Print |
( |
| ) |
const |
Definition at line 86 of file strawtubesHit.cxx.
86 {
87 cout <<
"-I- strawtubesHit: strawtubes hit " <<
" in detector " <<
fDetectorID
88 << endl;
89 cout <<
" TDC " <<
fdigi <<
" ns" << endl;
90}
◆ Print() [2/2]
◆ setInvalid()
| void strawtubesHit::setInvalid |
( |
| ) |
|
|
inline |
◆ flag
| Bool_t strawtubesHit::flag {true} |
|
private |
The documentation for this class was generated from the following files: