~t-carlisle1/maus/test

« back to all changes in this revision

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

  • Committer: Timothy Carlisle (MICE 2008)
  • Date: 2011-07-20 16:46:16 UTC
  • mfrom: (486.3.74 maus)
  • Revision ID: carlisle@pplxint6.physics.ox.ac.uk-20110720164616-akbrtz3f4d9pwv7n
asd

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
        GetTracking()->SetTracks(Json::Value(Json::objectValue));
107
107
    if (GetStepping()->GetWillKeepSteps())
108
108
        GetStepping()->SetSteps(Json::Value(Json::arrayValue));
 
109
    GetGeometry()->ClearSDHits();
109
110
}
110
111
 
111
112
void MAUSGeant4Manager::EndOfEventAction(const G4Event *anEvent) {
112
113
    //  For each detector i
 
114
    _event["hits"] = Json::Value(Json::arrayValue);
113
115
    for (unsigned int i = 0; i < GetGeometry()->GetSDSize(); i++) {
114
116
      //  Retrieve detector i's hits
115
117
      std::vector<Json::Value> hits = GetGeometry()->GetSDHits(i);