ATLAS Offline Software
Loading...
Searching...
No Matches
NObjectPtSelectorAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef EVENT_SELECTOR_NOBJECTPTSELECTORALG_H
8#define EVENT_SELECTOR_NOBJECTPTSELECTORALG_H
9
10// Algorithm includes
16
17// Framework includes
19#include <xAODBase/IParticle.h>
21
23
24namespace CP {
25
28
30
32 public:
33 NObjectPtSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator);
34 virtual StatusCode initialize() override;
35 virtual StatusCode execute(const EventContext& ctx) override;
36
37 private:
38
40 Gaudi::Property<float> m_ptmin {this, "minPt", 0., "minimum pT (in MeV)"};
41
43 Gaudi::Property<std::string> m_sign {this, "sign", "SetMe", "comparison sign to use"};
44
46 Gaudi::Property<int> m_count {this, "count", 0, "count value"};
47
49 Gaudi::Property<bool> m_useDressedProperties{this, "useDressedProperties", false,
50 "whether to use dressed electron and muon kinematics rather than simple "
51 "P4 kinematics"};
52
55
58
61 this, "particles", "", "the particle container to use"
62 };
63
66 this, "objectSelection", "", "the selection on the input particles"
67 };
68
71 this, "eventInfo", "EventInfo", "the EventInfo container to read selection decisions from"
72 };
73
76 this, "eventPreselection", "SetMe", "name of the preselection to check before applying this one"
77 };
78
81 this, "decorationName", "SetMe", "decoration name for the NObjects selector"
82 };
83
84 }; // class
85} // namespace CP
86
87#endif // EVENT_SELECTOR_NOBJECTPTSELECTORALG_H
Gaudi::Property< bool > m_useDressedProperties
use dressed kinematics
CP::SysReadSelectionHandle m_objectSelection
the object selection handle
CP::SysReadHandle< xAOD::IParticleContainer > m_objectsHandle
the object input handle
Gaudi::Property< std::string > m_sign
the sign against which to compare pT (GT, LT, etc)
virtual StatusCode initialize() override
CP::SysReadSelectionHandle m_preselection
the preselection
Gaudi::Property< float > m_ptmin
the pT threshold on which to select
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
NObjectPtSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Gaudi::Property< int > m_count
the count of events desired
CP::SysListHandle m_systematicsList
the systematics list
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
a class managing the property to configure the list of systematics to process
a data handle for reading systematics varied input data
a data handle for reading systematically varied selection properties from objects
a data handle for writing systematically varied selection properties from objects
the (new) base class for EventLoop algorithms
virtual::StatusCode execute()
execute this algorithm
Select isolated Photons, Electrons and Muons.
ComparisonOperator
all possible comparison user inputs
Definition SignEnums.h:18