16 #include <phparameter/PHParameters.h>
34 , m_SteppingAction(nullptr)
54 std::string nodename_prefix;
55 std::string nodename_CAL;
56 std::string nodename_tracking;
57 std::string nodename_virt;
70 dstNode = superSubNode;
76 nodename_prefix =
"G4HIT_" +
Name();
79 nodename_CAL = nodename_prefix +
"_CAL";
80 nodename_tracking = nodename_prefix +
"_tracking";
81 nodename_virt = nodename_prefix +
"_virt";
84 PHG4HitContainer *CAL_hits = findNode::getClass<PHG4HitContainer>(topNode, nodename_CAL);
85 PHG4HitContainer *Tracking_hits = findNode::getClass<PHG4HitContainer>(topNode, nodename_tracking);
86 PHG4HitContainer *Virt_hits = findNode::getClass<PHG4HitContainer>(topNode, nodename_virt);
102 Tracking_hits->AddLayer(
GetLayer() );
107 tmp->HitNodeNameCAL( nodename_CAL );
108 tmp->HitNodeNameTracking( nodename_tracking );
109 tmp->HitNodeNameVirt( nodename_virt);
209 std::ifstream infile;
213 infile.open( paramFile );
215 if(!infile.is_open()) {
216 std::cout <<
PHWHERE <<
"ERROR in EICG4LumiSubsystem: Failed to open parameter file " << paramFile << std::endl;
220 while( std::getline(infile, line) ) {
225 std::istringstream iss( line );
228 if( line.find(
"#") != std::string::npos ) {
continue; }
229 if( line.empty() ==
true ) {
continue; }
232 if( !(iss >> name >> value) ) {
233 std::cout <<
PHWHERE <<
" Lumi parameters: could not decode " << line << std::endl;
249 std::cout <<
PHWHERE <<
" Lumi parameters: parameter doesn't exist " << line << std::endl;