File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Detectors/FOCAL/simulation/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ void Detector::ConstructGeometry()
451451 }
452452
453453 float pars[4 ];
454- pars[0 ] = (mGeometry ->getFOCALSizeX () + 2 * mGeometry ->getMiddleTowerOffset ()) / 2 ;
454+ pars[0 ] = (mGeometry ->getFOCALSizeX () + 2 * mGeometry ->getMiddleTowerOffset () + mGeometry -> getDetectorOpeningRight () + mGeometry -> getDetectorOpeningLeft () ) / 2 ;
455455 pars[1 ] = mGeometry ->getFOCALSizeY () / 2 ;
456456 pars[2 ] = mGeometry ->getFOCALSizeZ () / 2 ;
457457 // Add space to place 2 SiPad layers in front of ECAL
@@ -984,7 +984,7 @@ void Detector::CreateECALGeometry()
984984 // Place the towers in the ECAL
985985 // --- Place the ECAL in FOCAL
986986 float fcal_pars[4 ];
987- fcal_pars[0 ] = (geom->getFOCALSizeX () + 2 . * geom->getMiddleTowerOffset ()) / 2 .;
987+ fcal_pars[0 ] = (geom->getFOCALSizeX () + 2 . * geom->getMiddleTowerOffset () + mGeometry -> getDetectorOpeningRight () + mGeometry -> getDetectorOpeningLeft () ) / 2 .;
988988 fcal_pars[1 ] = geom->getFOCALSizeY () / 2 .;
989989 fcal_pars[2 ] = geom->getECALSizeZ () / 2 .;
990990 fcal_pars[3 ] = 0 .;
You can’t perform that action at this time.
0 commit comments