bug solved

parent cc26d096
......@@ -22,7 +22,8 @@ public:
G4bool ProcessHits(G4Step* step, G4TouchableHistory* ROhist);
void Initialize(G4HCofThisEvent* HCE);
//void EndOfEvent(G4HCofThisEvent* HCE);
void EndOfEvent(G4HCofThisEvent* HCE);
private:
B1HitsCollection* hitCollection;
......
......@@ -54,3 +54,7 @@ void B1SD::Initialize(G4HCofThisEvent* HCE) {
if (HCID < 0) HCID = GetCollectionID(0);
HCE->AddHitsCollection(HCID, hitCollection);
}
void B1SD::EndOfEvent(G4HCofThisEvent* HCE) {
track_id = 0;
}
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