ATLAS Offline Software
SVInfoPlus.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JETTAGINFO_SVINFOPLUS_H
6 #define JETTAGINFO_SVINFOPLUS_H
9 #include "VxVertex/RecVertex.h"
10 #include <vector>
11 #include <iostream>
12 
13 namespace Analysis
14 {
15 
16 class SVInfoPlus : public BaseTagInfo
17 {
18  public:
20  SVInfoPlus();
21 
23  SVInfoPlus(const TagInfoType& x);
24 
27 
29  SVInfoPlus &operator= (const SVInfoPlus& rhs);
30 
32  virtual ~SVInfoPlus();
33  virtual SVInfoPlus* clone() const;
34 
36  void setRecSvx(const Trk::RecVertex&);
37  void setNGTrackInJet(long int);
38  void setNGTrackInSvx(long int);
39  void setN2T(long int);
40  void setMass(float);
41  void setEnergyFraction(float);
42  void setNormDist(float);
43  void addTrackInfo(const SVTrackInfo& i);
45  const Trk::RecVertex& getRecSvx() const;
46  long int getNGTrackInJet() const;
47  long int getNGTrackInSvx() const;
48  long int getN2T() const;
49  float getMass() const;
50  float getEnergyFraction() const;
51  float getNormDist() const;
52  float getChi2Compatibility(const Trk::RecVertex priVertex, const Trk::RecVertex secVertex, const Amg::Vector3D jetDirection) const;
53  int numTrackInfo() const;
54  const SVTrackInfo& getTrackInfo(uint i) const;
55 
56  private:
58  long int m_NGTinJet;
59  long int m_NGTinSvx;
60  long int m_N2Tpair;
61  float m_masssvx;
62  float m_efracsvx;
63  float m_normdist;
64  std::vector<SVTrackInfo> m_trackinfo;
65 
66 }; // End class
67 
68  inline void SVInfoPlus::setRecSvx(const Trk::RecVertex& gl) {m_recsvx = gl;}
69  inline void SVInfoPlus::setNGTrackInJet(long int li) {m_NGTinJet = li;}
70  inline void SVInfoPlus::setNGTrackInSvx(long int li) {m_NGTinSvx = li;}
71  inline void SVInfoPlus::setN2T(long int li) {m_N2Tpair = li;}
72  inline void SVInfoPlus::setMass(float mass) {m_masssvx = mass;}
74  inline void SVInfoPlus::setNormDist(float nd) {m_normdist = nd;}
75  inline void SVInfoPlus::addTrackInfo(const SVTrackInfo& i) { m_trackinfo.push_back(i); }
76  //
77  inline const Trk::RecVertex& SVInfoPlus::getRecSvx() const {return m_recsvx;}
78  inline long int SVInfoPlus::getNGTrackInJet() const {return m_NGTinJet;}
79  inline long int SVInfoPlus::getNGTrackInSvx() const {return m_NGTinSvx;}
80  inline long int SVInfoPlus::getN2T() const {return m_N2Tpair;}
81  inline float SVInfoPlus::getMass() const {return m_masssvx;}
82  inline float SVInfoPlus::getEnergyFraction() const {return m_efracsvx;}
83  inline float SVInfoPlus::getNormDist() const {return m_normdist;}
84  inline int SVInfoPlus::numTrackInfo() const {return m_trackinfo.size();}
85  inline const SVTrackInfo& SVInfoPlus::getTrackInfo(uint i) const {return m_trackinfo.at(i);}
86 
88 {
89  return new SVInfoPlus(*this);
90 }
91 
92 } // End namespace
93 #endif
RecVertex.h
Analysis::SVInfoPlus::operator=
SVInfoPlus & operator=(const SVInfoPlus &rhs)
assigenment operator
Definition: SVInfoPlus.cxx:50
Analysis::SVInfoPlus::setMass
void setMass(float)
Definition: SVInfoPlus.h:72
Analysis::SVInfoPlus::getChi2Compatibility
float getChi2Compatibility(const Trk::RecVertex priVertex, const Trk::RecVertex secVertex, const Amg::Vector3D jetDirection) const
Definition: SVInfoPlus.cxx:72
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
Analysis::SVInfoPlus::addTrackInfo
void addTrackInfo(const SVTrackInfo &i)
Definition: SVInfoPlus.h:75
Analysis::SVTrackInfo
Definition: SVTrackInfo.h:17
Analysis::SVInfoPlus::~SVInfoPlus
virtual ~SVInfoPlus()
default destructor
Definition: SVInfoPlus.cxx:69
Analysis::SVInfoPlus::getNGTrackInSvx
long int getNGTrackInSvx() const
Definition: SVInfoPlus.h:79
Analysis::SVInfoPlus::m_trackinfo
std::vector< SVTrackInfo > m_trackinfo
Definition: SVInfoPlus.h:64
Analysis::SVInfoPlus::m_masssvx
float m_masssvx
Definition: SVInfoPlus.h:61
Analysis::SVInfoPlus::m_recsvx
Trk::RecVertex m_recsvx
Definition: SVInfoPlus.h:57
x
#define x
Analysis::SVInfoPlus::setRecSvx
void setRecSvx(const Trk::RecVertex &)
Set methods.
Definition: SVInfoPlus.h:68
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
uint
unsigned int uint
Definition: LArOFPhaseFill.cxx:20
Analysis::SVInfoPlus::setEnergyFraction
void setEnergyFraction(float)
Definition: SVInfoPlus.h:73
Analysis::SVInfoPlus::SVInfoPlus
SVInfoPlus()
default constructor
Definition: SVInfoPlus.cxx:11
lumiFormat.i
int i
Definition: lumiFormat.py:85
Analysis::SVInfoPlus::getNormDist
float getNormDist() const
Definition: SVInfoPlus.h:83
Analysis::BaseTagInfo
Class BasetagInfo: Implements methods defined in ITagInfo.
Definition: BaseTagInfo.h:40
Analysis::SVInfoPlus::numTrackInfo
int numTrackInfo() const
Definition: SVInfoPlus.h:84
Analysis::SVInfoPlus::clone
virtual SVInfoPlus * clone() const
a clone method for the proper workings of the copy constructor
Definition: SVInfoPlus.h:87
Analysis::TagInfoType
std::string TagInfoType
Definition: JetTagInfoBase.h:19
Analysis::SVInfoPlus::setNGTrackInSvx
void setNGTrackInSvx(long int)
Definition: SVInfoPlus.h:70
BaseTagInfo.h
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::SVInfoPlus::m_normdist
float m_normdist
Definition: SVInfoPlus.h:63
Analysis::SVInfoPlus::getN2T
long int getN2T() const
Definition: SVInfoPlus.h:80
Analysis::SVInfoPlus::setNormDist
void setNormDist(float)
Definition: SVInfoPlus.h:74
Analysis::SVInfoPlus::getTrackInfo
const SVTrackInfo & getTrackInfo(uint i) const
Definition: SVInfoPlus.h:85
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Analysis::SVInfoPlus::setNGTrackInJet
void setNGTrackInJet(long int)
Definition: SVInfoPlus.h:69
Analysis::SVInfoPlus::getNGTrackInJet
long int getNGTrackInJet() const
Definition: SVInfoPlus.h:78
Analysis::SVInfoPlus::setN2T
void setN2T(long int)
Definition: SVInfoPlus.h:71
Analysis::SVInfoPlus
Definition: SVInfoPlus.h:17
Analysis::SVInfoPlus::m_NGTinJet
long int m_NGTinJet
Definition: SVInfoPlus.h:58
Analysis::SVInfoPlus::m_efracsvx
float m_efracsvx
Definition: SVInfoPlus.h:62
Analysis::SVInfoPlus::m_NGTinSvx
long int m_NGTinSvx
Definition: SVInfoPlus.h:59
Analysis::SVInfoPlus::getRecSvx
const Trk::RecVertex & getRecSvx() const
Get methods.
Definition: SVInfoPlus.h:77
Analysis::SVInfoPlus::getEnergyFraction
float getEnergyFraction() const
Definition: SVInfoPlus.h:82
SVTrackInfo.h
Analysis::SVInfoPlus::m_N2Tpair
long int m_N2Tpair
Definition: SVInfoPlus.h:60
LheEventFiller_Common.ef
ef
Definition: SFGen_i/share/common/LheEventFiller_Common.py:7
Analysis::SVInfoPlus::getMass
float getMass() const
Definition: SVInfoPlus.h:81