ATLAS Offline Software
QGPartonTruthInfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JETTAGINFO_QGPARTONTRUTHINFO_H
6 #define JETTAGINFO_QGPARTONTRUTHINFO_H
8 #include <string>
9 #include <map>
10 
11 namespace Analysis
12 {
13 
18 {
19 public:
22 
25 
28 
31 
33  virtual ~QGPartonTruthInfo();
34 
36  virtual QGPartonTruthInfo* clone() const;
37 
39  const std::string& jetTruthLabel() const;
40 
48  void setJetTruthLabel(const std::string& jetTruthLabel);
49 
51  void deltaRToParton(double dR);
52  double deltaRToParton() const;
53 
54 private:
55  std::string m_jetTruthLabel;
57 
58 }; // End class
59 
61 {
62  return new QGPartonTruthInfo(*this);
63 }
64 
65 inline const std::string& QGPartonTruthInfo::jetTruthLabel() const
66 {
67  return m_jetTruthLabel;
68 }
69 
70 inline void QGPartonTruthInfo::setJetTruthLabel(const std::string& jetTruthLabel)
71 {
73 }
74 
75 } // End namespace
76 #endif
77 
Analysis::QGPartonTruthInfo
Class QGPartonTruthInfo: Class to store more truth information about a JetTag (e.g.
Definition: QGPartonTruthInfo.h:18
Analysis::QGPartonTruthInfo::deltaRToParton
double deltaRToParton() const
Definition: QGPartonTruthInfo.cxx:54
Analysis::QGPartonTruthInfo::operator=
QGPartonTruthInfo & operator=(const QGPartonTruthInfo &rhs)
assigenment operator
Definition: QGPartonTruthInfo.cxx:36
x
#define x
Analysis::QGPartonTruthInfo::~QGPartonTruthInfo
virtual ~QGPartonTruthInfo()
default destructor
Definition: QGPartonTruthInfo.cxx:47
Analysis::QGPartonTruthInfo::m_jetTruthLabel
std::string m_jetTruthLabel
Definition: QGPartonTruthInfo.h:55
Analysis::QGPartonTruthInfo::clone
virtual QGPartonTruthInfo * clone() const
clone method
Definition: QGPartonTruthInfo.h:60
Analysis::QGPartonTruthInfo::jetTruthLabel
const std::string & jetTruthLabel() const
return the truth label
Definition: QGPartonTruthInfo.h:65
Analysis::BaseTagInfo
Class BasetagInfo: Implements methods defined in ITagInfo.
Definition: BaseTagInfo.h:40
Analysis::TagInfoType
std::string TagInfoType
Definition: JetTagInfoBase.h:19
BaseTagInfo.h
Analysis::QGPartonTruthInfo::m_distanceToParton
double m_distanceToParton
Definition: QGPartonTruthInfo.h:56
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::QGPartonTruthInfo::setJetTruthLabel
void setJetTruthLabel(const std::string &jetTruthLabel)
set the truth label The string with which to set the truth label is stored in the JetTruthMatch algto...
Definition: QGPartonTruthInfo.h:70
Analysis::QGPartonTruthInfo::QGPartonTruthInfo
QGPartonTruthInfo()
default constructor
Definition: QGPartonTruthInfo.cxx:13