ATLAS Offline Software
Loading...
Searching...
No Matches
TruthInfo.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_TRUTHINFO_H
6#define JETTAGINFO_TRUTHINFO_H
9#include <string>
10#include <map>
11
12namespace Analysis
13{
14
18class TruthInfo : public BaseTagInfo
19{
20public:
22 TruthInfo();
23
25 TruthInfo(const TagInfoType& x);
26
29
31 TruthInfo &operator= (const TruthInfo& rhs);
32
34 virtual ~TruthInfo();
35
37 virtual TruthInfo* clone() const;
38
40 const std::string& jetTruthLabel() const;
41
49 void setJetTruthLabel(const std::string& jetTruthLabel);
50
52 void deltaRMinTo(const std::string& key, double dR);
53 double deltaRMinTo(const std::string& key) const;
54
55 void BDecayVertex(const Eigen::Vector3d&);
56 const Eigen::Vector3d& BDecayVertex() const;
57 void BHadronPdg(const int);
58 int BHadronPdg() const;
59
60private:
61 std::string m_jetTruthLabel;
65 Eigen::Vector3d m_BHadronDecayVertex;
67}; // End class
68
69inline void TruthInfo::BDecayVertex(const Eigen::Vector3d& rp) {m_BHadronDecayVertex = rp;}
70inline const Eigen::Vector3d& TruthInfo::BDecayVertex() const {return m_BHadronDecayVertex;}
71inline void TruthInfo::BHadronPdg(const int i) {m_BHadronPdg = i;}
72inline int TruthInfo::BHadronPdg() const {return m_BHadronPdg;}
73
75{
76 return new TruthInfo(*this);
77}
78
79inline const std::string& TruthInfo::jetTruthLabel() const
80{
81 return m_jetTruthLabel;
82}
83
84inline void TruthInfo::setJetTruthLabel(const std::string& jetTruthLabel)
85{
87}
88
89} // End namespace
90#endif
91
ReadCards * rp
#define x
BaseTagInfo()
default constructor
double m_distanceToCQuark
Definition TruthInfo.h:63
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 TruthInfo.h:84
int BHadronPdg() const
Definition TruthInfo.h:72
void deltaRMinTo(const std::string &key, double dR)
min deltaR to quarks:
Definition TruthInfo.cxx:63
const std::string & jetTruthLabel() const
return the truth label
Definition TruthInfo.h:79
const Eigen::Vector3d & BDecayVertex() const
Definition TruthInfo.h:70
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
virtual TruthInfo * clone() const
clone method
Definition TruthInfo.h:74
The namespace of all packages in PhysicsAnalysis/JetTagging.
std::string TagInfoType