Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "Gaudi/Property.h"
26 ISvcLocator* pSvcLocator ) :
28 m_jos(
"JobOptionsSvc",
name),
29 m_tool(
"ParticleSortingTool/ParticleSortingTool", this),
31 m_setInCollKey(false),
33 m_setOutCollKey(false),
36 m_sortDescending(true),
37 m_setSortDescending(false),
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)" );
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;
140 return StatusCode::SUCCESS;
156 return StatusCode::SUCCESS;
void setupSortVar(Gaudi::Details::PropertyBase &)
This internal method will realize if a user sets the 'SortVariable' property.
StringProperty m_inCollKey
Input container name.
ParticleSortingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual StatusCode initialize() override
Athena algorithm's initalize hook.
StringProperty m_outCollKey
The name of the output container (with SG::VIEW_ELEMENTS) with the sorted copy of input objects.
#define ATH_MSG_VERBOSE(x)
virtual StatusCode execute() override
Athena algorithm's execute hook.
::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)
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')
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.
void setupInputContainer(Gaudi::Details::PropertyBase &)
This internal method will realize if a user sets the 'InputContainer' property.
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.
void setupOutputContainer(Gaudi::Details::PropertyBase &)
This internal method will realize if a user sets the 'OutputContainer' property.
virtual StatusCode finalize() override
Athena algorithm's finalize hook.
virtual ~ParticleSortingAlg()
Destructor: