ATLAS Offline Software
QGPartonTruthInfo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include <algorithm>
7 #include <utility>
8 
9 namespace Analysis
10 {
11 
14  : BaseTagInfo(),
15  m_jetTruthLabel("N/A"),
16  m_distanceToParton (999.)
17 {}
18 
21  : BaseTagInfo(tagJetInfoType),
22  m_jetTruthLabel("N/A"),
23  m_distanceToParton (999.)
24 {}
25 
30  : BaseTagInfo(rhs),
31  m_jetTruthLabel(rhs.m_jetTruthLabel),
32  m_distanceToParton(rhs.m_distanceToParton)
33 {}
34 
37 {
38  if (this!=&rhs)
39  {
42  }
43  return *this;
44 }
45 
48 {}
49 
51  m_distanceToParton = dR;
52 }
53 
55  double dR = 9999.;
56  dR = m_distanceToParton;
57  return dR;
58 }
59 
60 }
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
Analysis::QGPartonTruthInfo::~QGPartonTruthInfo
virtual ~QGPartonTruthInfo()
default destructor
Definition: QGPartonTruthInfo.cxx:47
Analysis::QGPartonTruthInfo::m_jetTruthLabel
std::string m_jetTruthLabel
Definition: QGPartonTruthInfo.h:55
Analysis::BaseTagInfo
Class BasetagInfo: Implements methods defined in ITagInfo.
Definition: BaseTagInfo.h:40
Analysis::TagInfoType
std::string TagInfoType
Definition: JetTagInfoBase.h:19
Analysis::QGPartonTruthInfo::m_distanceToParton
double m_distanceToParton
Definition: QGPartonTruthInfo.h:56
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
QGPartonTruthInfo.h
Analysis::QGPartonTruthInfo::QGPartonTruthInfo
QGPartonTruthInfo()
default constructor
Definition: QGPartonTruthInfo.cxx:13