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

#include <AlignTrk.h>

Collaboration diagram for AlignTrk:

Public Member Functions

 AlignTrk ()
 
int nhits () const
 
int noverlapPIX () const
 
int noverlapSCT () const
 
int nscat () const
 
int irun () const
 
int ievent () const
 
int itrack () const
 
int nholes () const
 
int nshared () const
 
float trkpar (int) const
 
float trkcov (int) const
 
int ikine () const
 
float truetrkpar (int) const
 
int ivtx () const
 
float trpvtx (int) const
 
float beampos (int) const
 
float beamsigma (int) const
 
float beamtilt (int) const
 
float trtpt () const
 
float trtpterr () const
 
int ntrthits () const
 
void set_noverlapPIX (const int)
 
void set_noverlapSCT (const int)
 
void set_nscat (const int)
 
void set_irun (const int)
 
void set_ievent (const int)
 
void set_itrack (const int)
 
void set_nholes (const int)
 
void set_nshared (const int)
 
void set_trkpar (const float, const int)
 
void set_trkcov (const float, const int)
 
void set_ikine (const int)
 
void set_truetrkpar (const float, const int)
 
void set_ivtx (const int)
 
void set_trpvtx (const float, const int)
 
void set_beampos (const float, const int)
 
void set_beamsigma (const float, const int)
 
void set_beamtilt (const float, const int)
 
void set_trtcons (const float, const float)
 
std::vector< AlignSiHit >::iterator hitlist_begin ()
 
std::vector< AlignSiHit >::iterator hitlist_end ()
 
std::vector< AlignSiHit >::const_iterator hitlist_cbegin () const
 
std::vector< AlignSiHit >::const_iterator hitlist_cend () const
 
void add_hit (AlignSiHit &)
 
void print () const
 
void add_trthit (AlignTRTHit &)
 
std::vector< AlignTRTHit >::iterator trthitlist_begin ()
 
std::vector< AlignTRTHit >::iterator trthitlist_end ()
 
std::vector< AlignTRTHit >::const_iterator trthitlist_cbegin () const
 
std::vector< AlignTRTHit >::const_iterator trthitlist_cend () const
 

Private Attributes

int m_nscat
 
int m_irun
 
int m_ievent
 
int m_itrack
 
int m_nholes
 
int m_nshared
 
int m_noverlapPIX
 
int m_noverlapSCT
 
float m_trkpar [5] {}
 
float m_trkcov [15] {}
 
int m_ikine
 
float m_truetrkpar [5] {}
 
int m_ivtx
 
float m_trpvtx [3] {}
 
float m_beampos [3] {}
 
float m_beamsigma [3] {}
 
float m_beamtilt [2] {}
 
float m_trtpt = 0.0F
 
float m_trtpterr = 0.0F
 
std::vector< AlignSiHitm_hits
 
std::vector< AlignTRTHitm_trthits
 
std::vector< AlignSiHitm_overlaphits
 

Detailed Description

Definition at line 16 of file AlignTrk.h.

Constructor & Destructor Documentation

◆ AlignTrk()

AlignTrk::AlignTrk ( )

Definition at line 11 of file AlignTrk.cxx.

11  :
13  m_ikine(0), m_ivtx(0)
14 
15 {
16  for (int i=0;i<5;++i) {
17  m_trkpar[i]=0.;
18  m_truetrkpar[i]=-999.;
19  }
20  for (int i=0;i<15;++i) m_trkcov[i]=0.;
21  for (int i=0;i<3;++i) {
22  m_trpvtx[i]=0.;
23  m_beampos[i]=0.;
24  m_beamsigma[i]=0.;
25  if (i<2) m_beamtilt[i]=0.;
26  }
27  m_hits.clear();
28  m_trthits.clear();
29  //**
30  m_overlaphits.clear(); // All elements in m_overlaphits vector are cleared.
31 }

Member Function Documentation

◆ add_hit()

void AlignTrk::add_hit ( AlignSiHit hit)
inline

Definition at line 191 of file AlignTrk.h.

191 { m_hits.push_back(hit); }

◆ add_trthit()

void AlignTrk::add_trthit ( AlignTRTHit hit)
inline

Definition at line 192 of file AlignTrk.h.

192 {m_trthits.push_back(hit);}

◆ beampos()

float AlignTrk::beampos ( int  i) const
inline

Definition at line 127 of file AlignTrk.h.

127 { return m_beampos[i-1]; }

◆ beamsigma()

float AlignTrk::beamsigma ( int  i) const
inline

Definition at line 128 of file AlignTrk.h.

128 { return m_beamsigma[i-1]; }

◆ beamtilt()

float AlignTrk::beamtilt ( int  i) const
inline

