Commit 733b3d84 authored by Sanya Solodkov's avatar Sanya Solodkov Committed by Graeme Stewart
Browse files

using correct physVol->GetCopyNo() in new geometry (MinBiasScintillator-00-02-03)

	* using correct physVol->GetCopyNo() in new geometry
	* Tagging MinBiasScintillator-00-02-03
parent 90b99d50
......@@ -220,7 +220,9 @@ G4bool MinBiasScintillatorSD::ProcessHits(G4Step* aStep,G4TouchableHistory* /* R
std::string volName = physVol->GetName();
std::string volNumber = volName.substr(volName.size()-1,1);
int side = (preStepPointPosition.z()>0) ? 1 : 0;
int phi = physVol->GetCopyNo();
int phi = physVol->GetCopyNo(); // should be in the range [0,nPhi) or 16969 if there is no any copyNo
// for new geometry copyNo is taken from envelope
if ( phi > nPhi ) phi = theTouchable->GetVolume(3)->GetCopyNo();
int eta = atoi(volNumber.c_str())-1;
int ind = cell_index(side,phi,eta);
//if (msgLvl(MSG::INFO)) msg(MSG::INFO) << "R = "
......
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