Commit d2ba76e7 authored by Elidiano Tronchin's avatar Elidiano Tronchin
Browse files

* FIxing bug in Calorimeter Scorer

	- The Hit Level vector was not cleared at the begining of event
parent d2618c84
......@@ -61,11 +61,10 @@ G4bool PS_Calorimeter::ProcessHits(G4Step* aStep, G4TouchableHistory*){
static unsigned int mysize = m_NestingLevel.size();
t_Energy = aStep->GetTotalEnergyDeposit();
t_Time = aStep->GetPreStepPoint()->GetGlobalTime();
for(unsigned int i = 0 ; i < mysize ; i++){
// Check if the particle has interact before, if yes, add up the energies.
vector<CalorimeterData>::iterator it;
it = m_Data.find(CalorimeterData::CalculateIndex(t_Level));
Markdown is supported
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