Definition at line 129 of file AlignTrk.h.

129 { return m_beamtilt[i-1]; }

◆ hitlist_begin()

std::vector< AlignSiHit >::iterator AlignTrk::hitlist_begin ( )
inline

Definition at line 161 of file AlignTrk.h.

162 { return m_hits.begin(); }

◆ hitlist_cbegin()

std::vector< AlignSiHit >::const_iterator AlignTrk::hitlist_cbegin ( ) const
inline

Definition at line 165 of file AlignTrk.h.

166  { return m_hits.begin(); }

◆ hitlist_cend()

std::vector< AlignSiHit >::const_iterator AlignTrk::hitlist_cend ( ) const
inline

Definition at line 167 of file AlignTrk.h.

168  { return m_hits.end(); }

◆ hitlist_end()

std::vector< AlignSiHit >::iterator AlignTrk::hitlist_end ( )
inline

Definition at line 163 of file AlignTrk.h.

164 { return m_hits.end(); }

◆ ievent()

int AlignTrk::ievent ( ) const
inline

Definition at line 117 of file AlignTrk.h.

117 { return m_ievent; }

◆ ikine()

int AlignTrk::ikine ( ) const
inline

Definition at line 123 of file AlignTrk.h.

123 { return m_ikine; }

◆ irun()

int AlignTrk::irun ( ) const
inline

Definition at line 116 of file AlignTrk.h.

116 { return m_irun; }

◆ itrack()

int AlignTrk::itrack ( ) const
inline

Definition at line 118 of file AlignTrk.h.

118 { return m_itrack; }

◆ ivtx()

int AlignTrk::ivtx ( ) const
inline

Definition at line 125 of file AlignTrk.h.

125 { return m_ivtx; }

◆ nhits()

int AlignTrk::nhits ( ) const
inline

Definition at line 110 of file AlignTrk.h.

110 { return m_hits.size(); }

◆ nholes()

int AlignTrk::nholes ( ) const
inline

Definition at line 119 of file AlignTrk.h.

119 { return m_nholes; }

◆ noverlapPIX()

int AlignTrk::noverlapPIX ( ) const
inline

Definition at line 112 of file AlignTrk.h.

112 { return m_noverlapPIX; }

◆ noverlapSCT()

int AlignTrk::noverlapSCT ( ) const
inline

Definition at line 113 of file AlignTrk.h.

113 { return m_noverlapSCT; }

◆ nscat()

int AlignTrk::nscat ( ) const
inline

Definition at line 115 of file AlignTrk.h.

115 { return m_nscat; }

◆ nshared()

int AlignTrk::nshared ( ) const
inline

Definition at line 120 of file AlignTrk.h.

120 { return m_nshared; }

◆ ntrthits()

int AlignTrk::ntrthits ( ) const
inline

Definition at line 132 of file AlignTrk.h.

132 { return m_trthits.size(); }

◆ print()

void AlignTrk::print ( ) const

Definition at line 33 of file AlignTrk.cxx.

33  {
34  std::cout << "Printing AlignTrk parameters " << "nhits" << m_hits.size() <<
35  " a0 " << m_trkpar[0] << " z0 " << m_trkpar[1] << " phi0 " << m_trkpar[2] <<
36  " cottheta " << m_trkpar[3] << " Q/pt " << m_trkpar[4] << std::endl;
37 }

◆ set_beampos()

void AlignTrk::set_beampos ( const float  f,
const int  i 
)
inline

Definition at line 151 of file AlignTrk.h.

152  { m_beampos[i-1]=f;}

◆ set_beamsigma()

void AlignTrk::set_beamsigma ( const float  f,
const int  i 
)
inline

Definition at line 153 of file AlignTrk.h.

154  { m_beamsigma[i-1]=f;}

◆ set_beamtilt()

void AlignTrk::set_beamtilt ( const float  f,
const int  i 
)
inline

Definition at line 155 of file AlignTrk.h.

156  { m_beamtilt[i-1]=f;}

◆ set_ievent()

void AlignTrk::set_ievent ( const int  i)
inline

Definition at line 140 of file AlignTrk.h.

140 { m_ievent=i; }

◆ set_ikine()

void AlignTrk::set_ikine ( const int  i)
inline

Definition at line 146 of file AlignTrk.h.

146 { m_ikine=i; }

◆ set_irun()

void AlignTrk::set_irun ( const int  i)
inline

Definition at line 139 of file AlignTrk.h.

139 { m_irun=i; }

◆ set_itrack()

void AlignTrk::set_itrack ( const int  i)
inline

Definition at line 141 of file AlignTrk.h.

141 { m_itrack=i; }

◆ set_ivtx()

