ATLAS Offline Software
Loading...
Searching...
No Matches
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"
28
30
32
33public:
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
43private:
44
46 bool selected( const xAOD::Jet& ) const;
47
48private:
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
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
DataVector adapter that acts like it holds const pointers.
Helper to propagate decoration dependencies to a shallow copy.
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
SG::ReadHandleKey< xAOD::JetContainer > m_input
Definition JetViewAlg.h:53
SG::WriteHandleKey< xAOD::JetContainer > m_output
Definition JetViewAlg.h:54
StatusCode initialize() override
Athena algorithm's Hooks.
bool selected(const xAOD::Jet &) const
Method to select jets.
StatusCode finalize() override
Definition JetViewAlg.h:41
Gaudi::Property< float > m_absetamax
Definition JetViewAlg.h:51
StatusCode execute(const EventContext &) const override
Gaudi::Property< float > m_ptmin
Definition JetViewAlg.h:50
SG::ShallowCopyDecorDeps< xAOD::JetContainer > m_decorDeps
Definition JetViewAlg.h:58
JetViewAlg(const std::string &n, ISvcLocator *l)
Definition JetViewAlg.h:36
Property holding a SG store/key/clid from which a ReadHandle is made.
Helper to propagate decoration dependencies to a shallow copy.
Property holding a SG store/key/clid from which a WriteHandle is made.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Jet_v1 Jet
Definition of the current "jet version".