Skip to content
Snippets Groups Projects
Commit 90eb0a22 authored by John Chapman's avatar John Chapman
Browse files

Clean-up Barcode usage in PRD_MultiTruthBuilder

parent 4e88b597
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( InDetTruthTools )
......@@ -7,7 +7,7 @@ atlas_subdir( InDetTruthTools )
atlas_add_component( InDetTruthTools
src/*.cxx
src/components/*.cxx
LINK_LIBRARIES AtlasHepMCLib TruthUtils AthenaBaseComps TrkEventPrimitives AtlasDetDescr InDetIdentifier ReadoutGeometryBase InDetReadoutGeometry InDetSimData InDetPrepRawData TrkPrepRawData TrkTruthData InDetTruthInterfaces TrkTruthTrackInterfaces )
LINK_LIBRARIES AtlasHepMCLib TruthUtils AthenaBaseComps TrkEventPrimitives AtlasDetDescr InDetIdentifier ReadoutGeometryBase InDetReadoutGeometry InDetSimData InDetPrepRawData TrkPrepRawData TrkTruthData InDetTruthInterfaces TrkTruthTrackInterfaces TruthUtils )
# Install files from the package:
atlas_install_joboptions( share/*.py )
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
*/
#include "InDetTruthTools/PRD_MultiTruthBuilder.h"
......@@ -10,6 +10,7 @@
#include "InDetIdentifier/PixelID.h"
#include "InDetReadoutGeometry/SiDetectorElement.h"
#include "ReadoutGeometryBase/SiReadoutCellId.h"
#include "TruthUtils/MagicNumbers.h"
//#include <stdexcept>
//#include <ext/functional>
......@@ -77,16 +78,16 @@ void PRD_MultiTruthBuilder::addPrepRawDatum(PRD_MultiTruthCollection *prdTruth,
for( ; nextdeposit!=lastdeposit; ++nextdeposit) {
const HepMcParticleLink& particleLink = nextdeposit->first;
ATH_MSG_VERBOSE("addPrepRawDatum(): Barcode " << particleLink.barcode() << " with charge " << nextdeposit->second );
ATH_MSG_VERBOSE("addPrepRawDatum(): Unique ID " << HepMC::uniqueID(&particleLink) << " with charge " << nextdeposit->second );
// Confirm that the energy deposited in the RDO is significant
if( isPixel && nextdeposit->second < m_pixelThreshold ){
ATH_MSG_VERBOSE("addPrepRawDatum() ignored PIXEL: Barcode " << particleLink.barcode() << " with charge " << nextdeposit->second );
ATH_MSG_VERBOSE("addPrepRawDatum() ignored PIXEL: Unique ID " << HepMC::uniqueID(particleLink) << " with charge " << nextdeposit->second );
continue;
}
if( isSCT && nextdeposit->second < m_sctThreshold ){
ATH_MSG_VERBOSE("addPrepRawDatum() ignored SCT: Barcode " << particleLink.barcode() << " with charge " << nextdeposit->second );
ATH_MSG_VERBOSE("addPrepRawDatum() ignored SCT: Unique ID " << HepMC::uniqueID(particleLink) << " with charge " << nextdeposit->second );
continue;
}
......
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