84 if (verboseLevel >= 10) {
85 G4cout <<
"MuonWallSD::ProcessHits" << G4endl;
88 const G4TouchableHistory* theTouchable =
static_cast<const G4TouchableHistory*
>(aStep->GetPreStepPoint()->GetTouchable());
89 const G4VPhysicalVolume* physVol = theTouchable->GetVolume();
90 const G4LogicalVolume* logiVol = physVol->GetLogicalVolume();
91 const G4String nameLogiVol = logiVol->GetName();
92 const G4int nScinti = physVol->GetCopyNo();
94 const G4double edep = aStep->GetTotalEnergyDeposit() * aStep->GetTrack()->GetWeight();
97 if (aStep->GetTrack()->GetDefinition()->GetPDGCharge() != 0.){
99 stepl = aStep->GetStepLength();
102 if ((edep == 0.) && (stepl == 0.)) {
109 if(nameLogiVol.find(
"MuScintillatorLayer") !=G4String::npos) {
112 }
else if(nameLogiVol.find(
"S1") !=G4String::npos) {
114 }
else if(nameLogiVol.find(
"S2") !=G4String::npos) {
116 }
else if(nameLogiVol.find(
"S3") !=G4String::npos) {
122 if (verboseLevel >= 10) {
123 G4cout << ((
m_nhits[ind] > 0)?
"Additional hit in ":
"First hit in ")
124 << ((ind<
s_nCellMu)?
"MuonWall ":
"beam counter S")
126 <<
" time=" << aStep->GetPostStepPoint()->GetGlobalTime()
127 <<
" ene=" << edep << G4endl;
131 m_hit[ind]->add(edep,0.0,0.0);