|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef ASG_ANALYSIS_ALGORITHMS__ASG_VIEW_FROM_SELECTION_ALG_H
10 #define ASG_ANALYSIS_ALGORITHMS__ASG_VIEW_FROM_SELECTION_ALG_H
47 this,
"input",
"",
"the input collection to run on"};
52 this,
"output",
"",
"the output view container to produce"};
57 Gaudi::Property<std::vector<std::string>>
m_selection {
this,
"selection", {},
"the list of selection decorations"};
60 Gaudi::Property<std::vector<SelectionType>>
m_ignore {
this,
"ignore", {},
"the list of cuts to *ignore* for each selection"};
64 Gaudi::Property<bool>
m_sortPt {
this,
"sortPt",
false,
"whether to sort objects in pt"};
68 Gaudi::Property<bool>
m_allowMissing {
this,
"allowMissing",
false,
"Allow the input container to be missing"};
72 Gaudi::Property<bool>
m_deepCopy {
this,
"deepCopy",
false,
"perform a deep copy"};
Gaudi::Property< std::vector< std::string > > m_selection
SysReadHandle< xAOD::IParticleContainer > m_inputHandle
the input collection we run on
a class managing the property to configure the list of systematics to process
StatusCode initialize() override
Gaudi::Property< std::vector< SelectionType > > m_ignore
Gaudi::Property< bool > m_allowMissing
Allow the input container to be missing.
a data handle for writing systematics varied input data
StatusCode executeMissing(const CP::SystematicSet &sys)
The version of execute for missing input containers.
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Class to wrap a set of SystematicVariations.
StatusCode executeFindType(const CP::SystematicSet &sys)
the version of execute to find the type
SysListHandle m_systematicsList
the systematics list we run
a data handle for reading systematics varied input data
Select isolated Photons, Electrons and Muons.
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
SysWriteHandle< xAOD::IParticleContainer > m_outputHandle
the output view container we produce
the (new) base class for EventLoop algorithms
Gaudi::Property< bool > m_sortPt
Sort the output (view) container by pT.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode execute() override
Gaudi::Property< std::size_t > m_sizeLimit
create a view container based on selection decorations
Gaudi::Property< bool > m_deepCopy
Perform a deep copy for creating the output container.
std::vector< std::pair< std::unique_ptr< ISelectionReadAccessor >, SelectionType > > m_accessors
the list of accessors and cut ignore list
StatusCode executeTemplate(const CP::SystematicSet &sys)
the templated version of execute for a single systematic
StatusCode(AsgViewFromSelectionAlg::* m_function)(const CP::SystematicSet &sys)