ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
EventSelectionAlgorithms
EventSelectionAlgorithms
JetNGhostSelectorAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef EVENT_SELECTOR_JETNGHOSTSELECTORALG_H
8
#define EVENT_SELECTOR_JETNGHOSTSELECTORALG_H
9
10
// Algorithm includes
11
#include <
AnaAlgorithm/AnaAlgorithm.h
>
12
#include <
AsgTools/PropertyWrapper.h
>
13
#include <
SystematicsHandles/SysReadHandle.h
>
14
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
15
#include <
SelectionHelpers/SysWriteSelectionHandle.h
>
16
17
// Framework includes
18
#include <
xAODJet/JetContainer.h
>
19
#include <
xAODEventInfo/EventInfo.h
>
20
21
#include <
EventSelectionAlgorithms/SignEnums.h
>
22
23
namespace
CP
{
24
27
28
class
JetNGhostSelectorAlg
final :
public
EL::AnaAlgorithm
{
29
31
public
:
32
JetNGhostSelectorAlg
(
const
std::string &
name
, ISvcLocator *pSvcLocator);
33
virtual
StatusCode
initialize
()
override
;
34
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
35
36
private
:
37
39
Gaudi::Property<float>
m_ptmin
{
this
,
"minPt"
, 0.,
"minimum pT (in MeV)"
};
40
42
Gaudi::Property<std::string>
m_sign
{
this
,
"sign"
,
"SetMe"
,
"comparison sign to use"
};
43
45
Gaudi::Property<int>
m_count
{
this
,
"count"
, 0,
"count value"
};
46
48
Gaudi::Property<std::string>
m_ghost
{
49
this
,
"ghost"
,
""
,
"name of the ghost decoration to look up for positive object counts"
50
};
51
53
Gaudi::Property<std::string>
m_veto
{
54
this
,
"veto"
,
""
,
"name of the ghost decoration to look up for negative object counts"
55
};
56
58
SignEnum::ComparisonOperator
m_signEnum
{};
59
61
CP::SysListHandle
m_systematicsList
{
this
};
62
64
CP::SysReadHandle<xAOD::JetContainer>
m_jetsHandle
{
65
this
,
"jets"
,
""
,
"the particle container to use"
66
};
67
69
CP::SysReadSelectionHandle
m_jetSelection
{
70
this
,
"jetSelection"
,
""
,
"the selection on the input particles"
71
};
72
74
CP::SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
75
this
,
"eventInfo"
,
"EventInfo"
,
"the EventInfo container to read selection decisions from"
76
};
77
79
CP::SysReadSelectionHandle
m_preselection
{
80
this
,
"eventPreselection"
,
"SetMe"
,
"name of the preselection to check before applying this one"
81
};
82
84
CP::SysWriteSelectionHandle
m_decoration
{
85
this
,
"decorationName"
,
"SetMe"
,
"decoration name for the NGhosts selector"
86
};
87
89
std::unique_ptr<SG::ConstAccessor<int>>
m_ghostAcc
{};
90
std::unique_ptr<SG::ConstAccessor<int>>
m_vetoAcc
{};
91
bool
m_doVeto
{
false
};
92
};
// class
93
}
// namespace CP
94
95
#endif
// EVENT_SELECTOR_JETNGHOSTSELECTORALG_H
AnaAlgorithm.h
JetContainer.h
PropertyWrapper.h
SignEnums.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteSelectionHandle.h
CP::JetNGhostSelectorAlg::m_vetoAcc
std::unique_ptr< SG::ConstAccessor< int > > m_vetoAcc
Definition
JetNGhostSelectorAlg.h:90
CP::JetNGhostSelectorAlg::m_sign
Gaudi::Property< std::string > m_sign
the sign against which to compare pT (GT, LT, etc)
Definition
JetNGhostSelectorAlg.h:42
CP::JetNGhostSelectorAlg::m_ghost
Gaudi::Property< std::string > m_ghost
the ghost decoration
Definition
JetNGhostSelectorAlg.h:48
CP::JetNGhostSelectorAlg::m_veto
Gaudi::Property< std::string > m_veto
the ghost decoration
Definition
JetNGhostSelectorAlg.h:53
CP::JetNGhostSelectorAlg::m_decoration
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
Definition
JetNGhostSelectorAlg.h:84
CP::JetNGhostSelectorAlg::m_jetsHandle
CP::SysReadHandle< xAOD::JetContainer > m_jetsHandle
the jet input handle
Definition
JetNGhostSelectorAlg.h:64
CP::JetNGhostSelectorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition
JetNGhostSelectorAlg.h:74
CP::JetNGhostSelectorAlg::m_doVeto
bool m_doVeto
Definition
JetNGhostSelectorAlg.h:91
CP::JetNGhostSelectorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
the preselection
Definition
JetNGhostSelectorAlg.h:79
CP::JetNGhostSelectorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics list
Definition
JetNGhostSelectorAlg.h:61
CP::JetNGhostSelectorAlg::initialize
virtual StatusCode initialize() override
Definition
JetNGhostSelectorAlg.cxx:15
CP::JetNGhostSelectorAlg::m_ptmin
Gaudi::Property< float > m_ptmin
the pT threshold on which to select
Definition
JetNGhostSelectorAlg.h:39
CP::JetNGhostSelectorAlg::JetNGhostSelectorAlg
JetNGhostSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition
JetNGhostSelectorAlg.cxx:11
CP::JetNGhostSelectorAlg::m_jetSelection
CP::SysReadSelectionHandle m_jetSelection
the jet selection handle
Definition
JetNGhostSelectorAlg.h:69
CP::JetNGhostSelectorAlg::m_signEnum
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Definition
JetNGhostSelectorAlg.h:58
CP::JetNGhostSelectorAlg::m_count
Gaudi::Property< int > m_count
the count of events desired
Definition
JetNGhostSelectorAlg.h:45
CP::JetNGhostSelectorAlg::m_ghostAcc
std::unique_ptr< SG::ConstAccessor< int > > m_ghostAcc
the ghost and ghost-veto accessors
Definition
JetNGhostSelectorAlg.h:89
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition
SysListHandle.h:33
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition
SysReadHandle.h:33
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition
SysReadSelectionHandle.h:32
CP::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition
SysWriteSelectionHandle.h:32
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:315
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
SignEnum::ComparisonOperator
ComparisonOperator
all possible comparison user inputs
Definition
SignEnums.h:18
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0