ATLAS Offline Software
Loading...
Searching...
No Matches
TruthInfo.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
9namespace Analysis
10{
11
21
23TruthInfo::TruthInfo(const TagInfoType& tagJetInfoType)
24 : BaseTagInfo(tagJetInfoType),
25 m_jetTruthLabel("N/A"),
26 m_distanceToBQuark (999.),
27 m_distanceToCQuark (999.),
29 m_BHadronPdg (0)
30{}
31
43
58
62
63void TruthInfo::deltaRMinTo(const std::string& key, double dR) {
64 if( "B"==key || "b"==key ) m_distanceToBQuark = dR;
65 if( "C"==key || "c"==key ) m_distanceToCQuark = dR;
66 if( "T"==key || "t"==key ) m_distanceToTLepton = dR;
67}
68
69double TruthInfo::deltaRMinTo(const std::string& key) const {
70 double dR = 9999.;
71 if( "B"==key || "b"==key ) dR = m_distanceToBQuark;
72 if( "C"==key || "c"==key ) dR = m_distanceToCQuark;
73 if( "T"==key || "t"==key ) dR = m_distanceToTLepton;
74 return dR;
75}
76
77}
BaseTagInfo()
default constructor
double m_distanceToCQuark
Definition TruthInfo.h:63
void deltaRMinTo(const std::string &key, double dR)
min deltaR to quarks:
Definition TruthInfo.cxx:63
std::string m_jetTruthLabel
Definition TruthInfo.h:61
Eigen::Vector3d m_BHadronDecayVertex
Definition TruthInfo.h:65
double m_distanceToTLepton
Definition TruthInfo.h:64
TruthInfo & operator=(const TruthInfo &rhs)
assigenment operator
Definition TruthInfo.cxx:45
TruthInfo()
default constructor
Definition TruthInfo.cxx:13
double m_distanceToBQuark
Definition TruthInfo.h:62
virtual ~TruthInfo()
default destructor
Definition TruthInfo.cxx:60
The namespace of all packages in PhysicsAnalysis/JetTagging.
std::string TagInfoType