Skip to content

Commit

Permalink
Merge pull request #713 from granadogmarc/MonolithicCrystal
Browse files Browse the repository at this point in the history
Monolithic crystal
  • Loading branch information
kochebina authored Nov 29, 2024
2 parents 27f0273 + 21c0977 commit 32af628
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/digits_hits/src/GateVirtualSegmentationSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,12 @@ void GateVirtualSegmentationSD::SetVirtualID( int nBins, double pitch, G4double


bin = std::floor(pos/pitch+nBins/2.);
if (bin == nBins) bin -=1;
if (bin < 0) bin = 0;
m_outputDigi->SetOutputVolumeID(bin,depth);

//std::cout<<"Pos at depth"<<depth<<" and nBins = "<<nBins<<" is = "<<pos<<" and the virtualID is = "<<bin<<std::endl;
//if (bin == nBins) std::cout<<"Pos at depth"<<depth<<" and nBins = "<<nBins<<" is = "<<pos<<" and the virtualID is = "<<bin<<std::endl;
}


Expand Down Expand Up @@ -556,4 +560,3 @@ void GateVirtualSegmentationSD::SetParameters()




0 comments on commit 32af628

Please sign in to comment.