ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | List of all members
Trk::VxSecVKalVertexInfo Class Reference

#include <VxSecVKalVertexInfo.h>

Inheritance diagram for Trk::VxSecVKalVertexInfo:
Collaboration diagram for Trk::VxSecVKalVertexInfo:

Public Member Functions

 VxSecVKalVertexInfo ()
 
 VxSecVKalVertexInfo (const std::vector< xAOD::Vertex * > &vertices, double mass, double energyFraction, int n2trackvertices, double energyTrkInJet, const std::vector< const Trk::TrackParticleBase * > &badTracks)
 
 VxSecVKalVertexInfo (const std::vector< xAOD::Vertex * > &vertices, double mass, double energyFraction, int n2trackvertices, double energyTrkInJet, const std::vector< const xAOD::IParticle * > &badTracks)
 
 VxSecVKalVertexInfo (const xAOD::Vertex *pseudoVertex, double mass, double energyFraction, int nBigImpTrk, const std::vector< const xAOD::IParticle * > &badTracks)
 
 VxSecVKalVertexInfo (const VxSecVKalVertexInfo &)
 
virtual VxSecVKalVertexInfoclone () const
 
VxSecVKalVertexInfooperator= (const VxSecVKalVertexInfo &)
 
virtual ~VxSecVKalVertexInfo ()
 
double mass () const
 
double energyFraction () const
 
double energyTrkInJet () const
 
double dstToMatLay () const
 
void setDstToMatLay (double Value)
 
int n2trackvertices () const
 
int nBigImpTracks () const
 
const xAOD::VertexpseudoVertex () const
 
std::vector< const Trk::TrackParticleBase * > badTracksTP () const
 
std::vector< const xAOD::IParticle * > badTracksIP () const
 
void setIParticleOrigin (const xAOD::IParticleContainer *iparticleTES)
 
void setTrackParticleOrigin (const Trk::TrackParticleBaseCollection *trkpartTES)
 
const std::vector< xAOD::Vertex * > & vertices () const
 
void setVertices (const std::vector< xAOD::Vertex * > &)
 
void setSVOwnership (bool Ownership)
 

Protected Attributes

std::vector< xAOD::Vertex * > m_vertices
 
bool m_SVOwnership
 

Private Attributes

double m_mass
 
double m_energyFraction
 
double m_energyTrkInJet
 
double m_dstToMatLayer
 
int m_n2trackvertices
 
int m_nBigImpTracks
 
std::vector< ElementLink< Trk::TrackParticleBaseCollection > > m_badTracksTP
 
std::vector< ElementLink< xAOD::IParticleContainer > > m_badTracksIP
 
const xAOD::Vertexm_pseudoVertex
 

Detailed Description

Definition at line 70 of file VxSecVKalVertexInfo.h.

Constructor & Destructor Documentation

◆ VxSecVKalVertexInfo() [1/5]

Trk::VxSecVKalVertexInfo::VxSecVKalVertexInfo ( )

Definition at line 39 of file VxSecVKalVertexInfo.cxx.

