ATLAS Offline Software
Loading...
Searching...
No Matches
NObjectMassSelectorAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef EVENT_SELECTOR_NOBJECTMASSELECTORALG_H
8#define EVENT_SELECTOR_NOBJECTMASSELECTORALG_H
9
10// Algorithm includes
16
17// Framework includes
19#include <xAODBase/IParticle.h>
21
23
24namespace CP {
25
28
30
32 public:
33 NObjectMassSelectorAlg(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_minmass {this, "minMass", 0., "minimum mass (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
50
53
56 this, "particles", "", "the particle container to use"
57 };
58
61 this, "objectSelection", "", "the selection on the input particles"
62 };
63
66 this, "eventInfo", "EventInfo", "the EventInfo container to read selection decisions from"
67 };
68
71 this, "eventPreselection", "SetMe", "name of the preselection to check before applying this one"
72 };
73
76 this, "decorationName", "SetMe", "decoration name for the NObjects selector"
77 };
78
79 }; // class
80} // namespace CP
81
82#endif // EVENT_SELECTOR_NOBJECTMASSELECTORALG_H
Gaudi::Property< int > m_count
the count of events desired
CP::SysReadSelectionHandle m_preselection
the preselection
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
Gaudi::Property< float > m_minmass
the pT threshold on which to select
CP::SysReadHandle< xAOD::IParticleContainer > m_objectsHandle
the object input handle
NObjectMassSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Gaudi::Property< std::string > m_sign
the sign against which to compare pT (GT, LT, etc)
CP::SysListHandle m_systematicsList
the systematics list
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
CP::SysReadSelectionHandle m_objectSelection
the object selection handle
virtual StatusCode initialize() override
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