ATLAS Offline Software
Loading...
Searching...
No Matches
JetTruthParticleSelectorTool.h
Go to the documentation of this file.
1// emacs this file is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef JETSIMTOOLS_JETTRUTHPARTICLESELECTORTOOL_H
8#define JETSIMTOOLS_JETTRUTHPARTICLESELECTORTOOL_H
9
10#include "AsgTools/AsgTool.h"
11
13
14
15
16#include <map>
17
18static const InterfaceID IID_JetTruthParticleSelectorTool("JetTruthParticleSelectorTool", 1, 0);
19
20//using asg::AsgTool;
22{
24
25 public:
26
27 JetTruthParticleSelectorTool(const std::string &s);
28
30
31 virtual StatusCode initialize() override;
32
33 virtual StatusCode finalize() override;
34
35
37 bool operator()(const xAOD::TruthParticle* truth) { return this->selector(truth);}
38
39
40 bool selector(const xAOD::TruthParticle* truth);
41
42 void setupEvent();
43
44 static const InterfaceID& interfaceID( ){return IID_JetTruthParticleSelectorTool;}
45
46
47 bool passKinematics(const xAOD::TruthParticle* truth) const ;
48
49protected:
57
58 private:
59
60
61 double m_min_pt;
62 double m_max_pt;
64 double m_minEta;
65 double m_maxEta;
67
68 // bool m_includeMuons;
69 // bool m_useOnlyInteracting;
70
73
76
77 typedef std::map< int, long long > PDGList;
79
80 typedef std::map< int, double > Average;
91
92 std::vector<const xAOD::TruthParticle*> m_wzLeptons;
93};
94#endif
95
#define ASG_TOOL_CLASS0(CLASSNAME)
static const InterfaceID IID_JetTruthParticleSelectorTool("JetTruthParticleSelectorTool", 1, 0)
bool operator()(const xAOD::TruthParticle *truth)
alias 'selector' to operator(const IN4M*)
std::vector< const xAOD::TruthParticle * > m_wzLeptons
bool passKinematics(const xAOD::TruthParticle *truth) const
static const InterfaceID & interfaceID()
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
bool selector(const xAOD::TruthParticle *truth)
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
TruthParticle_v1 TruthParticle
Typedef to implementation.