ATLAS Offline Software
Loading...
Searching...
No Matches
DRAssociationTool.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14
15
16#ifndef EVENTCOMMOND3PDMAKER_DRASSOCIATIONTOOL_H
17#define EVENTCOMMOND3PDMAKER_DRASSOCIATIONTOOL_H
18
19
23#include "xAODBase/IParticle.h"
24#include "GaudiKernel/ToolHandle.h"
25
26
27namespace D3PD {
28
29
47 : public SingleAssociationTool<Types<INavigable4Momentum, xAOD::IParticle> >
48{
49public:
51
52
59 DRAssociationTool (const std::string& type,
60 const std::string& name,
61 const IInterface* parent);
62
63
65 virtual StatusCode initialize() override;
66
67
76 virtual StatusCode configureD3PD (IAddVariable* tree,
77 const std::type_info& ti) override;
78
79
83 virtual StatusCode book() override;
84
85
92 virtual const INavigable4Momentum* get (const INavigable4Momentum& p) override;
93
94
101 virtual const xAOD::IParticle* get (const xAOD::IParticle& p) override;
102
103
104private:
106 ToolHandle<ICollectionGetterTool> m_getter;
107
109 float m_drcut;
110
112 float* m_dr;
113};
114
115
116} // namespace D3PD
117
118
119
120#endif // not EVENTCOMMOND3PDMAKER_DRASSOCIATIONTOOL_H
Abstract interface to get a collection of objects and iterate over it.
Type-safe wrapper for single associator tools.
SingleAssociationTool< Types< INavigable4Momentum, xAOD::IParticle > > Base
virtual const INavigable4Momentum * get(const INavigable4Momentum &p) override
Return the target object.
virtual StatusCode book() override
Create any needed tuple variables.
DRAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
virtual StatusCode initialize() override
Standard Gaudi initialize method.
virtual StatusCode configureD3PD(IAddVariable *tree, const std::type_info &ti) override
Configure during initialization: type-check.
float * m_dr
Variable: DR to associated object.
ToolHandle< ICollectionGetterTool > m_getter
Property: The getter for the target collection.
float m_drcut
Property: DR cut.
Common interface for adding a variable to a tuple.
SingleAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Class providing the definition of the 4-vector interface.
Block filler tool for noisy FEB information.
TChain * tree