~vpec/maus/tof_calib_read

« back to all changes in this revision

Viewing changes to src/common_cpp/Simulation/MAUSGeant4Manager.cc

  • Committer: Chris Rogers
  • Date: 2018-05-10 15:11:06 UTC
  • mfrom: (697.177.56 maus-merge)
  • Revision ID: chris.rogers@stfc.ac.uk-20180510151106-7y8hmq3fz8dwme7c
Fixes #1962 (no delta electrons) and #1970 (UserLimits are not implemented in gdml)

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
}
241
241
 
242
242
void MAUSGeant4Manager::SetVolumeInformation(MiceModule& module, G4LogicalVolume* base) {
243
 
 
 
243
  G4UserLimits* limits = new G4UserLimits(_stepMax, _trackMax, _timeMax, _keThreshold);
 
244
  base->SetUserLimits(limits);
244
245
  // G4VPhysicalVolume* world = _parser.GetWorldVolume();
245
246
  G4int nDaughters = base->GetNoDaughters();
246
247
  for ( int i = 0; i < nDaughters; i++ ) {
255
256
      // Set auxiliary information
256
257
      SetAuxInformation(module, myvol, auxlist);
257
258
    }
258
 
    //   else {
259
 
    //   _detector->GetUserLimits().push_back(new G4UserLimits(_stepMax, _trackMax,
260
 
    //   _timeMax, _keThreshold));
261
 
    //   myvol->SetUserLimits(_detector->GetUserLimits().back());
262
 
    //   }
263
 
    if ( myvol->GetNoDaughters() > 0 ) {
264
 
      // Consider adding information to the daughter volumes
265
 
      SetVolumeInformation(module, myvol);
266
 
    }
 
259
    // Consider adding information to the daughter volumes
 
260
    SetVolumeInformation(module, myvol);
267
261
  }
268
262
}
269
263