void AlignTrk::set_ivtx ( const int  i)
inline

Definition at line 149 of file AlignTrk.h.

149 { m_ivtx=i; }

◆ set_nholes()

void AlignTrk::set_nholes ( const int  i)
inline

Definition at line 142 of file AlignTrk.h.

142 { m_nholes=i; }

◆ set_noverlapPIX()

void AlignTrk::set_noverlapPIX ( const int  i)
inline

Definition at line 135 of file AlignTrk.h.

135 { m_noverlapPIX=i; }

◆ set_noverlapSCT()

void AlignTrk::set_noverlapSCT ( const int  i)
inline

Definition at line 136 of file AlignTrk.h.

136 { m_noverlapSCT=i; }

◆ set_nscat()

void AlignTrk::set_nscat ( const int  i)
inline

Definition at line 138 of file AlignTrk.h.

138 { m_nscat=i; }

◆ set_nshared()

void AlignTrk::set_nshared ( const int  i)
inline

Definition at line 143 of file AlignTrk.h.

143 { m_nshared=i; }

◆ set_trkcov()

void AlignTrk::set_trkcov ( const float  f,
const int  i 
)
inline

Definition at line 145 of file AlignTrk.h.

145 { m_trkcov[i-1]=f;}

◆ set_trkpar()

void AlignTrk::set_trkpar ( const float  f,
const int  i 
)
inline

Definition at line 144 of file AlignTrk.h.

144 { m_trkpar[i-1]=f;}

◆ set_trpvtx()

void AlignTrk::set_trpvtx ( const float  f,
const int  i 
)
inline

Definition at line 150 of file AlignTrk.h.

150 { m_trpvtx[i-1]=f;}

◆ set_trtcons()

void AlignTrk::set_trtcons ( const float  pt,
const float  pterr 
)
inline

Definition at line 157 of file AlignTrk.h.

158 { m_trtpt=pt; m_trtpterr=pterr; }

◆ set_truetrkpar()

void AlignTrk::set_truetrkpar ( const float  f,
const int  i 
)
inline

Definition at line 147 of file AlignTrk.h.

148  { m_truetrkpar[i-1]=f; }

◆ trkcov()

float AlignTrk::trkcov ( int  i) const
inline

Definition at line 122 of file AlignTrk.h.

122 { return m_trkcov[i-1]; }

◆ trkpar()

float AlignTrk::trkpar ( int  i) const
inline

Definition at line 121 of file AlignTrk.h.

121 { return m_trkpar[i-1]; }

◆ trpvtx()

float AlignTrk::trpvtx ( int  i) const
inline

Definition at line 126 of file AlignTrk.h.

126 { return m_trpvtx[i-1]; }

◆ trthitlist_begin()

std::vector< AlignTRTHit >::iterator AlignTrk::trthitlist_begin ( )
inline

Definition at line 170 of file AlignTrk.h.

171 { return m_trthits.begin(); }

◆ trthitlist_cbegin()

std::vector< AlignTRTHit >::const_iterator AlignTrk::trthitlist_cbegin ( ) const
inline

Definition at line 174 of file AlignTrk.h.

175  { return m_trthits.begin(); }

◆ trthitlist_cend()

std::vector< AlignTRTHit >::const_iterator AlignTrk::trthitlist_cend ( ) const
inline

Definition at line 176 of file AlignTrk.h.

177  { return m_trthits.end(); }

◆ trthitlist_end()

std::vector< AlignTRTHit >::iterator AlignTrk::trthitlist_end ( )
inline

Definition at line 172 of file AlignTrk.h.

173 { return m_trthits.end(); }

◆ trtpt()

float AlignTrk::trtpt ( ) const
inline

Definition at line 130 of file AlignTrk.h.

130 { return m_trtpt; }

◆ trtpterr()

float AlignTrk::trtpterr ( ) const
inline

Definition at line 131 of file AlignTrk.h.

131 { return m_trtpterr; }

◆ truetrkpar()

float AlignTrk::truetrkpar ( int  i) const
inline

Definition at line 124 of file AlignTrk.h.

124 { return m_truetrkpar[i-1]; }

Member Data Documentation

◆ m_beampos

float AlignTrk::m_beampos[3] {}
private

Definition at line 100 of file AlignTrk.h.

◆ m_beamsigma

float AlignTrk::m_beamsigma[3] {}
private

Definition at line 101 of file AlignTrk.h.

◆ m_beamtilt

float AlignTrk::m_beamtilt[2] {}
private

Definition at line 102 of file AlignTrk.h.

◆ m_hits

std::vector<AlignSiHit> AlignTrk::m_hits
private

Definition at line 105 of file AlignTrk.h.

◆ m_ievent

