#include <vetoHit.h>
|
| Double_t | ft {-1.} |
| |
| Bool_t | flag {true} |
| | validity flag
|
| |
Definition at line 11 of file vetoHit.h.
◆ vetoHit() [1/3]
◆ vetoHit() [2/3]
| vetoHit::vetoHit |
( |
Int_t |
detID, |
|
|
Float_t |
adc |
|
) |
| |
Constructor with arguments
- Parameters
-
| detID | Detector ID |
| digi | digitized/measured ADC |
| flag | True/False, false if below threshold |
Definition at line 26 of file vetoHit.cxx.
◆ ~vetoHit()
◆ vetoHit() [3/3]
| vetoHit::vetoHit |
( |
const vetoHit & |
point | ) |
|
|
default |
◆ ClassDef()
◆ GetADC()
| Float_t vetoHit::GetADC |
( |
| ) |
const |
|
inline |
Definition at line 38 of file vetoHit.h.
Float_t fdigi
digitized detector hit
◆ GetEloss()
| Double_t vetoHit::GetEloss |
( |
| ) |
const |
|
inline |
◆ GetNode()
| TGeoNode * vetoHit::GetNode |
( |
| ) |
const |
Definition at line 57 of file vetoHit.cxx.
57 {
58 TGeoNode* node;
59 TGeoNavigator* nav = gGeoManager->GetCurrentNavigator();
60 TString
path =
"cave/DecayVolume_1/T2_1/VetoLiSc_0/";
61
62
67
68
69 if (ShapeType == 1)
71 else if (ShapeType == 2)
73 else if (ShapeType == 3)
75 else if (ShapeType == 4)
77 else if (ShapeType == 5)
79 else if (ShapeType == 6)
81
84 if (Zlayer < 10)
path +=
"0";
89
90 nav->cd(path);
91 node = nav->GetCurrentNode();
92 return node;
93}
Int_t fDetectorID
Detector unique identifier.
◆ GetTDC()
| Float_t vetoHit::GetTDC |
( |
| ) |
const |
|
inline |
◆ GetX()
| Double_t vetoHit::GetX |
( |
| ) |
const |
◆ GetXYZ()
| TVector3 vetoHit::GetXYZ |
( |
| ) |
const |
Definition at line 32 of file vetoHit.cxx.
32 {
33 TGeoNavigator* nav = gGeoManager->GetCurrentNavigator();
35 TGeoVolume* volume = node->GetVolume();
36 TGeoBBox* shape = dynamic_cast<TGeoBBox*>(volume->GetShape());
37 Double_t
origin[3] = {shape->GetOrigin()[0], shape->GetOrigin()[1],
38 shape->GetOrigin()[2]};
39 Double_t master[3] = {0, 0, 0};
40 nav->LocalToMaster(origin, master);
41 TVector3
pos = TVector3(master[0], master[1], master[2]);
43}
TGeoNode * GetNode() const
◆ GetY()
| Double_t vetoHit::GetY |
( |
| ) |
const |
◆ GetZ()
| Double_t vetoHit::GetZ |
( |
| ) |
const |
◆ isValid()
| bool vetoHit::isValid |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ Print()
| void vetoHit::Print |
( |
Int_t |
detID | ) |
const |
Definition at line 96 of file vetoHit.cxx.
96 {
97 LOG(info) << "vetoHit: veto hit "
99 LOG(info) <<
" ADC " <<
fdigi <<
" ns";
100}
◆ SetEloss()
| void vetoHit::SetEloss |
( |
Double_t |
val | ) |
|
|
inline |
◆ setInvalid()
| void vetoHit::setInvalid |
( |
| ) |
|
|
inline |
◆ setIsValid()
| void vetoHit::setIsValid |
( |
| ) |
|
|
inline |
◆ SetTDC()
| void vetoHit::SetTDC |
( |
Double_t |
val | ) |
|
|
inline |
◆ flag
| Bool_t vetoHit::flag {true} |
|
private |
◆ ft
| Double_t vetoHit::ft {-1.} |
|
private |
The documentation for this class was generated from the following files: