File tree Expand file tree Collapse file tree
sbndcode/LightPropagationCorrection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -448,9 +448,9 @@ void sbnd::LightPropagationCorrection::GetPropagationTimeCorrectionPerChannel()
448448 float lightPropTimeVIS = spToCathode/fVGroupVUV + cathodeToOpDet/fVGroupVIS ; // Speed
449449 float lightPropTimeVUV = distanceToOpDet / fVGroupVUV ; // Speed of light in mm/ns for VUV
450450 float lightPropTime = 0 ;
451- if (fPDSMap .pdType (opch )==" pmt_coated" || fPDSMap .pdType (opch )==" xarapuca_vuv" )
451+ if (fPDSMap .pdType (opdet )==" pmt_coated" || fPDSMap .pdType (opdet )==" xarapuca_vuv" )
452452 lightPropTime = std::min (lightPropTimeVIS, lightPropTimeVUV);
453- else if (fPDSMap .pdType (opch )==" pmt_uncoated" || fPDSMap .pdType (opch )==" xarapuca_vis" )
453+ else if (fPDSMap .pdType (opdet )==" pmt_uncoated" || fPDSMap .pdType (opdet )==" xarapuca_vis" )
454454 lightPropTime = lightPropTimeVIS;
455455 float partPropTime = std::sqrt ((fSpacePointX [sp]-fRecoVx )*(fSpacePointX [sp]-fRecoVx ) + (fSpacePointY [sp]-fRecoVy )*(fSpacePointY [sp]-fRecoVy ) + (fSpacePointZ [sp]-fRecoVz )*(fSpacePointZ [sp]-fRecoVz ))/fSpeedOfLight ;
456456 float PropTime = lightPropTime + partPropTime;
You can’t perform that action at this time.
0 commit comments