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 @@ -449,7 +449,6 @@ void sbnd::LightPropagationCorrection::GetPropagationTimeCorrectionPerChannel()
449449 double distanceToOpDet = std::sqrt (dx*dx + dy*dy + dz*dz);
450450 double cathodeToOpDet = std::sqrt (_opDetX*_opDetX + (dy/2 )*(dy/2 ) + (dz/2 )*(dz/2 )); // Distance from cathode to OpDet in mm
451451 double spToCathode = std::sqrt ( fSpacePointX [sp]*fSpacePointX [sp] + (dy/2 )*(dy/2 ) + (dz/2 )*(dz/2 )); // Distance from space point to cathode in mm
452-
453452 float lightPropTimeVIS = spToCathode/fVGroupVUV + cathodeToOpDet/fVGroupVIS ; // Speed
454453 float lightPropTimeVUV = distanceToOpDet / fVGroupVUV ; // Speed of light in mm/ns for VUV
455454 float lightPropTime = 0 ;
@@ -458,7 +457,7 @@ void sbnd::LightPropagationCorrection::GetPropagationTimeCorrectionPerChannel()
458457 else if (fOpDetType [opdet]==1 )
459458 lightPropTime = lightPropTimeVIS;
460459 else
461- throw art::Exception (art::errors::LogicError) << " OpDet Type " << fOpDetType [opdet] << " not supported . " << std::endl;
460+ continue ;
462461 float partPropTime = std::sqrt ((fSpacePointX [sp]-fRecoVx )*(fSpacePointX [sp]-fRecoVx ) + (fSpacePointY [sp]-fRecoVy )*(fSpacePointY [sp]-fRecoVy ) + (fSpacePointZ [sp]-fRecoVz )*(fSpacePointZ [sp]-fRecoVz ))/fSpeedOfLight ;
463462 float PropTime = lightPropTime + partPropTime;
464463 if (PropTime < minPropTime) minPropTime = PropTime;
You can’t perform that action at this time.
0 commit comments