ATLAS Offline Software
MSVVtxInfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JETTAGINFO_MSVVTXINFO_H
6 #define JETTAGINFO_MSVVTXINFO_H
7 
9 #include "VxVertex/RecVertex.h"
10 #include <vector>
11 #include <iostream>
12 
13 namespace Analysis
14 {
15 
16  class MSVVtxInfo
17  {
18  public:
19 
20  MSVVtxInfo();
21 
23  void setRecSvx(const Trk::RecVertex&);
24  void setMass(float);
25  void setPt(float);
26  void setEta(float);
27  void setPhi(float);
28  void setEnergyFraction(float);
29  void setNormDist(float);
30  void addTrackInfo(const SVTrackInfo& i);
32  const Trk::RecVertex& getRecSvx() const;
33  float getMass() const;
34  float getPt() const;
35  float getEta() const;
36  float getPhi() const;
37  float getEnergyFraction() const;
38  float getNormDist() const;
39  int numTrackInfo() const;
40  const SVTrackInfo& getTrackInfo(unsigned int i) const;
41 
42  private:
44  float m_masssvx;
45  float m_ptsvx;
46  float m_etasvx;
47  float m_phisvx;
48  float m_efracsvx;
49  float m_normdist;
50  std::vector<SVTrackInfo> m_trackinfo;
51 
52  }; // End class
53 
54  inline void MSVVtxInfo::setRecSvx(const Trk::RecVertex& gl) {m_recsvx = gl;}
55  inline void MSVVtxInfo::setMass(float mass) {m_masssvx = mass;}
56  inline void MSVVtxInfo::setPt(float pt) {m_ptsvx = pt;}
57  inline void MSVVtxInfo::setEta(float eta) {m_etasvx = eta;}
58  inline void MSVVtxInfo::setPhi(float phi) {m_phisvx = phi;}
60  inline void MSVVtxInfo::setNormDist(float nd) {m_normdist = nd;}
61  inline void MSVVtxInfo::addTrackInfo(const SVTrackInfo& i) { m_trackinfo.push_back(i); }
62  //
63  inline const Trk::RecVertex& MSVVtxInfo::getRecSvx() const {return m_recsvx;}
64  inline float MSVVtxInfo::getMass() const {return m_masssvx;}
65  inline float MSVVtxInfo::getPt() const {return m_ptsvx;}
66  inline float MSVVtxInfo::getEta() const {return m_etasvx;}
67  inline float MSVVtxInfo::getPhi() const {return m_phisvx;}
68  inline float MSVVtxInfo::getEnergyFraction() const {return m_efracsvx;}
69  inline float MSVVtxInfo::getNormDist() const {return m_normdist;}
70  inline int MSVVtxInfo::numTrackInfo() const {return m_trackinfo.size();}
71  inline const SVTrackInfo& MSVVtxInfo::getTrackInfo(unsigned int i) const {return m_trackinfo.at(i);}
72 
73 
74 
75 } // End namespace
76 #endif
RecVertex.h
Analysis::MSVVtxInfo::setEnergyFraction
void setEnergyFraction(float)
Definition: MSVVtxInfo.h:59
Analysis::MSVVtxInfo::MSVVtxInfo
MSVVtxInfo()
Definition: MSVVtxInfo.cxx:10
Analysis::MSVVtxInfo::getNormDist
float getNormDist() const
Definition: MSVVtxInfo.h:69
Analysis::MSVVtxInfo::getRecSvx
const Trk::RecVertex & getRecSvx() const
Get methods.
Definition: MSVVtxInfo.h:63
Analysis::MSVVtxInfo::setRecSvx
void setRecSvx(const Trk::RecVertex &)
Set methods.
Definition: MSVVtxInfo.h:54
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
Analysis::MSVVtxInfo::m_ptsvx
float m_ptsvx
Definition: MSVVtxInfo.h:45
Analysis::SVTrackInfo
Definition: SVTrackInfo.h:17
Analysis::MSVVtxInfo::getTrackInfo
const SVTrackInfo & getTrackInfo(unsigned int i) const
Definition: MSVVtxInfo.h:71
test_pyathena.pt
pt
Definition: test_pyathena.py:11
Analysis::MSVVtxInfo::setPt
void setPt(float)
Definition: MSVVtxInfo.h:56
Analysis::MSVVtxInfo::numTrackInfo
int numTrackInfo() const
Definition: MSVVtxInfo.h:70
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
Analysis::MSVVtxInfo::m_phisvx
float m_phisvx
Definition: MSVVtxInfo.h:47
Analysis::MSVVtxInfo::setPhi
void setPhi(float)
Definition: MSVVtxInfo.h:58
Analysis::MSVVtxInfo::m_trackinfo
std::vector< SVTrackInfo > m_trackinfo
Definition: MSVVtxInfo.h:50
lumiFormat.i
int i
Definition: lumiFormat.py:85
Analysis::MSVVtxInfo::getMass
float getMass() const
Definition: MSVVtxInfo.h:64
Analysis::MSVVtxInfo::setNormDist
void setNormDist(float)
Definition: MSVVtxInfo.h:60
Analysis::MSVVtxInfo::setEta
void setEta(float)
Definition: MSVVtxInfo.h:57
Analysis::MSVVtxInfo::addTrackInfo
void addTrackInfo(const SVTrackInfo &i)
Definition: MSVVtxInfo.h:61
Analysis::MSVVtxInfo::m_etasvx
float m_etasvx
Definition: MSVVtxInfo.h:46
Analysis::MSVVtxInfo::getPhi
float getPhi() const
Definition: MSVVtxInfo.h:67
Analysis::MSVVtxInfo::m_masssvx
float m_masssvx
Definition: MSVVtxInfo.h:44
Analysis::MSVVtxInfo::m_recsvx
Trk::RecVertex m_recsvx
Definition: MSVVtxInfo.h:43
Analysis::MSVVtxInfo::getEnergyFraction
float getEnergyFraction() const
Definition: MSVVtxInfo.h:68
Analysis::MSVVtxInfo::getPt
float getPt() const
Definition: MSVVtxInfo.h:65
Analysis::MSVVtxInfo::getEta
float getEta() const
Definition: MSVVtxInfo.h:66
Analysis::MSVVtxInfo::m_normdist
float m_normdist
Definition: MSVVtxInfo.h:49
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::MSVVtxInfo::setMass
void setMass(float)
Definition: MSVVtxInfo.h:55
Analysis::MSVVtxInfo::m_efracsvx
float m_efracsvx
Definition: MSVVtxInfo.h:48
Analysis::MSVVtxInfo
Definition: MSVVtxInfo.h:17
SVTrackInfo.h
LheEventFiller_Common.ef
ef
Definition: SFGen_i/share/common/LheEventFiller_Common.py:7