Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
MSVertex Class Reference

#include <MSVertex.h>

Collaboration diagram for MSVertex:

Public Member Functions

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

Private Attributes

unsigned int m_author {0}
 
Amg::Vector3D m_position {Amg::Vector3D::Zero()}
 
std::vector< const xAOD::TrackParticle * > m_tracks {}
 
double m_chi2prob {-1.f}
 
double m_chi2 {-1.f}
 
int m_nMDT {0}
 
int m_nMDT_inwards {0}
 
int m_nMDT_I {0}
 
int m_nMDT_E {0}
 
int m_nMDT_M {0}
 
int m_nMDT_O {0}
 
int m_nRPC {0}
 
int m_nRPC_inwards {0}
 
int m_nRPC_I {0}
 
int m_nRPC_E {0}
 
int m_nRPC_M {0}
 
int m_nRPC_O {0}
 
int m_nTGC {0}
 
int m_nTGC_inwards {0}
 
int m_nTGC_I {0}
 
int m_nTGC_E {0}
 
int m_nTGC_M {0}
 
int m_nTGC_O {0}
 

Detailed Description

Definition at line 13 of file MSVertex.h.

Constructor & Destructor Documentation

◆ MSVertex() [1/4]

MSVertex::MSVertex ( )
default

◆ MSVertex() [2/4]

MSVertex::MSVertex ( const MSVertex )
default

◆ MSVertex() [3/4]

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

Definition at line 10 of file MSVertex.cxx.

10  :
11  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< const xAOD::TrackParticle * > &  tracks,
double  chi2prob,
double  chi2,
int  nMDT,
int  nRPC,
int  nTGC 
)

Definition at line 13 of file MSVertex.cxx.

14  :
16  m_position(position),
17  m_tracks(tracks),
18  m_chi2prob(chi2prob),
19  m_chi2(chi2),
20  m_nMDT(nMDT),
21  m_nRPC(nRPC),
22  m_nTGC(nTGC) {}

◆ ~MSVertex()

MSVertex::~MSVertex ( )
virtualdefault

Member Function Documentation

◆ getAuthor()

int MSVertex::getAuthor ( ) const

Definition at line 34 of file MSVertex.cxx.

34 { return m_author; }

◆ getChi2()

double MSVertex::getChi2 ( ) const

Definition at line 36 of file MSVertex.cxx.

36 { return m_chi2; }

◆ getChi2Probability()

double MSVertex::getChi2Probability ( ) const

Definition at line 35 of file MSVertex.cxx.

35 { return m_chi2prob; }

◆ getNMDT()

int MSVertex::getNMDT ( ) const

Definition at line 73 of file MSVertex.cxx.

73 { return m_nMDT; }

◆ getNMDT_all()

const std::vector< int > MSVertex::getNMDT_all ( ) const

Definition at line 77 of file MSVertex.cxx.

77 { return std::vector<int> {m_nMDT, m_nMDT_inwards, m_nMDT_I, m_nMDT_E, m_nMDT_M, m_nMDT_O}; }

◆ getNRPC()

int MSVertex::getNRPC ( ) const

Definition at line 74 of file MSVertex.cxx.

74 { return m_nRPC; }

◆ getNRPC_all()

const std::vector< int > MSVertex::getNRPC_all ( ) const

Definition at line 78 of file MSVertex.cxx.

78 { return std::vector<int> {m_nRPC, m_nRPC_inwards, m_nRPC_I, m_nRPC_E, m_nRPC_M, m_nRPC_O}; }

◆ getNTGC()

int MSVertex::getNTGC ( ) const

Definition at line 75 of file MSVertex.cxx.

75 { return m_nTGC; }

◆ getNTGC_all()

const std::vector< int > MSVertex::getNTGC_all ( ) const

Definition at line 79 of file MSVertex.cxx.

79 { return std::vector<int> {m_nTGC, m_nTGC_inwards, m_nTGC_I, m_nTGC_E, m_nTGC_M, m_nTGC_O}; }

◆ getNTracks()

int MSVertex::getNTracks ( ) const

Definition at line 38 of file MSVertex.cxx.

38  {
39  if (getTracks())
40  return getTracks()->size();
41  else
42  return 0;
43 }

◆ getPosition()

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

Definition at line 28 of file MSVertex.cxx.

28 { return m_position; }

◆ getTracks()

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

Definition at line 30 of file MSVertex.cxx.

30 { return &m_tracks; }

◆ operator=()

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

◆ setAuthor()

void MSVertex::setAuthor ( const int  author)

Definition at line 32 of file MSVertex.cxx.

32 { m_author = author; }

◆ setNMDT()

void MSVertex::setNMDT ( const int  nMDT,
const int  nMDT_inwards,
const int  nMDT_I,
const int  nMDT_E,
const int  nMDT_M,
const int  nMDT_O 
)

Definition at line 45 of file MSVertex.cxx.

45  {
46  m_nMDT = nMDT; // total number of MDT hits around the vertex
47  m_nMDT_inwards = nMDT_inwards; // number of MDT hits around the vertex inwards of the vertex position
48  m_nMDT_I = nMDT_I; // number of MDT hits around the vertex in the inner layer
49  m_nMDT_E = nMDT_E; // number of MDT hits around the vertex in the extended layer
50  m_nMDT_M = nMDT_M; // number of MDT hits around the vertex in the middle layer
51  m_nMDT_O = nMDT_O; // number of MDT hits around the vertex in the outer layer
52 }

◆ setNRPC()

void MSVertex::setNRPC ( const int  nRPC,
const int  nRPC_inwards,
const int  nRPC_I,
const int  nRPC_E,
const int  nRPC_M,
const int  nRPC_O 
)

Definition at line 54 of file MSVertex.cxx.

54  {
55  m_nRPC = nRPC;
56  m_nRPC_inwards = nRPC_inwards;
57  m_nRPC_I = nRPC_I;
58  m_nRPC_E = nRPC_E;
59  m_nRPC_M = nRPC_M;
60  m_nRPC_O = nRPC_O;
61 }

◆ setNTGC()

void MSVertex::setNTGC ( const int  nTGC,
const int  nTGC_inwards,
const int  nTGC_I,
const int  nTGC_E,
const int  nTGC_M,
const int  nTGC_O 
)

Definition at line 63 of file MSVertex.cxx.

63  {
64  m_nTGC = nTGC;
65  m_nTGC_inwards = nTGC_inwards;
66  m_nTGC_I = nTGC_I;
67  m_nTGC_E = nTGC_E;
68  m_nTGC_M = nTGC_M;
69  m_nTGC_O = nTGC_O;
70 }

◆ setPosition()

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

Definition at line 26 of file MSVertex.cxx.

26 { m_position = position; }

Member Data Documentation

◆ m_author

unsigned int MSVertex::m_author {0}
private

Definition at line 51 of file MSVertex.h.

◆ m_chi2

double MSVertex::m_chi2 {-1.f}
private

Definition at line 58 of file MSVertex.h.

◆ m_chi2prob

double MSVertex::m_chi2prob {-1.f}
private

Definition at line 57 of file MSVertex.h.

◆ m_nMDT

int MSVertex::m_nMDT {0}
private

Definition at line 60 of file MSVertex.h.

◆ m_nMDT_E

int MSVertex::m_nMDT_E {0}
private

Definition at line 60 of file MSVertex.h.

◆ m_nMDT_I

int MSVertex::m_nMDT_I {0}
private

Definition at line 60 of file MSVertex.h.

◆ m_nMDT_inwards

int MSVertex::m_nMDT_inwards {0}
private

Definition at line 60 of file MSVertex.h.

◆ m_nMDT_M

int MSVertex::m_nMDT_M {0}
private

Definition at line 60 of file MSVertex.h.

◆ m_nMDT_O

int MSVertex::m_nMDT_O {0}
private

Definition at line 60 of file MSVertex.h.

◆ m_nRPC

int MSVertex::m_nRPC {0}
private

Definition at line 61 of file MSVertex.h.

◆ m_nRPC_E

int MSVertex::m_nRPC_E {0}
private

Definition at line 61 of file MSVertex.h.

◆ m_nRPC_I

int MSVertex::m_nRPC_I {0}
private

Definition at line 61 of file MSVertex.h.

◆ m_nRPC_inwards

int MSVertex::m_nRPC_inwards {0}
private

Definition at line 61 of file MSVertex.h.

◆ m_nRPC_M

int MSVertex::m_nRPC_M {0}
private

Definition at line 61 of file MSVertex.h.

◆ m_nRPC_O

int MSVertex::m_nRPC_O {0}
private

Definition at line 61 of file MSVertex.h.

◆ m_nTGC

int MSVertex::m_nTGC {0}
private

Definition at line 62 of file MSVertex.h.

◆ m_nTGC_E

int MSVertex::m_nTGC_E {0}
private

Definition at line 62 of file MSVertex.h.

◆ m_nTGC_I

int MSVertex::m_nTGC_I {0}
private

Definition at line 62 of file MSVertex.h.

◆ m_nTGC_inwards

int MSVertex::m_nTGC_inwards {0}
private

Definition at line 62 of file MSVertex.h.

◆ m_nTGC_M

int MSVertex::m_nTGC_M {0}
private

Definition at line 62 of file MSVertex.h.

◆ m_nTGC_O

int MSVertex::m_nTGC_O {0}
private

Definition at line 62 of file MSVertex.h.

◆ m_position

Amg::Vector3D MSVertex::m_position {Amg::Vector3D::Zero()}
private

Definition at line 53 of file MSVertex.h.

◆ m_tracks

std::vector<const xAOD::TrackParticle*> MSVertex::m_tracks {}
private

Definition at line 55 of file MSVertex.h.


The documentation for this class was generated from the following files:
MSVertex::m_nMDT
int m_nMDT
Definition: MSVertex.h:60
MSVertex::m_position
Amg::Vector3D m_position
Definition: MSVertex.h:53
MSVertex::m_nMDT_I
int m_nMDT_I
Definition: MSVertex.h:60
MSVertex::m_nRPC_E
int m_nRPC_E
Definition: MSVertex.h:61
MSVertex::m_chi2
double m_chi2
Definition: MSVertex.h:58
MSVertex::m_nTGC
int m_nTGC
Definition: MSVertex.h:62
MSVertex::m_nTGC_I
int m_nTGC_I
Definition: MSVertex.h:62
MSVertex::m_nRPC_M
int m_nRPC_M
Definition: MSVertex.h:61
MSVertex::m_nTGC_E
int m_nTGC_E
Definition: MSVertex.h:62
MSVertex::m_tracks
std::vector< const xAOD::TrackParticle * > m_tracks
Definition: MSVertex.h:55
MSVertex::m_nMDT_E
int m_nMDT_E
Definition: MSVertex.h:60
MSVertex::m_chi2prob
double m_chi2prob
Definition: MSVertex.h:57
MSVertex::getTracks
const std::vector< const xAOD::TrackParticle * > * getTracks() const
Definition: MSVertex.cxx:30
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition: comparitor.cxx:525
MSVertex::m_nRPC_I
int m_nRPC_I
Definition: MSVertex.h:61
MSVertex::m_author
unsigned int m_author
Definition: MSVertex.h:51
MSVertex::m_nTGC_inwards
int m_nTGC_inwards
Definition: MSVertex.h:62
MSVertex::m_nRPC
int m_nRPC
Definition: MSVertex.h:61
MSVertex::m_nTGC_M
int m_nTGC_M
Definition: MSVertex.h:62
MSVertex::m_nRPC_O
int m_nRPC_O
Definition: MSVertex.h:61
MSVertex::m_nMDT_inwards
int m_nMDT_inwards
Definition: MSVertex.h:60
MSVertex::m_nTGC_O
int m_nTGC_O
Definition: MSVertex.h:62
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
MSVertex::m_nRPC_inwards
int m_nRPC_inwards
Definition: MSVertex.h:61
MSVertex::m_nMDT_M
int m_nMDT_M
Definition: MSVertex.h:60
MSVertex::m_nMDT_O
int m_nMDT_O
Definition: MSVertex.h:60