![]() |
ATLAS Offline Software
|
For every electron find jets in a cone and store lifetime, signed IP, and PTRel of relation. More...
#include <ElectronJetDRAssociator.h>
Public Types | |
| typedef MultiAssociationTool< xAOD::Electron, xAOD::Jet > | Base |
Public Member Functions | |
| ElectronJetDRAssociator (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. | |
| virtual StatusCode | reset (const xAOD::Electron &eg) override |
| Start the iteration for a new association. | |
| virtual const xAOD::Jet * | next () override |
| Return a pointer to the next element in the association. | |
| virtual StatusCode | book () final |
| Create any needed tuple variables. | |
| virtual const std::type_info & | fromTypeinfo () const |
Return the std::type_info for the source of the association. | |
| virtual StatusCode | resetUntyped (const void *p) |
| Start the iteration for a new association. | |
| virtual const std::type_info & | elementTypeinfo () const |
| Return the element type for the target of the association. | |
| virtual const void * | nextUntyped () |
| Return a pointer to the next element in the association. | |
| virtual void | releaseElementUntyped (const void *p) |
| Release an object retrieved from the association. | |
| virtual void | releaseElement (const TO_T *p) |
| Release an object retrieved from the association. | |
| MultiAssociationToolImpl (const std::string &type, const std::string &name, const IInterface *parent) | |
| Standard Gaudi tool constructor. | |
| StatusCode | configureD3PD (IAddVariable *tree) |
| Configure the parent tree. | |
| virtual StatusCode | addVariable (const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0) |
| Add a variable to the tuple. | |
| template<class T> | |
| StatusCode | addVariable (const std::string &name, T *&ptr, const std::string &docstring="") |
Make the template implementation from IAddVariable visible. | |
| template<class T, class U> | |
| StatusCode | addVariable (const std::string &name, T *&ptr, const std::string &docstring, const U &defval) |
Make the template implementation from IAddVariable visible. | |
| virtual StatusCode | addDimensionedVariable (const std::string &name, const std::type_info &ti, void *&ptr, const std::string &dim, const std::string &docstring="", const void *defval=0) |
| Add a variable to the tuple. | |
| template<class T> | |
| StatusCode | addDimensionedVariable (const std::string &name, T *&ptr, const std::string &dim, const std::string &docstring="") |
| Add a variable to the tuple. | |
| template<class T, class U> | |
| StatusCode | addDimensionedVariable (const std::string &name, T *&ptr, const std::string &dim, const std::string &docstring, const U &defval) |
| Add a variable to the tuple. | |
Protected Member Functions | |
| const void * | doConversion (const void *p) |
| Helper to convert pointers to source objects. | |
| StatusCode | configureMulti (D3PD::IAddVariable *tree, const std::type_info &ti, const std::vector< const std::type_info * > &tis, size_t &which) |
| Configure during initialization: type-check. | |
Protected Attributes | |
| ObjectMetadata | m_metadata |
| Metadata about the variables created by this object. | |
Private Member Functions | |
| StatusCode | findReducedPt (const xAOD::Electron *eg, const xAOD::Jet *j, float &reducedPt) |
| Find the pT of the jet with electron removed. | |
| StatusCode | findSignedIPAndPTRelEleJetPair (const xAOD::Electron *eg, const xAOD::Jet *j0, float &signedIP, float &PTRel) |
| Find the signed impact parameter and PTRel of EG's track relative to the beamspot. | |
Private Attributes | |
| std::string | m_targetLabel |
| Property: Target label for the getter for the jets to which to associate. | |
| std::string | m_vertexContainerName |
| Property: Vertex container name. | |
| double | m_drcut |
| Property: DR cut between electrons and jets. | |
| ToolHandle< Trk::ITrackToVertexIPEstimator > | m_trackToVertexIPEstimator { this, "TrackToVertexIPEstimator", "Trk::TrackToVertexIPEstimator", "" } |
| Property: Tool for the estimation of the IPs to the vertex. | |
| ToolHandle< ICollectionGetterRegistryTool > | m_registry |
| Property: The ICollectionGetterRegistryTool instance. | |
| ICollectionGetterTool * | m_target |
| Getter defining the collection within which to index. | |
| const xAOD::Electron * | m_eg |
| float * | m_dr |
| Variable: DR between electron and jet. | |
| float * | m_signedIP |
| Variable: Signed impact parameter between electron and jet. | |
| float * | m_ptrel |
| Variable: Relative Pt between electron and jet. | |
| unsigned int * | m_jetSize |
| Variable: Number of jet constituents. | |
| float * | m_reducedPt |
| Variable: Jet pT with electron removed. | |
| std::string | m_prefix |
| Parameter: source object prefix. | |
| std::string | m_blockName |
| Property: the name of this block. | |
| TypeConverter | m_inputConverter |
| Helper to convert source object pointers. | |
| const std::string & | m_suffix |
| Reference to the variable suffix. | |
| IAddVariable * | m_tree |
| Reference to the block name. | |
Static Private Attributes | |
| static const std::string | s_emptyString |
| Used to provide a default value for blockName. | |
For every electron find jets in a cone and store lifetime, signed IP, and PTRel of relation.
Definition at line 42 of file ElectronJetDRAssociator.h.
Definition at line 46 of file ElectronJetDRAssociator.h.
| D3PD::ElectronJetDRAssociator::ElectronJetDRAssociator | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Standard Gaudi tool constructor.
| type | The name of the tool type. |
| name | The tool name. |
| parent | The tool's Gaudi parent. |
Definition at line 36 of file ElectronJetDRAssociator.cxx.
|
virtualinherited |
Add a variable to the tuple.
| name | The name of the variable. |
| type | The type of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| dim | Dimension for the variable. (Presently unimplemented!) |
| docstring | Documentation string for this variable. |
| defval | Pointer to the default value to use for this variable. Null for no default (generally means to fill with zeros). Of the type given by ti. Only works for basic types. |
If called from the constructor, the only effect is to clear ptr.
Implements D3PD::IAddVariable.
Definition at line 123 of file AddVariable.cxx.
|
inherited |
Add a variable to the tuple.
| name | The name of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| dim | Dimension for the variable. (Presently unimplemented!) |
| docstring | Documentation string for this variable. |
| defval | Pointer to the default value to use for this variable. Only works for basic types. |
If called from the constructor, the only effect is to clear ptr.
|
inherited |
Add a variable to the tuple.
| name | The name of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| dim | Dimension for the variable. (Presently unimplemented!) |
| docstring | Documentation string for this variable. |
If called from the constructor, the only effect is to clear ptr.
|
virtualinherited |
Add a variable to the tuple.
| name | The name of the variable. |
| type | The type of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| docstring | Documentation string for this variable. |
| defval | Pointer to the default value to use for this variable. Null for no default (generally means to fill with zeros). Of the type given by ti. Only works for basic types. |
If called from the constructor, the only effect is to clear ptr.
Implements D3PD::IAddVariable.
Definition at line 85 of file AddVariable.cxx.
|
inherited |
Make the template implementation from IAddVariable visible.
|
inherited |
Make the template implementation from IAddVariable visible.
|
finalvirtual |
Create any needed tuple variables.
This is called at the start of the first event.
Reimplemented from D3PD::MultiAssociationToolImpl.
Definition at line 158 of file ElectronJetDRAssociator.cxx.
|
inherited |
Configure the parent tree.
| tree | The parent IAddVariable instance. |
Definition at line 61 of file AddVariable.cxx.
|
overridevirtual |
Configure during initialization: type-check.
| tree | Our parent for tuple making. |
| ti | Gives the type of the object being passed to resetUntyped. |
configureD3PD should check that the type of the object coming as input (to getUntyped) is compatible with what it expects, and raise an error otherwise.
Reimplemented from D3PD::MultiAssociationToolImpl.
Definition at line 81 of file ElectronJetDRAssociator.cxx.
|
protectedinherited |
Configure during initialization: type-check.
Alternate implementation for the case where we have to choose among multiple possible input types.
| tree | Our parent for tuple making. | |
| ti | Gives the type of the object being passed to getUntyped. | |
| tis | List of possible input types that we can accept. | |
| [out] | which | Index of the accepted type. |
configureMulti should check that the type of the object coming as input (to getUntyped) is compatible with what it expects, and raise an error otherwise.
Definition at line 74 of file MultiAssociationToolImpl.cxx.
|
protectedinherited |
Helper to convert pointers to source objects.
| p | Source object, as a pointer to the type passed to configureD3PD. return Source object, as a pointer to the type given by fromTypeinfo. |
Definition at line 104 of file MultiAssociationToolImpl.cxx.
|
virtualinherited |
Return the element type for the target of the association.
I.e., nextUntyped returns a pointer to this type.
Reimplemented in D3PD::MultiAssociationTool< Types< T0 >, Types< U0 > >.
|
private |
Find the pT of the jet with electron removed.
| eg | The egamma object to analyze. | |
| j | The jet under consideration. | |
| [out] | reducedPt | Jet Pt calculated after subtraction of electron momentum. |
| eg | The egamma object to analyze. | |
| j | The jet under consideration. @reducedPt[out] Jet Pt calculated after subtraction of electron momentum. |
Definition at line 181 of file ElectronJetDRAssociator.cxx.
|
private |
Find the signed impact parameter and PTRel of EG's track relative to the beamspot.
Find the impact parameter of EG's track relative to the beamspot.
| eg | The egamma object to analyze. |
| signedIP[out] | Transverse impact parameter wrt the beamspot. |
| PTRel[out] | Longitudinal impact parameter wrt the beamspot. |
| eg | The egamma object to analyze. |
| d0beam[out] | Transverse impact parameter wrt the beamspot. |
| z0beam[out] | Longitudinal impact parameter wrt the beamspot. |
Definition at line 211 of file ElectronJetDRAssociator.cxx.
|
virtualinherited |
Return the std::type_info for the source of the association.
Implements D3PD::MultiAssociationToolImpl.
|
overridevirtual |
Standard Gaudi initialize method.
Definition at line 64 of file ElectronJetDRAssociator.cxx.
|
inherited |
Standard Gaudi tool constructor.
| type | The name of the tool type. |
| name | The tool name. |
| parent | The tool's Gaudi parent. |
Definition at line 54 of file MultiAssociationToolImpl.cxx.
|
overridevirtual |
Return a pointer to the next element in the association.
Return 0 when the association has been exhausted.
Implements D3PD::MultiAssociationToolTo< TO_T >.
Definition at line 109 of file ElectronJetDRAssociator.cxx.
|
virtualinherited |
Return a pointer to the next element in the association.
Return 0 when the association has been exhausted.
Reimplemented in D3PD::MultiAssociationTool< Types< T0 >, Types< U0 > >.
|
virtualinherited |
Release an object retrieved from the association.
| p | The object to release. |
Call this when you are done with the object returned by next(). The default implementation is a no-op, but if the association dynamically allocated the object which it returned, this gives it a chance to free it.
Reimplemented in D3PD::MultiAssociationTool< Types< T0 >, Types< U0 > >.
|
virtualinherited |
Release an object retrieved from the association.
| p | The object to release. |
Call this when you are done with the object returned by nextUntyped(). The default implementation is a no-op, but if the association dynamically allocated the object which it returned, this gives it a chance to free it.
Reimplemented in D3PD::MultiAssociationTool< Types< T0 >, Types< U0 > >.
|
overridevirtual |
Start the iteration for a new association.
| p | The object from which to associate. |
Implements D3PD::MultiAssociationTool< xAOD::Electron, xAOD::Jet >.
Definition at line 95 of file ElectronJetDRAssociator.cxx.
|
virtualinherited |
Start the iteration for a new association.
| p | The object from which to associate. |
|
privateinherited |
Property: the name of this block.
Definition at line 122 of file MultiAssociationToolImpl.h.
|
private |
Variable: DR between electron and jet.
Definition at line 146 of file ElectronJetDRAssociator.h.
|
private |
Property: DR cut between electrons and jets.
Definition at line 129 of file ElectronJetDRAssociator.h.
|
private |
Definition at line 143 of file ElectronJetDRAssociator.h.
|
privateinherited |
Helper to convert source object pointers.
Definition at line 125 of file MultiAssociationToolImpl.h.
|
private |
Variable: Number of jet constituents.
Definition at line 155 of file ElectronJetDRAssociator.h.
|
protectedinherited |
Metadata about the variables created by this object.
Definition at line 129 of file AddVariable.h.
|
privateinherited |
Parameter: source object prefix.
Definition at line 119 of file MultiAssociationToolImpl.h.
|
private |
Variable: Relative Pt between electron and jet.
Definition at line 152 of file ElectronJetDRAssociator.h.
|
private |
Variable: Jet pT with electron removed.
Definition at line 158 of file ElectronJetDRAssociator.h.
|
private |
Property: The ICollectionGetterRegistryTool instance.
Definition at line 136 of file ElectronJetDRAssociator.h.
|
private |
Variable: Signed impact parameter between electron and jet.
Definition at line 149 of file ElectronJetDRAssociator.h.
|
privateinherited |
Reference to the variable suffix.
Definition at line 137 of file AddVariable.h.
|
private |
Getter defining the collection within which to index.
Definition at line 140 of file ElectronJetDRAssociator.h.
|
private |
Property: Target label for the getter for the jets to which to associate.
Definition at line 123 of file ElectronJetDRAssociator.h.
|
private |
Property: Tool for the estimation of the IPs to the vertex.
Definition at line 132 of file ElectronJetDRAssociator.h.
|
privateinherited |
Reference to the block name.
The parent IAddVariable instance.
Definition at line 143 of file AddVariable.h.
|
private |
Property: Vertex container name.
Definition at line 126 of file ElectronJetDRAssociator.h.
|
staticprivateinherited |
Used to provide a default value for blockName.
Definition at line 41 of file AddVariable.h.