Skip to content

Commit 6cdd11d

Browse files
committed
Remove duplicate check on testmaterial1
1 parent c660c64 commit 6cdd11d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sbncode/SBNEventWeight/Calculators/Geant4/Geant4WeightCalc.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ std::vector<float> Geant4WeightCalc::GetWeight(art::Event& e, size_t itruth ) {
297297
double Z = p.Position(i).Z();
298298
geo::Point_t testpoint1 { X, Y, Z };
299299
const TGeoMaterial* testmaterial1 = fGeometryService->Material( testpoint1 );
300-
if( ! testmaterial1 || testmaterial1 == nullptr ) {
300+
if( ! testmaterial1 ) {
301301
break; // The trajectory point is outside the world, or the geometry service is unable to handle the point
302302
}
303303
//For now, just going to reweight the points within the LAr of the TPC

0 commit comments

Comments
 (0)