Skip to content
Snippets Groups Projects

RpcSensitivieDetectors - Remove never implemented rotation logic

Closed Johannes Junggeburth requested to merge jojungge/athena:NoOnePlansToRotateSimGeo into main
1 file
+ 2
11
Compare changes
  • Side-by-side
  • Inline
@@ -50,8 +50,6 @@ G4bool RPCSensitiveDetector::ProcessHits(G4Step* aStep,G4TouchableHistory*) {
const G4AffineTransform trans = track->GetTouchable()->GetHistory()->GetTopTransform(); // from global to local
// necessary to assign correct identifiers
int rpcIsRotated = 0;
// int layer = 0;
std::string tech;
// fields for the RPC identifier construction
@@ -158,7 +156,6 @@ G4bool RPCSensitiveDetector::ProcessHits(G4Step* aStep,G4TouchableHistory*) {
}
int kk=gmID;
if (kk < 0) rpcIsRotated=1;
doubletR =(abs(kk)%1000)/100;
mydbZ = abs(int(kk%10));
@@ -180,21 +177,15 @@ G4bool RPCSensitiveDetector::ProcessHits(G4Step* aStep,G4TouchableHistory*) {
int kk=touchHist->GetVolume(i)->GetCopyNo();
if (kk < 0) rpcIsRotated=1;
doubletR=(abs(kk)%1000)/100;
} else if ((npos = volName.find("layer")) != std::string::npos) {
int copyNo = touchHist->GetVolume(i)->GetCopyNo();
gasGap = copyNo;
if (copyNo == 1) {
rpcIsRotated ? gasGap = 2 : gasGap = 1;
} else if (copyNo ==2) {
rpcIsRotated ? gasGap = 1 : gasGap = 2;
} else if (copyNo ==3) {
gasGap = 3;
}
} else if((npos = volName.find("gas volume")) != std::string::npos) {
int copyNo = touchHist->GetVolume(i)->GetCopyNo();
Loading