ATLAS Offline Software
Loading...
Searching...
No Matches
JetConstituentsRetriever.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5// JetConstituentsRetriever.h
6
7#ifndef JetConstituentsRetriever_H
8#define JetConstituentsRetriever_H
9
22
23#include "AsgTools/AsgTool.h"
26#include "AsgTools/ToolHandle.h"
27
29: public asg::AsgTool,
30 virtual public IJetConstituentsRetriever {
32
33public:
34
35 // Ctor.
36 JetConstituentsRetriever(const std::string& name);
37
38 // Initialization.
39 StatusCode initialize();
40
42 int constituents(const xAOD::Jet& jet, PseudoJetVector& cons,
43 NameList* pghostlabs =nullptr) const;
44
45 // Dump to log.
46 void print() const;
47
48private:
49
50 bool m_usepj;
52 ToolHandle<IJetPseudojetRetriever> m_hpjr;
54 double m_gscale;
55
56};
57
58#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
std::vector< std::string > NameList
std::vector< fastjet::PseudoJet > PseudoJetVector
ToolHandle< IJetPseudojetRetriever > m_hpjr
int constituents(const xAOD::Jet &jet, PseudoJetVector &cons, NameList *pghostlabs=nullptr) const
Append constituents to the supplied vector.
JetConstituentsRetriever(const std::string &name)
StatusCode initialize()
Dummy implementation of the initialisation function.
void print() const
Print the state of the tool.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Jet_v1 Jet
Definition of the current "jet version".