|
ATLAS Offline Software
|
#include <ParticleSortingAlg.h>
|
| ParticleSortingAlg (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor with parameters: More...
|
|
virtual | ~ParticleSortingAlg () |
| Destructor: More...
|
|
virtual StatusCode | initialize () override |
| Athena algorithm's initalize hook. More...
|
|
virtual StatusCode | execute () override |
| Athena algorithm's execute hook. More...
|
|
virtual StatusCode | finalize () override |
| Athena algorithm's finalize hook. More...
|
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 28 of file ParticleSortingAlg.h.
◆ StoreGateSvc_t
◆ ParticleSortingAlg()
ParticleSortingAlg::ParticleSortingAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Constructor with parameters:
Definition at line 25 of file ParticleSortingAlg.cxx.
29 m_tool(
"ParticleSortingTool/ParticleSortingTool",
this),
48 "The name of the output container (with SG::VIEW_ELEMENTS) with the sorted copy of input objects" );
52 "Define by what parameter to sort (default: 'pt'; allowed: 'pt', 'eta', 'phi', 'm', 'e', 'rapidity')" );
56 "Define if the container should be sorted in a descending order (default=true)" );
◆ ~ParticleSortingAlg()
ParticleSortingAlg::~ParticleSortingAlg |
( |
| ) |
|
|
virtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode ParticleSortingAlg::execute |
( |
| ) |
|
|
overridevirtual |
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode ParticleSortingAlg::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode ParticleSortingAlg::initialize |
( |
| ) |
|
|
overridevirtual |
Athena algorithm's initalize hook.
Definition at line 71 of file ParticleSortingAlg.cxx.
96 const std::string& fullToolName = this->
name() +
"." +
m_tool.name();
97 ATH_MSG_DEBUG(
"Got the full name of the tool: " << fullToolName );
102 <<
" of private tool with name: '" << fullToolName <<
"'" );
107 <<
" of private tool with name: '" << fullToolName <<
"'" );
112 <<
" of private tool with name: '" << fullToolName <<
"'" );
117 <<
" of private tool with name: '" << fullToolName <<
"'" );
127 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ setupInputContainer()
void ParticleSortingAlg::setupInputContainer |
( |
Gaudi::Details::PropertyBase & |
| ) |
|
|
inlineprivate |
This internal method will realize if a user sets the 'InputContainer' property.
Definition at line 123 of file ParticleSortingAlg.h.
◆ setupOutputContainer()
void ParticleSortingAlg::setupOutputContainer |
( |
Gaudi::Details::PropertyBase & |
| ) |
|
|
inlineprivate |
This internal method will realize if a user sets the 'OutputContainer' property.
Definition at line 129 of file ParticleSortingAlg.h.
◆ setupSortDescending()
void ParticleSortingAlg::setupSortDescending |
( |
Gaudi::Details::PropertyBase & |
| ) |
|
|
inlineprivate |
This internal method will realize if a user sets the 'SortDeceding' property.
Definition at line 142 of file ParticleSortingAlg.h.
◆ setupSortVar()
void ParticleSortingAlg::setupSortVar |
( |
Gaudi::Details::PropertyBase & |
| ) |
|
|
inlineprivate |
This internal method will realize if a user sets the 'SortVariable' property.
Definition at line 135 of file ParticleSortingAlg.h.
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_inCollKey
StringProperty ParticleSortingAlg::m_inCollKey |
|
private |
◆ m_jos
ServiceHandle<Gaudi::Interfaces::IOptionsSvc> ParticleSortingAlg::m_jos |
|
private |
The job options service (will be used to forward this algs properties to the private tool)
Definition at line 78 of file ParticleSortingAlg.h.
◆ m_nEventsProcessed
unsigned long ParticleSortingAlg::m_nEventsProcessed |
|
private |
◆ m_outCollKey
StringProperty ParticleSortingAlg::m_outCollKey |
|
private |
◆ m_setInCollKey
bool ParticleSortingAlg::m_setInCollKey |
|
private |
This boolean is true if the user sets the 'InputContainer' property.
Definition at line 87 of file ParticleSortingAlg.h.
◆ m_setOutCollKey
bool ParticleSortingAlg::m_setOutCollKey |
|
private |
This boolean is true if the user sets the 'OutputContainer' property.
Definition at line 94 of file ParticleSortingAlg.h.
◆ m_setSortDescending
bool ParticleSortingAlg::m_setSortDescending |
|
private |
This boolean is true if the user sets the 'SortDescending' property.
Definition at line 108 of file ParticleSortingAlg.h.
◆ m_setSortVar
bool ParticleSortingAlg::m_setSortVar |
|
private |
This boolean is true if the user sets the 'SortVariable' property.
Definition at line 101 of file ParticleSortingAlg.h.
◆ m_sortDescending
BooleanProperty ParticleSortingAlg::m_sortDescending |
|
private |
Define if the container should be sorted in a descending order (default=true)
Definition at line 105 of file ParticleSortingAlg.h.
◆ m_sortVar
StringProperty ParticleSortingAlg::m_sortVar |
|
private |
◆ m_tool
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
void setupSortVar(Gaudi::Details::PropertyBase &)
This internal method will realize if a user sets the 'SortVariable' property.
StringProperty m_inCollKey
Input container name.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StringProperty m_outCollKey
The name of the output container (with SG::VIEW_ELEMENTS) with the sorted copy of input objects.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
virtual void setOwner(IDataHandleHolder *o)=0
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
bool m_setSortVar
This boolean is true if the user sets the 'SortVariable' property.
ServiceHandle< Gaudi::Interfaces::IOptionsSvc > m_jos
The job options service (will be used to forward this algs properties to the private tool)
BooleanProperty m_sortDescending
Define if the container should be sorted in a descending order (default=true)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
bool m_setOutCollKey
This boolean is true if the user sets the 'OutputContainer' property.
unsigned long m_nEventsProcessed
Internal event counter.
StringProperty m_sortVar
Define by what parameter to sort (default: 'pt')
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
void setupSortDescending(Gaudi::Details::PropertyBase &)
This internal method will realize if a user sets the 'SortDeceding' property.
bool m_setInCollKey
This boolean is true if the user sets the 'InputContainer' property.
DataObjIDColl m_extendedExtraObjects
void setupInputContainer(Gaudi::Details::PropertyBase &)
This internal method will realize if a user sets the 'InputContainer' property.
#define ATH_MSG_WARNING(x)
ToolHandle< DerivationFramework::IAugmentationTool > m_tool
The ToolHandle to the private ParticleSortingTool.
bool m_setSortDescending
This boolean is true if the user sets the 'SortDescending' property.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
void setupOutputContainer(Gaudi::Details::PropertyBase &)
This internal method will realize if a user sets the 'OutputContainer' property.
AthAlgorithm()
Default constructor:
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>