 |
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef EVENTUTILS_PARTICLESORTINGALG_H
12 #define EVENTUTILS_PARTICLESORTINGALG_H 1
15 #include "Gaudi/Interfaces/IOptionsSvc.h"
16 #include "GaudiKernel/ToolHandle.h"
17 #include "GaudiKernel/ServiceHandle.h"
79 this,
"JobOptionsSvc",
"JobOptionsSvc",
"The JobOptionService instance." };
82 ToolHandle<DerivationFramework::IAugmentationTool>
m_tool{
83 this,
"SortingTool",
"ParticleSortingTool/ParticleSortingTool",
"The private ParticleSortingTool" };
88 "Input container name" };
95 "The name of the output container (with SG::VIEW_ELEMENTS) with the sorted copy of input objects" };
102 "Define by what parameter to sort (default: 'pt'; allowed: 'pt', 'eta', 'phi', 'm', 'e', 'rapidity')" };
109 "Define if the container should be sorted in a descending order (default=true)" };
152 #endif //> !EVENTUTILS_PARTICLESORTINGALG_H
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:
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.
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: