ATLAS Offline Software
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
18 
19 // Framework includes
21 #include <xAODBase/IParticle.h>
23 
25 
26 namespace CP {
27 
30 
32 
34  public:
35  NObjectMassSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator);
36  virtual StatusCode initialize() override;
37  virtual StatusCode execute() override;
38 
39  private:
40 
42  Gaudi::Property<float> m_minmass {this, "minMass", 0., "minimum mass (in MeV)"};
43 
45  Gaudi::Property<std::string> m_sign {this, "sign", "SetMe", "comparison sign to use"};
46 
48  Gaudi::Property<int> m_count {this, "count", 0, "count value"};
49 
52 
55 
58  this, "particles", "", "the particle container to use"
59  };
60 
63  this, "objectSelection", "", "the selection on the input particles"
64  };
65 
68  this, "eventInfo", "EventInfo", "the EventInfo container to read selection decisions from"
69  };
70 
73  this, "eventPreselection", "SetMe", "name of the preselection to check before applying this one"
74  };
75 
78  this, "decorationName", "SetMe", "decoration name for the NObjects selector"
79  };
80 
81  }; // class
82 } // namespace CP
83 
84 #endif // EVENT_SELECTOR_NOBJECTMASSELECTORALG_H
PropertyWrapper.h
SignEnums.h
CP::NObjectMassSelectorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
the preselection
Definition: NObjectMassSelectorAlg.h:72
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysWriteDecorHandle.h
IParticle.h
SysWriteSelectionHandle.h
CP::NObjectMassSelectorAlg::execute
virtual StatusCode execute() override
Definition: NObjectMassSelectorAlg.cxx:29
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition: SysReadHandle.h:32
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::NObjectMassSelectorAlg
an algorithm to select an event with a specified number of objects compared to an invariant mass valu...
Definition: NObjectMassSelectorAlg.h:31
SysReadHandle.h
CP::NObjectMassSelectorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics list
Definition: NObjectMassSelectorAlg.h:54
CP::NObjectMassSelectorAlg::m_objectsHandle
CP::SysReadHandle< xAOD::IParticleContainer > m_objectsHandle
the object input handle
Definition: NObjectMassSelectorAlg.h:57
AnaAlgorithm.h
SignEnum::ComparisonOperator
ComparisonOperator
all possible comparison user inputs
Definition: SignEnums.h:16
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::NObjectMassSelectorAlg::NObjectMassSelectorAlg
NObjectMassSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition: NObjectMassSelectorAlg.cxx:11
IParticleContainer.h
CP::NObjectMassSelectorAlg::m_sign
Gaudi::Property< std::string > m_sign
the sign against which to compare pT (GT, LT, etc)
Definition: NObjectMassSelectorAlg.h:45
CP::NObjectMassSelectorAlg::m_count
Gaudi::Property< int > m_count
the count of events desired
Definition: NObjectMassSelectorAlg.h:48
CP::NObjectMassSelectorAlg::initialize
virtual StatusCode initialize() override
Definition: NObjectMassSelectorAlg.cxx:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SysReadSelectionHandle.h
CP::NObjectMassSelectorAlg::m_decoration
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
Definition: NObjectMassSelectorAlg.h:77
EventInfo.h
CP::NObjectMassSelectorAlg::m_signEnum
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Definition: NObjectMassSelectorAlg.h:51
CP::NObjectMassSelectorAlg::m_objectSelection
CP::SysReadSelectionHandle m_objectSelection
the object selection handle
Definition: NObjectMassSelectorAlg.h:62
SysReadDecorHandle.h
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::NObjectMassSelectorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition: NObjectMassSelectorAlg.h:67
CP::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition: SysWriteSelectionHandle.h:32
CP::NObjectMassSelectorAlg::m_minmass
Gaudi::Property< float > m_minmass
the pT threshold on which to select
Definition: NObjectMassSelectorAlg.h:42