16 #include <Geant4/G4String.hh>
17 #include <Geant4/G4SystemOfUnits.hh>
18 #include <Geant4/G4Types.hh>
31 , steppingAction_(nullptr)
37 , lengthViaRapidityCoverage(
true)
38 , TrackerThickness(100)
48 , superdetector(
"NONE")
49 , light_scint_model_(
true)
50 , light_balance_(
false)
51 , light_balance_inner_radius_(0.0 *
cm)
52 , light_balance_inner_corr_(1.0)
53 , light_balance_outer_radius_(10.0 *
cm)
54 , light_balance_outer_corr_(1.0)
72 G4double detlength =
length;
100 PHG4HitContainer* cylinder_hits = findNode::getClass<PHG4HitContainer>(topNode, nodename);
116 PHG4HitContainer* cylinder_hits_2 = findNode::getClass<PHG4HitContainer>(topNode, nodename);
117 if (!cylinder_hits_2)
173 std::cout <<
Name() <<
" invalid crossing number " << ncross
174 <<
" how do you think we can construct a meaningful detector with this number????" << std::endl;
197 int ncr = std::abs(ncross);
199 double c =
radius + thick / 2.;
203 alpha = ((360. /
_sciNum * M_PI / 180.) / 2.) * ncr;
204 double sinb = sin(alpha) * b / (sqrt(b * b + c * c - 2 * b * c * cos(alpha)));
205 double beta = asin(sinb) * 180. / M_PI;
217 std::cout <<
Name() <<
": SetTiltViaNcross(" << ncross <<
") setting slat angle to: " <<
_sciTilt <<
" degrees" << std::endl;