ATLAS Offline Software
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 
12 namespace Analysis
13 {
14 
18 class TruthInfo : public BaseTagInfo
19 {
20 public:
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 
60 private:
61  std::string m_jetTruthLabel;
65  Eigen::Vector3d m_BHadronDecayVertex;
67 }; // End class
68 
69 inline void TruthInfo::BDecayVertex(const Eigen::Vector3d& rp) {m_BHadronDecayVertex = rp;}
70 inline const Eigen::Vector3d& TruthInfo::BDecayVertex() const {return m_BHadronDecayVertex;}
71 inline void TruthInfo::BHadronPdg(const int i) {m_BHadronPdg = i;}
72 inline int TruthInfo::BHadronPdg() const {return m_BHadronPdg;}
73 
74 inline TruthInfo* TruthInfo::clone() const
75 {
76  return new TruthInfo(*this);
77 }
78 
79 inline const std::string& TruthInfo::jetTruthLabel() const
80 {
81  return m_jetTruthLabel;
82 }
83 
84 inline void TruthInfo::setJetTruthLabel(const std::string& jetTruthLabel)
85 {
87 }
88 
89 } // End namespace
90 #endif
91 
Analysis::TruthInfo::BDecayVertex
const Eigen::Vector3d & BDecayVertex() const
Definition: TruthInfo.h:70
Analysis::TruthInfo::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: TruthInfo.h:84
Analysis::TruthInfo::clone
virtual TruthInfo * clone() const
clone method
Definition: TruthInfo.h:74
Analysis::TruthInfo::operator=
TruthInfo & operator=(const TruthInfo &rhs)
assigenment operator
Definition: TruthInfo.cxx:45
x
#define x
Analysis::TruthInfo::m_distanceToBQuark
double m_distanceToBQuark
Definition: TruthInfo.h:62
lumiFormat.i
int i
Definition: lumiFormat.py:92
Analysis::TruthInfo::BHadronPdg
int BHadronPdg() const
Definition: TruthInfo.h:72
Analysis::BaseTagInfo
Class BasetagInfo: Implements methods defined in ITagInfo.
Definition: BaseTagInfo.h:40
Analysis::TruthInfo::~TruthInfo
virtual ~TruthInfo()
default destructor
Definition: TruthInfo.cxx:60
Analysis::TagInfoType
std::string TagInfoType
Definition: JetTagInfoBase.h:19
BaseTagInfo.h
EventPrimitives.h
Analysis::TruthInfo::m_jetTruthLabel
std::string m_jetTruthLabel
Definition: TruthInfo.h:61
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::TruthInfo::deltaRMinTo
void deltaRMinTo(const std::string &key, double dR)
min deltaR to quarks:
Definition: TruthInfo.cxx:63
Analysis::TruthInfo::m_distanceToTLepton
double m_distanceToTLepton
Definition: TruthInfo.h:64
Analysis::TruthInfo::jetTruthLabel
const std::string & jetTruthLabel() const
return the truth label
Definition: TruthInfo.h:79
Analysis::TruthInfo::TruthInfo
TruthInfo()
default constructor
Definition: TruthInfo.cxx:13
Analysis::TruthInfo
Class TruthInfo: Class to store more truth information about a JetTag (e.g.
Definition: TruthInfo.h:19
rp
ReadCards * rp
Definition: IReadCards.cxx:26
Analysis::TruthInfo::m_BHadronDecayVertex
Eigen::Vector3d m_BHadronDecayVertex
Definition: TruthInfo.h:65
Analysis::TruthInfo::m_distanceToCQuark
double m_distanceToCQuark
Definition: TruthInfo.h:63
Analysis::TruthInfo::m_BHadronPdg
int m_BHadronPdg
Definition: TruthInfo.h:66
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37