46  {
47  std::vector<const Trk::TrackParticleBase*>::const_iterator badTracksBegin=badTracks.begin();

◆ VxSecVKalVertexInfo() [2/5]

Trk::VxSecVKalVertexInfo::VxSecVKalVertexInfo ( const std::vector< xAOD::Vertex * > &  vertices,
double  mass,
double  energyFraction,
int  n2trackvertices,
double  energyTrkInJet,
const std::vector< const Trk::TrackParticleBase * > &  badTracks 
)

Definition at line 49 of file VxSecVKalVertexInfo.cxx.

51  {
53  link.setElement(*badTracksIter);
54  m_badTracksTP.push_back(link);
55  }
56  }
57 
58 
59  VxSecVKalVertexInfo::VxSecVKalVertexInfo(const std::vector<xAOD::Vertex*> & vertices,
60  double mass,double energyFraction,int n2trackvertices,double energyTrkInJet,
61  const std::vector<const xAOD::IParticle*> & badTracks):
63  m_mass(mass),
66  m_dstToMatLayer(1000.),
68  m_nBigImpTracks(0),
69  m_pseudoVertex(nullptr)
70  {

◆ VxSecVKalVertexInfo() [3/5]

Trk::VxSecVKalVertexInfo::VxSecVKalVertexInfo ( const std::vector< xAOD::Vertex * > &  vertices,
double  mass,
double  energyFraction,
int  n2trackvertices,
double  energyTrkInJet,
const std::vector< const xAOD::IParticle * > &  badTracks 
)

Definition at line 73 of file VxSecVKalVertexInfo.cxx.

75  {
77  link.setElement(*badTracksIter);
78  m_badTracksIP.push_back(link);
79  }
80 
81  }
82 
84  double mass,double energyFraction,int nBigImpTrk,
85  const std::vector<const xAOD::IParticle*> & badTracks):
87  m_mass(mass),
89  m_energyTrkInJet(0.),
90  m_dstToMatLayer(1000.),
92  m_nBigImpTracks(nBigImpTrk),
94  {
95  std::vector<const xAOD::IParticle*>::const_iterator badTracksBegin=badTracks.begin();

◆ VxSecVKalVertexInfo() [4/5]

Trk::VxSecVKalVertexInfo::VxSecVKalVertexInfo ( const xAOD::Vertex pseudoVertex,
double  mass,
double  energyFraction,
int  nBigImpTrk,
const std::vector< const xAOD::IParticle * > &  badTracks 
)

Definition at line 97 of file VxSecVKalVertexInfo.cxx.

99  {
101  link.setElement(*badTracksIter);
102  m_badTracksIP.push_back(link);
103  }
104 
105  }
106 
108 
110 
111  if (this!=&rhs) {
112  this->operator=(rhs);
113  m_mass=rhs.m_mass;
114  m_energyFraction=rhs.m_energyFraction;
115  m_energyTrkInJet=rhs.m_energyTrkInJet;
116  m_dstToMatLayer=rhs.m_dstToMatLayer,
117  m_n2trackvertices=rhs.m_n2trackvertices;
118  m_nBigImpTracks=rhs.m_nBigImpTracks;
119  m_badTracksTP=rhs.m_badTracksTP;

◆ VxSecVKalVertexInfo() [5/5]

Trk::VxSecVKalVertexInfo::VxSecVKalVertexInfo ( const VxSecVKalVertexInfo )
default

◆ ~VxSecVKalVertexInfo()

Trk::VxSecVKalVertexInfo::~VxSecVKalVertexInfo ( )
virtual

Definition at line 140 of file VxSecVKalVertexInfo.cxx.

Member Function Documentation

◆ badTracksIP()

std::vector< const xAOD::IParticle * > Trk::VxSecVKalVertexInfo::badTracksIP ( ) const

Definition at line 162 of file VxSecVKalVertexInfo.cxx.

167  {
168 
169 
170  std::vector<ElementLink<Trk::TrackParticleBaseCollection> >::iterator badTracksBegin=m_badTracksTP.begin();
171  std::vector<ElementLink<Trk::TrackParticleBaseCollection> >::iterator badTracksEnd=m_badTracksTP.end();
172 
173  for (std::vector<ElementLink<Trk::TrackParticleBaseCollection> >::iterator badTracksIter=badTracksBegin;
174  badTracksIter!=badTracksEnd;++badTracksIter) {
175  (*badTracksIter).setStorableObject(*trkpartTES);
176  }
177  }
178 

◆ badTracksTP()

std::vector< const Trk::TrackParticleBase * > Trk::VxSecVKalVertexInfo::badTracksTP ( ) const

Definition at line 143 of file VxSecVKalVertexInfo.cxx.

148  {
149 
150  std::vector<const xAOD::IParticle*> vectorOfIP;
151 
152  std::vector<ElementLink<xAOD::IParticleContainer> >::const_iterator badTracksBegin=m_badTracksIP.begin();
153  std::vector<ElementLink<xAOD::IParticleContainer> >::const_iterator badTracksEnd=m_badTracksIP.end();
154 
155  for (std::vector<ElementLink<xAOD::IParticleContainer> >::const_iterator badTracksIter=badTracksBegin;
156  badTracksIter!=badTracksEnd;++badTracksIter) {
157  if ((*badTracksIter).isValid()) {
158  if (**badTracksIter!=nullptr) {
159  vectorOfIP.push_back(**badTracksIter);
160  }

◆ clone()

VxSecVKalVertexInfo * Trk::VxSecVKalVertexInfo::clone ( ) const
inlinevirtual

Reimplemented from Trk::VxSecVertexInfo.

Definition at line 190 of file VxSecVKalVertexInfo.h.

◆ dstToMatLay()

double Trk::VxSecVKalVertexInfo::dstToMatLay ( ) const
inline

Definition at line 169 of file VxSecVKalVertexInfo.h.

◆ energyFraction()

double Trk::VxSecVKalVertexInfo::energyFraction ( ) const
inline

Definition at line 161 of file VxSecVKalVertexInfo.h.

◆ energyTrkInJet()

double Trk::VxSecVKalVertexInfo::energyTrkInJet ( ) const
inline

Definition at line 165 of file VxSecVKalVertexInfo.h.

165  {
166  return new VxSecVKalVertexInfo(*this);
167  }

◆ mass()

double Trk::VxSecVKalVertexInfo::mass ( ) const
inline

Definition at line 157 of file VxSecVKalVertexInfo.h.

◆ n2trackvertices()

int Trk::VxSecVKalVertexInfo::n2trackvertices ( ) const
inline

Definition at line 177 of file VxSecVKalVertexInfo.h.

◆ nBigImpTracks()

int Trk::VxSecVKalVertexInfo::nBigImpTracks ( ) const
inline

Definition at line 181 of file VxSecVKalVertexInfo.h.

◆ operator=()

VxSecVKalVertexInfo & Trk::VxSecVKalVertexInfo::operator= ( const VxSecVKalVertexInfo rhs)

Definition at line 123 of file VxSecVKalVertexInfo.cxx.

127 }}
128 
129  std::vector<const Trk::TrackParticleBase*> VxSecVKalVertexInfo::badTracksTP() const {
130 
131  std::vector<const Trk::TrackParticleBase*> vectorOfTP;
132 
133  std::vector<ElementLink<Trk::TrackParticleBaseCollection> >::const_iterator badTracksBegin=m_badTracksTP.begin();
134  std::vector<ElementLink<Trk::TrackParticleBaseCollection> >::const_iterator badTracksEnd=m_badTracksTP.end();
135 
136  for (std::vector<ElementLink<Trk::TrackParticleBaseCollection> >::const_iterator badTracksIter=badTracksBegin;
137  badTracksIter!=badTracksEnd;++badTracksIter) {
138  if ((*badTracksIter).isValid()) {

◆ pseudoVertex()

const xAOD::Vertex * Trk::VxSecVKalVertexInfo::pseudoVertex ( ) const
inline

Definition at line 185 of file VxSecVKalVertexInfo.h.

◆ setDstToMatLay()

void Trk::VxSecVKalVertexInfo::setDstToMatLay ( double  Value)
inline

Definition at line 173 of file VxSecVKalVertexInfo.h.

◆ setIParticleOrigin()

void Trk::VxSecVKalVertexInfo::setIParticleOrigin ( const xAOD::IParticleContainer iparticleTES)

Definition at line 193 of file VxSecVKalVertexInfo.cxx.

◆ setSVOwnership()

void Trk::VxSecVertexInfo::setSVOwnership ( bool  Ownership)
inlineinherited

Definition at line 118 of file VxSecVertexInfo.h.

◆ setTrackParticleOrigin()

void Trk::VxSecVKalVertexInfo::setTrackParticleOrigin ( const Trk::TrackParticleBaseCollection trkpartTES)

Definition at line 181 of file VxSecVKalVertexInfo.cxx.

186  {
187  (*badTracksIter).setStorableObject(*ipartTES);
188  }
189 
190  }
191 

◆ setVertices()

void Trk::VxSecVertexInfo::setVertices ( const std::vector< xAOD::Vertex * > &  vertices)
inherited

Definition at line 104 of file VxSecVertexInfo.cxx.

◆ vertices()

const std::vector< xAOD::Vertex * > & Trk::VxSecVertexInfo::vertices ( ) const
inherited

Definition at line 100 of file VxSecVertexInfo.cxx.

Member Data Documentation

◆ m_badTracksIP

std::vector<ElementLink<xAOD::IParticleContainer> > Trk::VxSecVKalVertexInfo::m_badTracksIP
private

Definition at line 175 of file VxSecVKalVertexInfo.h.

◆ m_badTracksTP

std::vector<ElementLink<Trk::TrackParticleBaseCollection> > Trk::VxSecVKalVertexInfo::m_badTracksTP
private

Definition at line 174 of file VxSecVKalVertexInfo.h.

◆ m_dstToMatLayer

double Trk::VxSecVKalVertexInfo::m_dstToMatLayer
private

Definition at line 171 of file VxSecVKalVertexInfo.h.

◆ m_energyFraction

double Trk::VxSecVKalVertexInfo::m_energyFraction
private

Definition at line 169 of file VxSecVKalVertexInfo.h.

◆ m_energyTrkInJet

double Trk::VxSecVKalVertexInfo::m_energyTrkInJet
private

Definition at line 170 of file VxSecVKalVertexInfo.h.

◆ m_mass

double Trk::VxSecVKalVertexInfo::m_mass
private

Definition at line 168 of file VxSecVKalVertexInfo.h.

◆ m_n2trackvertices

int Trk::VxSecVKalVertexInfo::m_n2trackvertices
private

Definition at line 172 of file VxSecVKalVertexInfo.h.

◆ m_nBigImpTracks

int Trk::VxSecVKalVertexInfo::m_nBigImpTracks
private

Definition at line 173 of file VxSecVKalVertexInfo.h.

◆ m_pseudoVertex

const xAOD::Vertex* Trk::VxSecVKalVertexInfo::m_pseudoVertex
private

Definition at line 177 of file VxSecVKalVertexInfo.h.

◆ m_SVOwnership

bool Trk::VxSecVertexInfo::m_SVOwnership
protectedinherited

Definition at line 126 of file VxSecVertexInfo.h.

◆ m_vertices

std::vector<xAOD::Vertex*> Trk::VxSecVertexInfo::m_vertices
protectedinherited

Definition at line 125 of file VxSecVertexInfo.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
Trk::VxSecVKalVertexInfo::m_badTracksTP
std::vector< ElementLink< Trk::TrackParticleBaseCollection > > m_badTracksTP
Definition: VxSecVKalVertexInfo.h:174
Trk::VxSecVKalVertexInfo::m_energyFraction
double m_energyFraction
Definition: VxSecVKalVertexInfo.h:169
Trk::VxSecVKalVertexInfo::n2trackvertices
int n2trackvertices() const
Definition: VxSecVKalVertexInfo.h:177
Trk::VxSecVKalVertexInfo::VxSecVKalVertexInfo
VxSecVKalVertexInfo()
Definition: VxSecVKalVertexInfo.cxx:39
Trk::VxSecVertexInfo::vertices
const std::vector< xAOD::Vertex * > & vertices() const
Definition: VxSecVertexInfo.cxx:100
Trk::VxSecVertexInfo::m_SVOwnership
bool m_SVOwnership
Definition: VxSecVertexInfo.h:126
Trk::VxSecVKalVertexInfo::badTracksTP
std::vector< const Trk::TrackParticleBase * > badTracksTP() const
Definition: VxSecVKalVertexInfo.cxx:143
Trk::VxSecVKalVertexInfo::m_energyTrkInJet
double m_energyTrkInJet
Definition: VxSecVKalVertexInfo.h:170
Trk::VxSecVKalVertexInfo::m_dstToMatLayer
double m_dstToMatLayer
Definition: VxSecVKalVertexInfo.h:171
Trk::VxSecVertexInfo::VxSecVertexInfo
VxSecVertexInfo()
Definition: VxSecVertexInfo.cxx:36
Trk::VxSecVKalVertexInfo::mass
double mass() const
Definition: VxSecVKalVertexInfo.h:157
Trk::VxSecVKalVertexInfo::m_n2trackvertices
int m_n2trackvertices
Definition: VxSecVKalVertexInfo.h:172
Trk::VxSecVKalVertexInfo::m_badTracksIP
std::vector< ElementLink< xAOD::IParticleContainer > > m_badTracksIP
Definition: VxSecVKalVertexInfo.h:175
Trk::VxSecVKalVertexInfo::m_mass
double m_mass
Definition: VxSecVKalVertexInfo.h:168
Trk::VxSecVKalVertexInfo::operator=
VxSecVKalVertexInfo & operator=(const VxSecVKalVertexInfo &)
Definition: VxSecVKalVertexInfo.cxx:123
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
Trk::VxSecVKalVertexInfo::energyTrkInJet
double energyTrkInJet() const
Definition: VxSecVKalVertexInfo.h:165
Trk::VxSecVKalVertexInfo::m_nBigImpTracks
int m_nBigImpTracks
Definition: VxSecVKalVertexInfo.h:173
Trk::VxSecVKalVertexInfo::m_pseudoVertex
const xAOD::Vertex * m_pseudoVertex
Definition: VxSecVKalVertexInfo.h:177
Trk::VxSecVKalVertexInfo::energyFraction
double energyFraction() const
Definition: VxSecVKalVertexInfo.h:161
Trk::VxSecVKalVertexInfo::setIParticleOrigin
void setIParticleOrigin(const xAOD::IParticleContainer *iparticleTES)
Definition: VxSecVKalVertexInfo.cxx:193
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42