int AlignTrk::m_ievent
private

Definition at line 88 of file AlignTrk.h.

◆ m_ikine

int AlignTrk::m_ikine
private

Definition at line 96 of file AlignTrk.h.

◆ m_irun

int AlignTrk::m_irun
private

Definition at line 87 of file AlignTrk.h.

◆ m_itrack

int AlignTrk::m_itrack
private

Definition at line 89 of file AlignTrk.h.

◆ m_ivtx

int AlignTrk::m_ivtx
private

Definition at line 98 of file AlignTrk.h.

◆ m_nholes

int AlignTrk::m_nholes
private

Definition at line 90 of file AlignTrk.h.

◆ m_noverlapPIX

int AlignTrk::m_noverlapPIX
private

Definition at line 92 of file AlignTrk.h.

◆ m_noverlapSCT

int AlignTrk::m_noverlapSCT
private

Definition at line 93 of file AlignTrk.h.

◆ m_nscat

int AlignTrk::m_nscat
private

Definition at line 86 of file AlignTrk.h.

◆ m_nshared

int AlignTrk::m_nshared
private

Definition at line 91 of file AlignTrk.h.

◆ m_overlaphits

std::vector<AlignSiHit> AlignTrk::m_overlaphits
private

Definition at line 107 of file AlignTrk.h.

◆ m_trkcov

float AlignTrk::m_trkcov[15] {}
private

Definition at line 95 of file AlignTrk.h.

◆ m_trkpar

float AlignTrk::m_trkpar[5] {}
private

Definition at line 94 of file AlignTrk.h.

◆ m_trpvtx

float AlignTrk::m_trpvtx[3] {}
private

Definition at line 99 of file AlignTrk.h.

◆ m_trthits

std::vector<AlignTRTHit> AlignTrk::m_trthits
private

Definition at line 106 of file AlignTrk.h.

◆ m_trtpt

float AlignTrk::m_trtpt = 0.0F
private

Definition at line 103 of file AlignTrk.h.

◆ m_trtpterr

float AlignTrk::m_trtpterr = 0.0F
private

Definition at line 104 of file AlignTrk.h.

◆ m_truetrkpar

float AlignTrk::m_truetrkpar[5] {}
private

Definition at line 97 of file AlignTrk.h.


The documentation for this class was generated from the following files:
AlignTrk::m_itrack
int m_itrack
Definition: AlignTrk.h:89
AlignTrk::m_trtpterr
float m_trtpterr
Definition: AlignTrk.h:104
AlignTrk::m_nscat
int m_nscat
Definition: AlignTrk.h:86
AlignTrk::m_beamsigma
float m_beamsigma[3]
Definition: AlignTrk.h:101
AlignTrk::m_beamtilt
float m_beamtilt[2]
Definition: AlignTrk.h:102
test_pyathena.pt
pt
Definition: test_pyathena.py:11
AlignTrk::m_trkpar
float m_trkpar[5]
Definition: AlignTrk.h:94
AlignTrk::m_irun
int m_irun
Definition: AlignTrk.h:87
AlignTrk::m_nholes
int m_nholes
Definition: AlignTrk.h:90
AlignTrk::m_ikine
int m_ikine
Definition: AlignTrk.h:96
AlignTrk::m_hits
std::vector< AlignSiHit > m_hits
Definition: AlignTrk.h:105
lumiFormat.i
int i
Definition: lumiFormat.py:85
AlignTrk::m_overlaphits
std::vector< AlignSiHit > m_overlaphits
Definition: AlignTrk.h:107
AlignTrk::m_trpvtx
float m_trpvtx[3]
Definition: AlignTrk.h:99
AlignTrk::m_truetrkpar
float m_truetrkpar[5]
Definition: AlignTrk.h:97
hist_file_dump.f
f
Definition: hist_file_dump.py:135
AlignTrk::m_ivtx
int m_ivtx
Definition: AlignTrk.h:98
AlignTrk::m_trkcov
float m_trkcov[15]
Definition: AlignTrk.h:95
AlignTrk::m_ievent
int m_ievent
Definition: AlignTrk.h:88
AlignTrk::m_trthits
std::vector< AlignTRTHit > m_trthits
Definition: AlignTrk.h:106
AlignTrk::m_nshared
int m_nshared
Definition: AlignTrk.h:91
AlignTrk::m_noverlapSCT
int m_noverlapSCT
Definition: AlignTrk.h:93
AlignTrk::m_noverlapPIX
int m_noverlapPIX
Definition: AlignTrk.h:92
AlignTrk::m_beampos
float m_beampos[3]
Definition: AlignTrk.h:100
AlignTrk::m_trtpt
float m_trtpt
Definition: AlignTrk.h:103