//////////////////////////////////////////////////////////////////////////////// // Description: // This is a primitive scorer class for scoring energy deposit. // // Created: 2005-11-14 Tsukasa ASO, Akinori Kimura. // 2010-07-22 Introduce Unit specification. // /////////////////////////////////////////////////////////////////////////////// /** * @file SolidPSEnergyDeposit.cc * @author: (modified by) Ibrahin Pinera * @date 2016 SoLid - University of Antwerp */ #include "SolidPSEnergyDeposit.hh" // G4PSEnergyDeposit #include "G4PSEnergyDeposit.hh" #include "G4UnitsTable.hh" SolidPSEnergyDeposit::SolidPSEnergyDeposit(G4String name, G4int depth): G4PSEnergyDeposit(name,depth) {} SolidPSEnergyDeposit::SolidPSEnergyDeposit(G4String name, const G4String& unit, G4int depth):G4PSEnergyDeposit(name, unit, depth) {} SolidPSEnergyDeposit::~SolidPSEnergyDeposit() {} G4int SolidPSEnergyDeposit::GetIndex(G4Step* aStep) { G4StepPoint* preStep = aStep->GetPreStepPoint(); G4TouchableHistory* th = (G4TouchableHistory*)(preStep->GetTouchable()); // G4int index= th->GetReplicaNumber(indexDepth) + (th->GetReplicaNumber(indexDepth+1))*10000; G4int index= th->GetReplicaNumber(indexDepth) + (th->GetReplicaNumber(indexDepth+1) + 10*th->GetReplicaNumber(indexDepth+2))*10000; // G4cout << "The id is: " << index <