ATLAS Offline Software
Loading...
Searching...
No Matches
JetPruner.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// JetPruner.h
6
7#ifndef JetPruner_H
8#define JetPruner_H
9
10// David Adams
11// January 2014
12//
13// Tool to groom jets with a mass-drop filter.
14
15#include "AsgTools/AsgTool.h"
18#include "fastjet/JetDefinition.hh"
19#include "AsgTools/ToolHandle.h"
20
22: public asg::AsgTool,
23 virtual public IJetGroomer {
25
26public:
27
28 // Ctor.
29 JetPruner(const std::string& name);
30
31 // Dtor.
33
34 // Initilization.
35 StatusCode initialize();
36
37 // Groom a jet and add result to a container.
38 int groom(const xAOD::Jet& jin,
39 const PseudoJetContainer&,
40 xAOD::JetContainer& jout) const;
41
42 // Dump to log.
43 void print() const;
44
45private: // data
46
47 // Job options.
48 std::string m_jetalg; // Kt, AntiKt, CamKt
49 float m_zcut{}; // zcut: pTi, pTj > pT(i+j)
50 float m_rcut{}; // rcut: Rij < rcut*2m/pT
51 ToolHandle<IJetFromPseudojet> m_bld; // Tool to build jets.
52
53 // Data
54 fastjet::JetAlgorithm m_fjalg=fastjet::undefined_jet_algorithm;
55
56};
57
58#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
IJetGroomer()
Ctor.
int groom(const xAOD::Jet &jin, const PseudoJetContainer &, xAOD::JetContainer &jout) const
Transform jet.
Definition JetPruner.cxx:60
ToolHandle< IJetFromPseudojet > m_bld
Definition JetPruner.h:51
JetPruner(const std::string &name)
Definition JetPruner.cxx:21
float m_zcut
Definition JetPruner.h:49
float m_rcut
Definition JetPruner.h:50
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition JetPruner.cxx:35
std::string m_jetalg
Definition JetPruner.h:48
void print() const
Print the state of the tool.
Definition JetPruner.cxx:91
fastjet::JetAlgorithm m_fjalg
Definition JetPruner.h:54
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".