Commit 86f0c55d authored by Frank Gaede's avatar Frank Gaede
Browse files

fix end of event printout

parent 922c715f
//
///
// ********************************************************************
// * License and Disclaimer *
// * *
......@@ -144,13 +144,13 @@ void SimpleCaloEventAction::EndOfEventAction(const G4Event *evt)
G4ThreeVector radial = vtx.cross(l);
}
}
G4cout << " energy deposited by later: " << G4endl;
G4cout << " energy deposited per layer [GeV]: " << G4endl;
G4double max = 0;
G4int index = 0;
//Find layer with maximum energy
for (int i=0;i<100;i++)
{
G4cout << " " << i << " " << energyinlayer[i] << G4endl;
G4cout << " " << i << " " << energyinlayer[i] / GeV << G4endl;
if (max <energyinlayer[i])
{
......@@ -158,7 +158,7 @@ void SimpleCaloEventAction::EndOfEventAction(const G4Event *evt)
index = i;
}
}
G4cout << " max energy in layer " << index << " : " << max << G4endl;
G4cout << " max energy in layer [GeV] " << index << " : " << max / GeV << G4endl;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment