![]() |
ATLAS Offline Software
|
Represent a single association by containment. More...
#include <ContainedAssociationFillerTool.h>
Public Member Functions | |
| ContainedAssociationFillerTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Standard Gaudi tool constructor. | |
| virtual StatusCode | initialize () |
Standard Gaudi initialize method. | |
| virtual StatusCode | configureD3PD (IAddVariable *tree, const std::type_info &ti) |
| Configure during initialization: type-check. | |
| virtual StatusCode | book () |
| Declare tuple variables. | |
| 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 Attributes | |
| ObjectMetadata | m_metadata |
| Metadata about the variables created by this object. | |
Private Attributes | |
| const std::string & | m_prefix |
| Reference to the variable prefix. | |
| 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. | |
Represent a single association by containment.
This is a block filler tool which represents a single association by containment.
It takes as a property an ISingleAssociationTool. For each input object, it asks the association tool which object is associated with it. This tool also has a list of block filler tools; these tools are called for the result of the association.
The tool in addition creates a flag variable to record whether the association succeeded. If the association fails, the flag is set to false, and the contained variables are left blank.
Properties: Associator - The ISingleAssociationTool. BlockFillers - List of contained block filler tools. Prefix - Variable name prefix for the contained blocks. Matched - Variable name to use for the matched flag. Omitted if empty.
Definition at line 52 of file ContainedAssociationFillerTool.h.
| D3PD::ContainedAssociationFillerTool::ContainedAssociationFillerTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Standard Gaudi tool constructor.
Definition at line 27 of file ContainedAssociationFillerTool.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.
|
virtual |
Declare tuple variables.
This is called at the start of the first event.
Definition at line 93 of file ContainedAssociationFillerTool.cxx.
|
inherited |
Configure the parent tree.
| tree | The parent IAddVariable instance. |
Definition at line 61 of file AddVariable.cxx.
|
virtual |
Configure during initialization: type-check.
| tree | Our parent for tuple making. |
| ti | Gives the type of the object being passed to fillUntyped. |
configureD3PD should check that the type of the object coming as input is compatible with what it expects, and raise an error otherwise.
Definition at line 75 of file ContainedAssociationFillerTool.cxx.
|
virtual |
Standard Gaudi initialize method.
Definition at line 57 of file ContainedAssociationFillerTool.cxx.
|
protectedinherited |
Metadata about the variables created by this object.
Definition at line 129 of file AddVariable.h.
|
privateinherited |
Reference to the variable prefix.
Definition at line 134 of file AddVariable.h.
|
privateinherited |
Reference to the variable suffix.
Definition at line 137 of file AddVariable.h.
|
privateinherited |
Reference to the block name.
The parent IAddVariable instance.
Definition at line 143 of file AddVariable.h.
|
staticprivateinherited |
Used to provide a default value for blockName.
Definition at line 41 of file AddVariable.h.