#include <TimeDetHit.h>
|
Double_t | v_drift = 15. |
|
Double_t | par [4] = { 0.0272814, 109.303, 0, 0.0539487 } |
|
Float_t | flag |
| flag
|
|
Float_t | t_1 |
|
Float_t | t_2 |
| TDC on both sides.
|
|
Definition at line 11 of file TimeDetHit.h.
◆ TimeDetHit() [1/3]
TimeDetHit::TimeDetHit |
( |
| ) |
|
◆ TimeDetHit() [2/3]
Constructor from TimeDetHit
- Parameters
-
detID | Detector ID |
t_1,t_2 | TDC on both sides |
flag | True/False, in case of pile up |
Definition at line 29 of file TimeDetHit.cxx.
31{
33 Float_t lpos, lneg;
34 Dist(
p->GetX(), lpos, lneg);
36 t_1 = gRandom->Gaus( 0, sigma ) + lneg/
v_drift +
t0 +
p->GetTime();
38 t_2 = gRandom->Gaus( 0, sigma ) + lpos/
v_drift +
t0 +
p->GetTime();
40}
Int_t fDetectorID
Detector unique identifier.
Double_t Resol(Double_t x)
void Dist(Float_t x, Float_t &lpos, Float_t &lneg)
Float_t t_2
TDC on both sides.
◆ ~TimeDetHit()
TimeDetHit::~TimeDetHit |
( |
| ) |
|
|
virtual |
◆ TimeDetHit() [3/3]
TimeDetHit::TimeDetHit |
( |
const TimeDetHit & |
point | ) |
|
|
private |
◆ ClassDef()
◆ Dist()
void TimeDetHit::Dist |
( |
Float_t |
x, |
|
|
Float_t & |
lpos, |
|
|
Float_t & |
lneg |
|
) |
| |
Definition at line 91 of file TimeDetHit.cxx.
91 {
93 auto shape =
dynamic_cast<TGeoBBox*
>(
node->GetVolume()->GetShape());
95 lpos = TMath::Abs(
pos.X() +
shape->GetDX() - x );
96 lneg = TMath::Abs(
pos.X() -
shape->GetDX() - x );
97}
◆ GetMeasurements()
std::vector< double > TimeDetHit::GetMeasurements |
( |
| ) |
|
◆ GetNode()
TGeoNode * TimeDetHit::GetNode |
( |
| ) |
|
Definition at line 130 of file TimeDetHit.cxx.
131{
132 TGeoNavigator*
nav = gGeoManager->GetCurrentNavigator();
134 Bool_t
rc =
nav->cd(path);
135 return nav->GetCurrentNode();
136}
◆ GetTime() [1/2]
std::vector< double > TimeDetHit::GetTime |
( |
| ) |
|
Definition at line 63 of file TimeDetHit.cxx.
63 {
64 TGeoBBox*
shape = (TGeoBBox*)gGeoManager->GetVolume(
"TimeDet")->GetShape();
66 Float_t lpos, lneg;
71 Double_t dt = TMath::Sqrt(r1*r1+r2*r2);
72 std::vector<double>
m;
76}
◆ GetTime() [2/2]
std::vector< double > TimeDetHit::GetTime |
( |
Double_t |
x | ) |
|
Definition at line 47 of file TimeDetHit.cxx.
47 {
48
49 Float_t lpos, lneg;
52 Double_t w1 = 1./(
r*
r);
54 Double_t w2 = 1./(
r*
r);
55 Double_t dt = 1./TMath::Sqrt(w1+w2);
57 std::vector<double>
m;
61}
◆ GetX()
Double_t TimeDetHit::GetX |
( |
| ) |
|
◆ GetXYZ()
TVector3 TimeDetHit::GetXYZ |
( |
| ) |
|
Definition at line 99 of file TimeDetHit.cxx.
100{
101 TGeoNavigator*
nav = gGeoManager->GetCurrentNavigator();
103 auto shape =
dynamic_cast<TGeoBBox*
>(
node->GetVolume()->GetShape());
105 Double_t master[3] = {0,0,0};
106 nav->LocalToMaster(origin,master);
107 TVector3
pos = TVector3(master[0],master[1],master[2]);
109}
◆ GetY()
Double_t TimeDetHit::GetY |
( |
| ) |
|
◆ GetZ()
Double_t TimeDetHit::GetZ |
( |
| ) |
|
◆ isValid()
bool TimeDetHit::isValid |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ Print()
void TimeDetHit::Print |
( |
| ) |
const |
|
virtual |
Output to screen
Definition at line 140 of file TimeDetHit.cxx.
141{
142 cout <<
"-I- TimeDetHit: TimeDet hit " <<
" in detector " <<
fDetectorID << endl;
143 cout <<
" TDC left " <<
t_1 <<
" ns TDC right " <<
t_2 <<
" ns" << endl;
144}
◆ Resol()
Double_t TimeDetHit::Resol |
( |
Double_t |
x | ) |
|
◆ setInvalid()
void TimeDetHit::setInvalid |
( |
| ) |
|
|
inline |
◆ setIsValid()
void TimeDetHit::setIsValid |
( |
| ) |
|
|
inline |
◆ SetTDC()
void TimeDetHit::SetTDC |
( |
Float_t |
val1, |
|
|
Float_t |
val2 |
|
) |
| |
|
inline |
◆ flag
◆ par
Double_t TimeDetHit::par[4] = { 0.0272814, 109.303, 0, 0.0539487 } |
|
private |
Definition at line 52 of file TimeDetHit.h.
52{ 0.0272814, 109.303, 0, 0.0539487 };
◆ t_1
◆ t_2
◆ v_drift
Double_t TimeDetHit::v_drift = 15. |
|
private |
The documentation for this class was generated from the following files: