ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MSVertex Class Reference

#include <MSVertex.h>

Collaboration diagram for MSVertex:

Public Member Functions

 MSVertex ()
 
 MSVertex (const MSVertex &)
 
 MSVertex (int, const Amg::Vector3D &, float, float, int, int, int)
 
 MSVertex (int, const Amg::Vector3D &, const std::vector< xAOD::TrackParticle * > &, float, float, int, int, int)
 
MSVertexoperator= (const MSVertex &msvx)
 
virtual ~MSVertex ()
 
MSVertexclone ()
 
void setPosition (const Amg::Vector3D &)
 
const Amg::Vector3DgetPosition () const
 
const std::vector< xAOD::TrackParticle * > * getTracks () const
 
void setAuthor (const int)
 
int getAuthor () const
 
float getChi2Probability () const
 
float getChi2 () const
 
int getNTracks () const
 
void setNMDT (const int)
 
void setNRPC (const int)
 
void setNTGC (const int)
 
int getNMDT () const
 
int getNRPC () const
 
int getNTGC () const
 

Private Attributes

unsigned int m_author
 
Amg::Vector3D m_position
 
std::vector< xAOD::TrackParticle * > m_tracks
 
float m_chi2prob
 
float m_chi2
 
int m_nMDT
 
int m_nRPC
 
int m_nTGC
 

Detailed Description

Definition at line 12 of file MSVertex.h.

Constructor & Destructor Documentation

◆ MSVertex() [1/4]

MSVertex::MSVertex ( )

Definition at line 11 of file MSVertex.cxx.

11 : m_author(0), m_position(), m_tracks(0), m_chi2prob(-1.), m_chi2(-1.), m_nMDT(-1), m_nRPC(-1), m_nTGC(-1) {}

◆ MSVertex() [2/4]

MSVertex::MSVertex ( const MSVertex vertex)

Definition at line 13 of file MSVertex.cxx.

13  :
14  m_author(vertex.getAuthor()),
15  m_position(vertex.getPosition()),
16  m_tracks(0),
17  m_chi2prob(vertex.getChi2Probability()),
18  m_chi2(vertex.getChi2()),
19  m_nMDT(vertex.getNMDT()),
20  m_nRPC(vertex.getNRPC()),
21  m_nTGC(vertex.getNTGC()) {
22  for (std::vector<xAOD::TrackParticle*>::const_iterator i = vertex.getTracks()->begin(); i != vertex.getTracks()->end(); ++i) {
23  m_tracks.push_back(new xAOD::TrackParticle(**i));
24  }
25 }

◆ MSVertex() [3/4]

MSVertex::MSVertex ( int  author,
const Amg::Vector3D position,
float  chi2prob,
float  chi2,
int  nMDT,
int  nRPC,
int  nTGC 
)

Definition at line 27 of file MSVertex.cxx.

27  :
28  m_author(author), m_position(position), m_tracks(0), m_chi2prob(chi2prob), m_chi2(chi2), m_nMDT(nMDT), m_nRPC(nRPC), m_nTGC(nTGC) {}

◆ MSVertex() [4/4]

MSVertex::MSVertex ( int  author,
const Amg::Vector3D position,
const std::vector< xAOD::TrackParticle * > &  tracks,
float  chi2prob,
float  chi2,
int  nMDT,
int  nRPC,
int  nTGC 
)

Definition at line 30 of file MSVertex.cxx.

31  :
33  m_position(position),
34  m_tracks(tracks),
35  m_chi2prob(chi2prob),
36  m_chi2(chi2),
37  m_nMDT(nMDT),
38  m_nRPC(nRPC),
39  m_nTGC(nTGC) {}

◆ ~MSVertex()

MSVertex::~MSVertex ( )
virtual

Definition at line 41 of file MSVertex.cxx.

41  {
42  for (std::vector<xAOD::TrackParticle*>::iterator i = m_tracks.begin(); i != m_tracks.end(); ++i) {
43  if ((*i)) {
44  delete (*i);
45  (*i) = 0;
46  }
47  }
48  m_tracks.clear();
49 }

Member Function Documentation

◆ clone()

MSVertex * MSVertex::clone ( )

Definition at line 68 of file MSVertex.cxx.

68  {
69  std::vector<xAOD::TrackParticle*> trk;
70  for (std::vector<xAOD::TrackParticle*>::iterator i = m_tracks.begin(); i != m_tracks.end(); ++i) {
71  trk.push_back(new xAOD::TrackParticle(**i));
72  }
74 }

◆ getAuthor()

int MSVertex::getAuthor ( ) const

Definition at line 84 of file MSVertex.cxx.

84 { return m_author; }

◆ getChi2()

float MSVertex::getChi2 ( ) const

Definition at line 86 of file MSVertex.cxx.

86 { return m_chi2; }

◆ getChi2Probability()

float MSVertex::getChi2Probability ( ) const

Definition at line 85 of file MSVertex.cxx.

85 { return m_chi2prob; }

◆ getNMDT()

int MSVertex::getNMDT ( ) const

Definition at line 99 of file MSVertex.cxx.

99 { return m_nMDT; }

◆ getNRPC()

int MSVertex::getNRPC ( ) const

