ATLAS Offline Software
Loading...
Searching...
No Matches
JetGroomer.h
Go to the documentation of this file.
1// this file is -*- C++ -*-
2/*
3 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4*/
5
6#ifndef JETREC_JETGROOMER_H
7#define JETREC_JETGROOMER_H
8
18
19#include "AsgTools/AsgTool.h"
20
23
25
28
31
32
33namespace JetGrooming {
35 : public asg::AsgTool,
36 virtual public JetProvider<xAOD::JetAuxContainer>
37 {
39
40 public:
42
43 virtual StatusCode initialize() override;
44
45 // From IJetProvider
46 virtual std::pair<std::unique_ptr<xAOD::JetContainer>, std::unique_ptr<SG::IAuxStore> > getJets() const override final;
47
48 // Implementation of grooming goes here
49 // The jet is inserted into the output container, which is necessary for speed
50 // in the xAOD container paradigm
52
53 protected:
55 SG::ReadHandleKey<xAOD::JetContainer> m_inputJetContainer {this, "UngroomedJets", "ungroomedinput", "Input ungroomed jet container"};
56
58 SG::ReadHandleKey<PseudoJetContainer> m_inputPseudoJets {this, "ParentPseudoJets", "inputpseudojet", "input constituents of parent JetContainer"};
59
60 SG::WriteHandleKey<PseudoJetVector> m_finalPseudoJets {this, "FinalPseudoJets_DONOTSET", "", "output pseudojets -- autoconfigured name"};
61
62 };
63
64}
65#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
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.
std::vector< fastjet::PseudoJet > PseudoJetVector
SG::ReadHandleKey< PseudoJetContainer > m_inputPseudoJets
This is the input to the parent JetContainer. It is needed in order to re-assign the ghost constituen...
Definition JetGroomer.h:58
virtual void insertGroomedJet(const xAOD::Jet &, const PseudoJetContainer &, xAOD::JetContainer &, PseudoJetVector &) const =0
virtual std::pair< std::unique_ptr< xAOD::JetContainer >, std::unique_ptr< SG::IAuxStore > > getJets() const override final
Method to build the collection and return it to the caller.
SG::WriteHandleKey< PseudoJetVector > m_finalPseudoJets
Definition JetGroomer.h:60
SG::ReadHandleKey< xAOD::JetContainer > m_inputJetContainer
Handle Input JetContainer (this contains the parent ungroomed jets to be trimmed)
Definition JetGroomer.h:55
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Concrete class that implements the recording of jets & aux container to StoreGate via an externally p...
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.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".