#include <strawtubesHit.h>
|
| Bool_t | flag {true} |
| | validity flag
|
| |
Definition at line 11 of file strawtubesHit.h.
◆ strawtubesHit() [1/4]
| strawtubesHit::strawtubesHit |
( |
| ) |
|
◆ 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 31 of file strawtubesHit.cxx.
◆ strawtubesHit() [3/4]
Definition at line 35 of file strawtubesHit.cxx.
37 if (!p) {
38 LOG(error) << "strawtubesHit: null strawtubesPoint pointer";
39 return;
40 }
41 TVector3 start = TVector3();
42 TVector3 stop = TVector3();
45 FairRunSim::Instance()->GetListOfModules()->FindObject("strawtubes"));
49 Double_t t_drift =
50 fabs(gRandom->Gaus(
p->dist2Wire(), sigma_spatial)) / v_drift;
51 fdigi =
t0 +
p->GetTime() + t_drift + (stop[0] -
p->GetX()) / speedOfLight;
52}
Float_t fdigi
digitized detector hit
Int_t fDetectorID
Detector unique identifier.
Double_t StrawSigmaSpatial()
static void StrawEndPoints(Int_t detID, TVector3 &top, TVector3 &bot)
◆ ~strawtubesHit()
| strawtubesHit::~strawtubesHit |
( |
| ) |
|
|
overridedefault |
◆ strawtubesHit() [4/4]
◆ ClassDef()
◆ GetLayerNumber()
| Int_t strawtubesHit::GetLayerNumber |
( |
| ) |
const |
Definition at line 72 of file strawtubesHit.cxx.
72 {
75
76 return std::get<2>(decode);
77}
Int_t GetDetectorID() const
static std::array< Int_t, 4 > StrawDecode(Int_t detID)
◆ GetStationNumber()
| Int_t strawtubesHit::GetStationNumber |
( |
| ) |
const |
Accessors
Definition at line 58 of file strawtubesHit.cxx.
58 {
61
62 return std::get<0>(decode);
63}
◆ 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()
| void strawtubesHit::Print |
( |
| ) |
const |
Definition at line 87 of file strawtubesHit.cxx.
87 {
88 cout <<
"-I- strawtubesHit: strawtubes hit " <<
" in detector " <<
fDetectorID
89 << endl;
90 cout <<
" TDC " <<
fdigi <<
" ns" << endl;
91}
◆ setInvalid()
| void strawtubesHit::setInvalid |
( |
| ) |
|
|
inline |
◆ flag
| Bool_t strawtubesHit::flag {true} |
|
private |
The documentation for this class was generated from the following files: