 |
ATLAS Offline Software
|
#include <IsolationTrackDecorator.h>
◆ IsolationTrackDecorator()
DerivationFramework::IsolationTrackDecorator::IsolationTrackDecorator |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~IsolationTrackDecorator()
virtual DerivationFramework::IsolationTrackDecorator::~IsolationTrackDecorator |
( |
| ) |
|
|
virtualdefault |
◆ addBranches()
StatusCode DerivationFramework::IsolationTrackDecorator::addBranches |
( |
| ) |
const |
|
overridevirtual |
Loop over tracks
Only decorate those passed selection
check flag
track isolation
Definition at line 103 of file IsolationTrackDecorator.cxx.
105 const EventContext& ctx = Gaudi::Hive::currentContext();
111 std::vector<int>
entries(toDecorate->size(), 1);
113 entries = m_parser->evaluateAsVector();
114 if (
entries.size() != toDecorate->size()) {
115 ATH_MSG_ERROR(
"Sizes incompatible! Are you sure your selection string used ID TrackParticles?");
116 return StatusCode::FAILURE;
121 std::vector<SG::WriteDecorHandle<xAOD::TrackParticleContainer, float>> ptconeDecorators;
125 std::vector<SG::WriteDecorHandle<xAOD::TrackParticleContainer, float>> ptvarconeDecorators;
129 std::vector<SG::WriteDecorHandle<xAOD::TrackParticleContainer, float>> topoetconeDecorators;
133 std::vector<SG::WriteDecorHandle<xAOD::TrackParticleContainer, float>> topoetconeNonCoreConeDecorators;
146 if (!
entries[ipar++]) IsPassed=
false;
164 ptconeDecorators[
i](*particle) = resultTrack.
ptcones[
i];
173 std::vector<xAOD::Iso::IsolationType> ptconeTypes = {};
175 int iso_tmp =
static_cast<int>(isoType);
193 topoetconeDecorators[
i](*particle) = resultCalo.
etcones[
i];
201 topoetconeNonCoreConeDecorators[
i](*particle) = resultCaloNonCoreCone.
etcones[
i];
204 ATH_MSG_WARNING(
"Failed to apply the topo calo isolation for a particle ( non CoreCone )");
211 ptconeDecorators[
i](*particle) = -999.e3;
214 ptvarconeDecorators[
i](*particle) = -999.e3;
217 topoetconeDecorators[
i](*particle) = -999.e3;
218 topoetconeNonCoreConeDecorators[
i](*particle) = -999.e3;
224 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::IsolationTrackDecorator::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode DerivationFramework::IsolationTrackDecorator::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_caloIsolationTool
◆ m_dec_trkFlagKey
◆ m_diff_ptvarcone
IntegerProperty DerivationFramework::IsolationTrackDecorator::m_diff_ptvarcone |
|
private |
◆ m_iso
IntegerArrayProperty DerivationFramework::IsolationTrackDecorator::m_iso |
|
private |
◆ m_iso_suffix
StringArrayProperty DerivationFramework::IsolationTrackDecorator::m_iso_suffix |
|
private |
◆ m_prefix
StringProperty DerivationFramework::IsolationTrackDecorator::m_prefix |
|
private |
◆ m_ptconeDecoratorsKey
◆ m_ptconeTypes
◆ m_ptvarconeDecoratorsKey
◆ m_ptvarconeTypes
◆ m_selectionString
StringProperty DerivationFramework::IsolationTrackDecorator::m_selectionString |
|
private |
◆ m_selFlag
StringProperty DerivationFramework::IsolationTrackDecorator::m_selFlag |
|
private |
◆ m_selFlagValue
IntegerProperty DerivationFramework::IsolationTrackDecorator::m_selFlagValue |
|
private |
◆ m_topoclusCorrList
◆ m_topoconeCorrList
◆ m_topoetconeDecoratorsKey
◆ m_topoetconeNonCoreConeDecoratorsKey
◆ m_topoetconeTypes
◆ m_trackContainerKey
Initial value:{
this, "TargetContainer", "InDetTrackParticles", "track particle container name"}
Definition at line 62 of file IsolationTrackDecorator.h.
◆ m_trackIsolationTool
ToolHandle<xAOD::ITrackIsolationTool> DerivationFramework::IsolationTrackDecorator::m_trackIsolationTool {this, "TrackIsolationTool", ""} |
|
private |
◆ m_trkCorrList
The documentation for this class was generated from the following files:
std::vector< xAOD::Iso::IsolationType > m_ptvarconeTypes
StringArrayProperty m_iso_suffix
@ topoetcone
Topo-cluster ET-sum.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackContainerKey
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
@ ptvarcone20
Mini-Isolation http://arxiv.org/abs/1007.2221.
std::vector< float > ptvarcones_10GeVDivPt
xAOD::CaloCorrection m_topoclusCorrList
IsolationFlavour
Enumeration for different ways of calculating isolation in xAOD files.
@ coreTrackPtr
tracks pointer
ToolHandle< xAOD::ITrackIsolationTool > m_trackIsolationTool
Athena configured tools.
SG::WriteDecorHandleKeyArray< xAOD::TrackParticleContainer > m_topoetconeDecoratorsKey
Iso::IsolationTrackCorrectionBitset trackbitset
@ ptcone20
Track isolation.
xAOD::TrackCorrection m_trkCorrList
const std::string & key() const
Return the StoreGate ID for the referenced object.
@ ptvarcone
mini isolation
IsolationType
Overall enumeration for isolation types in xAOD files.
Handle class for adding a decoration to an object.
std::vector< xAOD::Iso::IsolationType > m_topoetconeTypes
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
std::vector< xAOD::Iso::IsolationType > m_ptconeTypes
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_trkFlagKey
StringProperty m_selectionString
SG::WriteDecorHandleKeyArray< xAOD::TrackParticleContainer > m_ptconeDecoratorsKey
xAOD::CaloCorrection m_topoconeCorrList
std::vector< float > etcones
@ coreCone
core energy (in dR<0.1).
SG::WriteDecorHandleKeyArray< xAOD::TrackParticleContainer > m_topoetconeNonCoreConeDecoratorsKey
std::vector< float > ptcones
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
#define ATH_MSG_WARNING(x)
SG::WriteDecorHandleKeyArray< xAOD::TrackParticleContainer > m_ptvarconeDecoratorsKey
IntegerProperty m_selFlagValue
ToolHandle< xAOD::ICaloTopoClusterIsolationTool > m_caloIsolationTool
IntegerArrayProperty m_iso
Iso::IsolationCaloCorrectionBitset calobitset
@ pileupCorrection
fully corrected
IntegerProperty m_diff_ptvarcone