Definition at line 100 of file MSVertex.cxx.

100 { return m_nRPC; }

◆ getNTGC()

int MSVertex::getNTGC ( ) const

Definition at line 101 of file MSVertex.cxx.

101 { return m_nTGC; }

◆ getNTracks()

int MSVertex::getNTracks ( ) const

Definition at line 88 of file MSVertex.cxx.

88  {
89  if (getTracks())
90  return getTracks()->size();
91  else
92  return 0;
93 }

◆ getPosition()

const Amg::Vector3D & MSVertex::getPosition ( ) const

Definition at line 78 of file MSVertex.cxx.

78 { return m_position; }

◆ getTracks()

const std::vector< xAOD::TrackParticle * > * MSVertex::getTracks ( ) const

Definition at line 80 of file MSVertex.cxx.

80 { return &m_tracks; }

◆ operator=()

MSVertex & MSVertex::operator= ( const MSVertex msvx)

Definition at line 51 of file MSVertex.cxx.

51  {
52  if (this != &msvx) {
53  m_author = msvx.getAuthor();
54  m_position = msvx.getPosition();
56  m_chi2 = msvx.getChi2();
57  m_nMDT = msvx.getNMDT();
58  m_nRPC = msvx.getNRPC();
59  m_nTGC = msvx.getNTGC();
60 
61  for (std::vector<xAOD::TrackParticle*>::const_iterator i = msvx.getTracks()->begin(); i != msvx.getTracks()->end(); ++i) {
62  m_tracks.push_back(new xAOD::TrackParticle(**i));
63  }
64  }
65  return *this;
66 }

◆ setAuthor()

void MSVertex::setAuthor ( const int  author)

Definition at line 82 of file MSVertex.cxx.

82 { m_author = author; }

◆ setNMDT()

void MSVertex::setNMDT ( const int  nMDT)

Definition at line 95 of file MSVertex.cxx.

95 { m_nMDT = nMDT; }

◆ setNRPC()

void MSVertex::setNRPC ( const int  nRPC)

Definition at line 96 of file MSVertex.cxx.

96 { m_nRPC = nRPC; }

◆ setNTGC()

void MSVertex::setNTGC ( const int  nTGC)

Definition at line 97 of file MSVertex.cxx.

97 { m_nTGC = nTGC; }

◆ setPosition()

void MSVertex::setPosition ( const Amg::Vector3D position)

Definition at line 76 of file MSVertex.cxx.

76 { m_position = position; }

Member Data Documentation

◆ m_author

unsigned int MSVertex::m_author
private

Definition at line 48 of file MSVertex.h.

◆ m_chi2

float MSVertex::m_chi2
private

Definition at line 54 of file MSVertex.h.

◆ m_chi2prob

float MSVertex::m_chi2prob
private

Definition at line 54 of file MSVertex.h.

◆ m_nMDT

int MSVertex::m_nMDT
private

Definition at line 56 of file MSVertex.h.

◆ m_nRPC

int MSVertex::m_nRPC
private

Definition at line 56 of file MSVertex.h.

◆ m_nTGC

int MSVertex::m_nTGC
private

Definition at line 56 of file MSVertex.h.

◆ m_position

Amg::Vector3D MSVertex::m_position
private

Definition at line 50 of file MSVertex.h.

◆ m_tracks

std::vector<xAOD::TrackParticle*> MSVertex::m_tracks
private

Definition at line 52 of file MSVertex.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
MSVertex::m_nMDT
int m_nMDT
Definition: MSVertex.h:56
MSVertex::m_position
Amg::Vector3D m_position
Definition: MSVertex.h:50
MSVertex::m_nTGC
int m_nTGC
Definition: MSVertex.h:56
MSVertex::m_chi2
float m_chi2
Definition: MSVertex.h:54
MSVertex::m_tracks
std::vector< xAOD::TrackParticle * > m_tracks
Definition: MSVertex.h:52
MSVertex::getChi2
float getChi2() const
Definition: MSVertex.cxx:86
MSVertex::m_chi2prob
float m_chi2prob
Definition: MSVertex.h:54
MSVertex::getNRPC
int getNRPC() const
Definition: MSVertex.cxx:100
MSVertex::getNMDT
int getNMDT() const
Definition: MSVertex.cxx:99
lumiFormat.i
int i
Definition: lumiFormat.py:92
MSVertex::getChi2Probability
float getChi2Probability() const
Definition: MSVertex.cxx:85
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition: comparitor.cxx:522
MSVertex::m_author
unsigned int m_author
Definition: MSVertex.h:48
MSVertex::getNTGC
int getNTGC() const
Definition: MSVertex.cxx:101
MSVertex::m_nRPC
int m_nRPC
Definition: MSVertex.h:56
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
MSVertex::MSVertex
MSVertex()
Definition: MSVertex.cxx:11
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
MSVertex::getTracks
const std::vector< xAOD::TrackParticle * > * getTracks() const
Definition: MSVertex.cxx:80
MSVertex::getAuthor
int getAuthor() const
Definition: MSVertex.cxx:84
MSVertex::getPosition
const Amg::Vector3D & getPosition() const
Definition: MSVertex.cxx:78