ATLAS Offline Software
JetViewAlg.h
Go to the documentation of this file.
1 // this is a -*- C++ -*- file
2 /*
3  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 
17 
18 #ifndef JetViewAlg_H
19 #define JetViewAlg_H
20 
24 #include "xAODJet/Jet.h"
25 #include "xAODJet/JetContainer.h"
28 
30 
32 
33 public:
34 
35  // Can't use "using ctor" because of incompatiblity with pyroot in AnalysisBase
36  JetViewAlg(const std::string & n, ISvcLocator* l) : EL::AnaReentrantAlgorithm(n,l) {}
37 
39  StatusCode initialize() override;
40  StatusCode execute(const EventContext&) const override;
41  StatusCode finalize() override {return StatusCode::SUCCESS;};
42 
43 private:
44 
46  bool selected( const xAOD::Jet& ) const;
47 
48 private:
49 
50  Gaudi::Property<float> m_ptmin {this, "PtMin", 0.0, "Min pT in MeV"};
51  Gaudi::Property<float> m_absetamax {this, "AbsEtaMax", 10.0, "Max absolute eta"};
52 
53  SG::ReadHandleKey<xAOD::JetContainer> m_input = {this, "InputContainer", "", "The input jet container name"};
54  SG::WriteHandleKey<xAOD::JetContainer> m_output = {this, "OutputContainer", "", "The output jet container name"};
55 
56  // Propagate a list of decorations from the owning container to the view, such that
57  // jet moments added by DecorHandles are visible on the view container
59  "List of decorations to propagate through the view container." };
60 
61 };
62 
63 #endif
64 
Jet.h
PropertyWrapper.h
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
JetViewAlg::JetViewAlg
JetViewAlg(const std::string &n, ISvcLocator *l)
Definition: JetViewAlg.h:36
JetViewAlg::m_output
SG::WriteHandleKey< xAOD::JetContainer > m_output
Definition: JetViewAlg.h:54
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
JetViewAlg::execute
StatusCode execute(const EventContext &) const override
Definition: JetViewAlg.cxx:51
JetViewAlg::m_absetamax
Gaudi::Property< float > m_absetamax
Definition: JetViewAlg.h:51
JetViewAlg::initialize
StatusCode initialize() override
Athena algorithm's Hooks.
Definition: JetViewAlg.cxx:16
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
ShallowCopyDecorDeps.h
Helper to propagate decoration dependencies to a shallow copy.
JetViewAlg::finalize
StatusCode finalize() override
Definition: JetViewAlg.h:41
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
JetViewAlg::m_input
SG::ReadHandleKey< xAOD::JetContainer > m_input
Definition: JetViewAlg.h:53
SG::ShallowCopyDecorDeps
Helper to propagate decoration dependencies to a shallow copy.
Definition: StoreGate/StoreGate/ShallowCopyDecorDeps.h:75
JetViewAlg
Definition: JetViewAlg.h:31
JetViewAlg::m_decorDeps
SG::ShallowCopyDecorDeps< xAOD::JetContainer > m_decorDeps
Definition: JetViewAlg.h:58
JetViewAlg::m_ptmin
Gaudi::Property< float > m_ptmin
Definition: JetViewAlg.h:50
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaReentrantAlgorithm.cxx:29
JetViewAlg::selected
bool selected(const xAOD::Jet &) const
Method to select jets.
Definition: JetViewAlg.cxx:41
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition: AnaReentrantAlgorithm.h:51
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetContainer.h
AnaReentrantAlgorithm.h