#include <vetoHit.h>
Definition at line 10 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 25 of file vetoHit.cxx.
◆ ~vetoHit()
◆ vetoHit() [3/3]
vetoHit::vetoHit |
( |
const vetoHit & |
point | ) |
|
|
private |
◆ ClassDef()
◆ GetADC()
Float_t vetoHit::GetADC |
( |
| ) |
const |
|
inline |
Definition at line 39 of file vetoHit.h.
Float_t fdigi
digitized detector hit
◆ GetEloss()
Double_t vetoHit::GetEloss |
( |
| ) |
|
|
inline |
◆ GetNode()
TGeoNode * vetoHit::GetNode |
( |
| ) |
|
Definition at line 61 of file vetoHit.cxx.
62{
64 TGeoNavigator*
nav = gGeoManager->GetCurrentNavigator();
65 TString
path =
"cave/DecayVolume_1/T2_1/VetoLiSc_0/";
66
68 Int_t blockNr = (
fDetectorID-ShapeType*100000)/10000;
69 Int_t Zlayer = (
fDetectorID-ShapeType*100000-blockNr*10000)/100;
70 Int_t number = (
fDetectorID-ShapeType*100000-blockNr*10000-Zlayer*100)/10;
71
72 if(ShapeType==1)
path+=
"LiScX_";
73 else if(ShapeType==2)
path+=
"LiScY_";
74 else if(ShapeType==3)
path+=
"LiSc_L1_";
75 else if(ShapeType==4)
path+=
"LiSc_R1_";
76 else if(ShapeType==5)
path+=
"LiSc_L2_";
77 else if(ShapeType==6)
path+=
"LiSc_R2_";
78
81 if(ShapeType<3){
82 if(Zlayer<10)
path+=
"0";
84 }
85 else {
87 }
91
95}
Int_t fDetectorID
Detector unique identifier.
◆ GetTDC()
Float_t vetoHit::GetTDC |
( |
| ) |
const |
|
inline |
◆ GetX()
Double_t vetoHit::GetX |
( |
| ) |
|
◆ GetXYZ()
TVector3 vetoHit::GetXYZ |
( |
| ) |
|
Definition at line 38 of file vetoHit.cxx.
39{
40 TGeoNavigator*
nav = gGeoManager->GetCurrentNavigator();
42 TGeoBBox*
shape = (TGeoBBox*)
node->GetVolume()->GetShape();
44 Double_t master[3] = {0,0,0};
45 nav->LocalToMaster(origin,master);
46 TVector3
pos = TVector3(master[0],master[1],master[2]);
48}
◆ GetY()
Double_t vetoHit::GetY |
( |
| ) |
|
◆ GetZ()
Double_t vetoHit::GetZ |
( |
| ) |
|
◆ isValid()
bool vetoHit::isValid |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ Print()
void vetoHit::Print |
( |
Int_t |
detID | ) |
const |
|
virtual |
Output to screen
Definition at line 100 of file vetoHit.cxx.
101{
102 cout <<
"-I- vetoHit: veto hit " <<
" in detector " <<
fDetectorID << endl;
103 cout <<
" ADC " <<
fdigi <<
" ns" << endl;
104}
◆ 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
◆ ft
The documentation for this class was generated from the following files: