16 #include <Geant4/G4String.hh>
17 #include <Geant4/G4SystemOfUnits.hh>
18 #include <Geant4/G4Types.hh>
33 , steppingAction_(nullptr)
39 , lengthViaRapidityCoverage(
true)
40 , TrackerThickness(100)
50 , superdetector(
"NONE")
51 , light_scint_model_(
true)
52 , light_balance_(
false)
53 , light_balance_inner_radius_(0.0 *
cm)
54 , light_balance_inner_corr_(1.0)
55 , light_balance_outer_radius_(10.0 *
cm)
56 , light_balance_outer_corr_(1.0)
61 nam << na <<
"_" << lyr;
62 Name(nam.str().c_str());
93 ostringstream nodename;
102 PHG4HitContainer* cylinder_hits = findNode::getClass<PHG4HitContainer>(topNode, nodename.str());
119 PHG4HitContainer* cylinder_hits_2 = findNode::getClass<PHG4HitContainer>(topNode, nodename.str());
120 if (!cylinder_hits_2)
176 cout <<
Name() <<
" invalid crossing number " << ncross
177 <<
" how do you think we can construct a meaningful detector with this number????" << endl;
200 int ncr = fabs(ncross);
202 double c =
radius + thick / 2.;
206 alpha = ((360. /
_sciNum *
M_PI / 180.) / 2.) * ncr;
207 double sinb = sin(alpha) * b / (sqrt(b * b + c * c - 2 * b * c * cos(alpha)));
208 double beta = asin(sinb) * 180. /
M_PI;
220 cout <<
Name() <<
": SetTiltViaNcross(" << ncross <<
") setting slat angle to: " <<
_sciTilt <<
" degrees" << endl;