#include <TimeDet.h>
|
| Double_t | fzPos |
| Double_t | fxSize |
| | z-position of veto station
|
| Double_t | fySize |
| | width of the detector
|
| Double_t | fxBar |
| | height of the detector
|
| Double_t | fyBar |
| | length of the bar
|
| Double_t | fzBar |
| | width of the bar
|
| Double_t | fdzBarCol |
| | depth of the bar
|
| Double_t | fdzBarRow |
| | z-distance between columns
|
| Int_t | fNCol |
| | z-distance between rows
|
| Int_t | fNRow |
| | Number of columns.
|
| Double_t | fxCenter |
| | Number of rows.
|
| Double_t | fyCenter |
| | x-position of the detector center
|
| Int_t | fNBars |
| | y-position of the detector center
|
| Double_t | fxOv |
| | Number of bars.
|
| Double_t | fyOv |
| | Overlap along x.
|
Definition at line 19 of file TimeDet.h.
◆ TimeDet() [1/3]
| TimeDet::TimeDet |
( |
const char * | Name, |
|
|
Bool_t | Active ) |
Name : Detector Name Active: kTRUE for active detectors (ProcessHits() will be called) kFALSE for inactive detectors
Definition at line 66 of file TimeDet.cxx.
68
82 fxOv = kDefaultBarOverlapX;
83 fyOv = kDefaultBarOverlapY;
84}
Double_t fxSize
z-position of veto station
Double_t fxBar
height of the detector
Double_t fyOv
Overlap along x.
Double_t fxCenter
Number of rows.
Int_t fNRow
Number of columns.
Int_t fNBars
y-position of the detector center
Double_t fdzBarRow
z-distance between columns
Double_t fySize
width of the detector
Double_t fyBar
length of the bar
Double_t fyCenter
x-position of the detector center
Double_t fzBar
width of the bar
Int_t fNCol
z-distance between rows
Double_t fdzBarCol
depth of the bar
Double_t fxOv
Number of bars.
◆ TimeDet() [2/3]
default constructor
Definition at line 47 of file TimeDet.cxx.
62 fxOv = kDefaultBarOverlapX;
63 fyOv = kDefaultBarOverlapY;
64}
◆ TimeDet() [3/3]
| TimeDet::TimeDet |
( |
const TimeDet & | | ) |
|
|
privatedelete |
◆ ConstructGeometry()
| void TimeDet::ConstructGeometry |
( |
| ) |
|
|
overridevirtual |
Create the detector geometry
Implements SHiP::Detector< TimeDetPoint >.
Definition at line 144 of file TimeDet.cxx.
144 {
145 TGeoVolume*
top = gGeoManager->GetTopVolume();
146
148 TGeoMedium* Scint = gGeoManager->GetMedium("polyvinyltoluene");
149
151
152 fDetector =
new TGeoVolumeAssembly(
"Timing Detector");
153
154 TGeoVolume* plate =
155 gGeoManager->MakeBox(
"TimeDet", Scint,
fxBar / 2,
fyBar / 2,
fzBar / 2);
156 plate->SetLineColor(kBlue);
157 AddSensitiveVolume(plate);
158
160 int irow = 0, icol = 0;
162
163 double xbar = 0, ybar = 0, zbar = 0;
167
168 fDetector->AddNode(plate, ib,
new TGeoTranslation(xbar, ybar, zbar));
169
170
171
172 }
173
175
177
178 return;
179}
void GetBarRowCol(int ib, int &irow, int &icol) const
double GetXCol(int ic) const
double GetZBar(int ir, int ic) const
double GetYRow(int ir) const
Int_t InitMedium(const char *name)
◆ GetBarOverlapX()
| Double_t TimeDet::GetBarOverlapX |
( |
| ) |
const |
|
inline |
◆ GetBarOverlapY()
| Double_t TimeDet::GetBarOverlapY |
( |
| ) |
const |
|
inline |
◆ GetBarRowCol()
| void TimeDet::GetBarRowCol |
( |
int | ib, |
|
|
int & | irow, |
|
|
int & | icol ) const |
◆ GetBarSizeX()
| Double_t TimeDet::GetBarSizeX |
( |
| ) |
const |
|
inline |
◆ GetBarSizeY()
| Double_t TimeDet::GetBarSizeY |
( |
| ) |
const |
|
inline |
◆ GetBarSizeZ()
| Double_t TimeDet::GetBarSizeZ |
( |
| ) |
const |
|
inline |
◆ GetNBars()
| Int_t TimeDet::GetNBars |
( |
| ) |
const |
|
inline |
◆ GetNColumns()
| Int_t TimeDet::GetNColumns |
( |
| ) |
const |
|
inline |
◆ GetNRows()
| Int_t TimeDet::GetNRows |
( |
| ) |
const |
|
inline |
◆ GetXCol()
| double TimeDet::GetXCol |
( |
int | ic | ) |
const |
◆ GetYRow()
| double TimeDet::GetYRow |
( |
int | ir | ) |
const |
◆ GetZBar()
| double TimeDet::GetZBar |
( |
int | ir, |
|
|
int | ic ) const |
◆ operator=()
◆ ProcessHits()
| Bool_t TimeDet::ProcessHits |
( |
FairVolume * | v = nullptr | ) |
|
|
override |
this method is called for each step during simulation (see FairMCApplication::Stepping())
This method is called from the MC stepping
Definition at line 86 of file TimeDet.cxx.
86 {
88
89 if (
gMC->IsTrackEntering()) {
95 }
96
97
99
100
101 if (
gMC->IsTrackExiting() ||
gMC->IsTrackStop() ||
102 gMC->IsTrackDisappeared()) {
104 return kFALSE;
105 }
106
107 fTrackID =
gMC->GetStack()->GetCurrentTrackNumber();
109 Int_t uniqueId;
110 gMC->CurrentVolID(uniqueId);
111 if (uniqueId > 1000000)
112 {
113 Int_t vcpy;
114 gMC->CurrentVolOffID(1, vcpy);
115 if (vcpy == 5) uniqueId += 4;
116 }
117
118 TParticle*
p =
gMC->GetStack()->GetCurrentTrack();
119 Int_t pdgCode =
p->GetPdgCode();
120 TLorentzVector Pos;
121 gMC->TrackPosition(Pos);
122 TLorentzVector Mom;
123 gMC->TrackMomentum(Mom);
124 Double_t xmean = (
fPos.X() + Pos.X()) / 2.;
125 Double_t ymean = (
fPos.Y() + Pos.Y()) / 2.;
126 Double_t zmean = (
fPos.Z() + Pos.Z()) / 2.;
127
128
129
130
133 pdgCode, TVector3(Pos.X(), Pos.Y(), Pos.Z()),
134 TVector3(Mom.Px(), Mom.Py(), Mom.Pz()));
135
136
137 ShipStack*
stack =
dynamic_cast<ShipStack*
>(
gMC->GetStack());
139 }
140
141 return kTRUE;
142}
TimeDetPoint * AddHit(Args &&... args)
◆ SetBarZ()
| void TimeDet::SetBarZ |
( |
Double_t | dz | ) |
|
|
inline |
◆ SetBarZspacing()
| void TimeDet::SetBarZspacing |
( |
Double_t | row, |
|
|
Double_t | column ) |
|
inline |
◆ SetSizeX()
| void TimeDet::SetSizeX |
( |
Double_t | x | ) |
|
|
inline |
◆ SetSizeY()
| void TimeDet::SetSizeY |
( |
Double_t | y | ) |
|
|
inline |
◆ SetZposition()
| void TimeDet::SetZposition |
( |
Double_t | z | ) |
|
|
inline |
Sets detector position along z
Definition at line 36 of file TimeDet.h.
◆ fdzBarCol
| Double_t TimeDet::fdzBarCol |
|
private |
depth of the bar
Definition at line 73 of file TimeDet.h.
◆ fdzBarRow
| Double_t TimeDet::fdzBarRow |
|
private |
z-distance between columns
Definition at line 74 of file TimeDet.h.
◆ fNBars
y-position of the detector center
Definition at line 82 of file TimeDet.h.
◆ fNCol
z-distance between rows
Definition at line 76 of file TimeDet.h.
◆ fNRow
Number of columns.
Definition at line 77 of file TimeDet.h.
◆ fxBar
height of the detector
Definition at line 69 of file TimeDet.h.
◆ fxCenter
| Double_t TimeDet::fxCenter |
|
private |
Number of rows.
Definition at line 79 of file TimeDet.h.
◆ fxOv
Number of bars.
Definition at line 83 of file TimeDet.h.
◆ fxSize
z-position of veto station
Definition at line 66 of file TimeDet.h.
◆ fyBar
length of the bar
Definition at line 70 of file TimeDet.h.
◆ fyCenter
| Double_t TimeDet::fyCenter |
|
private |
x-position of the detector center
Definition at line 80 of file TimeDet.h.
◆ fyOv
Overlap along x.
Definition at line 84 of file TimeDet.h.
◆ fySize
width of the detector
Definition at line 67 of file TimeDet.h.
◆ fzBar
width of the bar
Definition at line 71 of file TimeDet.h.
◆ fzPos
Detector parameters.
Definition at line 64 of file TimeDet.h.
The documentation for this class was generated from the following files: