Skip to content
Snippets Groups Projects
Commit 30ed559c authored by Cyril Lenain's avatar Cyril Lenain :surfer_tone3:
Browse files

Updating position in FissionChamber.cc

parent 53892aa7
No related branches found
No related tags found
No related merge requests found
Pipeline #226245 passed
...@@ -173,8 +173,7 @@ void FissionChamber::ConstructDetector(G4LogicalVolume* world){ ...@@ -173,8 +173,7 @@ void FissionChamber::ConstructDetector(G4LogicalVolume* world){
G4double wY = m_R[i] * sin(m_Theta[i] ) * sin(m_Phi[i] ) ; G4double wY = m_R[i] * sin(m_Theta[i] ) * sin(m_Phi[i] ) ;
G4double wZ = m_R[i] * cos(m_Theta[i] ) ; G4double wZ = m_R[i] * cos(m_Theta[i] ) ;
G4ThreeVector Det_pos = G4ThreeVector(wX, wY, wZ) ; G4ThreeVector Det_pos = G4ThreeVector(wX, wY, wZ) ;
// So the face of the detector is at R instead of the middle
Det_pos+=Det_pos.unit()*FissionChamber_NS::Thickness*0.5;
// Building Detector reference frame // Building Detector reference frame
G4double ii = cos(m_Theta[i]) * cos(m_Phi[i]); G4double ii = cos(m_Theta[i]) * cos(m_Phi[i]);
G4double jj = cos(m_Theta[i]) * sin(m_Phi[i]); G4double jj = cos(m_Theta[i]) * sin(m_Phi[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment