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

#include <AlignPar.h>

Collaboration diagram for Trk::AlignPar:

Public Member Functions

 AlignPar (AlignModule *alignModule, AlignModule::TransformParameters paramType)
 constructor for alignment parameters of AlignModule More...
 
 AlignPar (const TrkDetElementBase *detElement, AlignModule::TransformParameters paramType)
 constructor for alignment parameters of TrkDetElementBase More...
 
virtual ~AlignPar ()
 
const AlignModulealignModule () const
 returns the AlignModule More...
 
AlignModulealignModule ()
 
const TrkDetElementBasedetElement () const
 returns the detElement More...
 
AlignModule::TransformParameters paramType () const
 returns the type of parameter (i.e. More...
 
std::string dumpType () const
 returns the string representing the type of parameter (i.e. More...
 
double initPar () const
 returns initial parameter and error More...
 
double initErr () const
 
double finalPar () const
 returns final parameter and error More...
 
double finalErr () const
 
double par () const
 returns final parameter and error More...
 
double err () const
 
double sigma () const
 returns sigma More...
 
double softCut () const
 returns soft-mode-cut More...
 
void setPar (double par, double err)
 sets final parameter and error More...
 
int index () const
 index of alignPar in AlignParList owned by AlignModuleList More...
 
void setInitPar (double par, double err)
 sets initial parameter and error More...
 
void setFinalPar (double par, double err)
 sets final parameter and error More...
 
void setSigma (double sigma)
 sets sigma More...
 
void setSoftCut (double softCut)
 sets soft-mode-cut More...
 
void setIndex (int index)
 used by AlignModuleList to set value of index in AlignParList More...
 
void setFirstDeriv (double val)
 
void setSecndDeriv (double val)
 
double firstDeriv () const
 
double secndDeriv () const
 

Private Attributes

AlignModulem_alignModule
 
const TrkDetElementBasem_detElement
 
AlignModule::TransformParameters m_paramType
 
double m_initPar
 
double m_initErr
 
double m_par
 
double m_err
 
double m_finalPar
 
double m_finalErr
 
double m_sigma
 
double m_softCut
 
double m_firstDeriv
 
double m_secndDeriv
 
int m_index
 

Detailed Description

Definition at line 25 of file AlignPar.h.

Constructor & Destructor Documentation

◆ AlignPar() [1/2]

AlignPar::AlignPar ( AlignModule alignModule,
AlignModule::TransformParameters  paramType 
)
inline

constructor for alignment parameters of AlignModule

Definition at line 126 of file AlignPar.h.

◆ AlignPar() [2/2]

AlignPar::AlignPar ( const TrkDetElementBase detElement,
AlignModule::TransformParameters  paramType 
)
inline

constructor for alignment parameters of TrkDetElementBase

Definition at line 128 of file AlignPar.h.

◆ ~AlignPar()

virtual Trk::AlignPar::~AlignPar ( )
inlinevirtual

Definition at line 37 of file AlignPar.h.

37 {}

Member Function Documentation

◆ alignModule() [1/2]

AlignModule* Trk::AlignPar::alignModule ( )
inline

Definition at line 41 of file AlignPar.h.

41 { return m_alignModule; }

◆ alignModule() [2/2]

const AlignModule* Trk::AlignPar::alignModule ( ) const
inline

returns the AlignModule

Definition at line 40 of file AlignPar.h.

40 { return m_alignModule; }

◆ detElement()

const TrkDetElementBase* Trk::AlignPar::detElement ( ) const
inline

returns the detElement

Definition at line 44 of file AlignPar.h.

44 { return m_detElement; }

◆ dumpType()

std::string AlignPar::dumpType ( ) const

returns the string representing the type of parameter (i.e.

TransX, RotX)

Definition at line 31 of file AlignPar.cxx.

32  {
33  switch(paramType()) {
34  case AlignModule::TransX : return "TransX";
35  case AlignModule::TransY : return "TransY";
36  case AlignModule::TransZ : return "TransZ";
37  case AlignModule::RotX : return "RotX";
38  case AlignModule::RotY : return "RotY";
39  case AlignModule::RotZ : return "RotZ";
40  case AlignModule::BowX : return "BowX";
41  case AlignModule::BowY : return "BowY";
42  case AlignModule::BowZ : return "BowZ";
43  default:
44  std::ostringstream stm;
45  stm << "ParType" << paramType();
46  return stm.str();
47  }
48  }

◆ err()

double Trk::AlignPar::err ( ) const
inline

Definition at line 62 of file AlignPar.h.

62 { return m_err; }

◆ finalErr()

double Trk::AlignPar::finalErr ( ) const
inline

Definition at line 58 of file AlignPar.h.

58 { return m_finalErr; }

◆ finalPar()

double Trk::AlignPar::finalPar ( ) const
inline

returns final parameter and error

Definition at line 57 of file AlignPar.h.

57 { return m_finalPar; }

◆ firstDeriv()

double Trk::AlignPar::firstDeriv ( ) const
inline

Definition at line 98 of file AlignPar.h.

98 { return m_firstDeriv; }

◆ index()

int Trk::AlignPar::index ( ) const
inline

index of alignPar in AlignParList owned by AlignModuleList

Definition at line 78 of file AlignPar.h.

78 { return m_index; }

◆ initErr()

double Trk::AlignPar::initErr ( ) const
inline

Definition at line 54 of file AlignPar.h.

54 { return m_initErr; }

◆ initPar()

double Trk::AlignPar::initPar ( ) const
inline

returns initial parameter and error

Definition at line 53 of file AlignPar.h.

53 { return m_initPar; }

◆ par()

double Trk::AlignPar::par ( ) const
inline

returns final parameter and error

Definition at line 61 of file AlignPar.h.

61 { return m_par; }

◆ paramType()

AlignModule::TransformParameters Trk::AlignPar::paramType ( ) const
inline

returns the type of parameter (i.e.

TransX, RotX)

Definition at line 47 of file AlignPar.h.

47 { return m_paramType; }

◆ secndDeriv()

double Trk::AlignPar::secndDeriv ( ) const
inline

Definition at line 99 of file AlignPar.h.

99 { return m_secndDeriv; }

◆ setFinalPar()

void Trk::AlignPar::setFinalPar ( double  par,
double  err 
)
inline

sets final parameter and error

Definition at line 84 of file AlignPar.h.

◆ setFirstDeriv()

void Trk::AlignPar::setFirstDeriv ( double  val)
inline

Definition at line 95 of file AlignPar.h.

95 { m_firstDeriv=val; }

◆ setIndex()

void Trk::AlignPar::setIndex ( int  index)
inline

used by AlignModuleList to set value of index in AlignParList

Definition at line 93 of file AlignPar.h.

93 { m_index=index; }

◆ setInitPar()

void Trk::AlignPar::setInitPar ( double  par,
double  err 
)
inline

sets initial parameter and error

Definition at line 81 of file AlignPar.h.

◆ setPar()

void Trk::AlignPar::setPar ( double  par,
double  err 
)
inline

sets final parameter and error

Definition at line 71 of file AlignPar.h.

71  {
72  m_par=par; m_err=err;
74  m_finalErr=std::sqrt(m_initErr*m_initErr + err*err);
75  }

◆ setSecndDeriv()

void Trk::AlignPar::setSecndDeriv ( double  val)
inline

Definition at line 96 of file AlignPar.h.

96 { m_secndDeriv=val; }

◆ setSigma()

void Trk::AlignPar::setSigma ( double  sigma)
inline

sets sigma

Definition at line 87 of file AlignPar.h.

87 { m_sigma=sigma; }

◆ setSoftCut()

void Trk::AlignPar::setSoftCut ( double  softCut)
inline

sets soft-mode-cut

Definition at line 90 of file AlignPar.h.

90 { m_softCut = softCut; }

◆ sigma()

double Trk::AlignPar::sigma ( ) const
inline

returns sigma

Definition at line 65 of file AlignPar.h.

65 { return m_sigma; }

◆ softCut()

double Trk::AlignPar::softCut ( ) const
inline

returns soft-mode-cut

Definition at line 68 of file AlignPar.h.

68 { return m_softCut; }

Member Data Documentation

◆ m_alignModule

AlignModule* Trk::AlignPar::m_alignModule
private

Definition at line 103 of file AlignPar.h.

◆ m_detElement

const TrkDetElementBase* Trk::AlignPar::m_detElement
private

Definition at line 104 of file AlignPar.h.

◆ m_err

double Trk::AlignPar::m_err
private

Definition at line 111 of file AlignPar.h.

◆ m_finalErr

double Trk::AlignPar::m_finalErr
private

Definition at line 113 of file AlignPar.h.

◆ m_finalPar

double Trk::AlignPar::m_finalPar
private

Definition at line 112 of file AlignPar.h.

◆ m_firstDeriv

double Trk::AlignPar::m_firstDeriv
private

Definition at line 117 of file AlignPar.h.

◆ m_index

int Trk::AlignPar::m_index
private

Definition at line 120 of file AlignPar.h.

◆ m_initErr

double Trk::AlignPar::m_initErr
private

Definition at line 109 of file AlignPar.h.

◆ m_initPar

double Trk::AlignPar::m_initPar
private

Definition at line 108 of file AlignPar.h.

◆ m_par

double Trk::AlignPar::m_par
private

Definition at line 110 of file AlignPar.h.

◆ m_paramType

AlignModule::TransformParameters Trk::AlignPar::m_paramType
private

Definition at line 106 of file AlignPar.h.

◆ m_secndDeriv

double Trk::AlignPar::m_secndDeriv
private

Definition at line 118 of file AlignPar.h.

◆ m_sigma

double Trk::AlignPar::m_sigma
private

Definition at line 114 of file AlignPar.h.

◆ m_softCut

double Trk::AlignPar::m_softCut
private

Definition at line 115 of file AlignPar.h.


The documentation for this class was generated from the following files:
Trk::AlignModule::BowY
@ BowY
Definition: AlignModule.h:54
Trk::AlignPar::m_alignModule
AlignModule * m_alignModule
Definition: AlignPar.h:103
Trk::AlignPar::detElement
const TrkDetElementBase * detElement() const
returns the detElement
Definition: AlignPar.h:44
Trk::AlignPar::m_firstDeriv
double m_firstDeriv
Definition: AlignPar.h:117
Trk::AlignPar::m_secndDeriv
double m_secndDeriv
Definition: AlignPar.h:118
Trk::AlignPar::err
double err() const
Definition: AlignPar.h:62
Trk::AlignModule::TransZ
@ TransZ
Definition: AlignModule.h:54
Trk::AlignPar::sigma
double sigma() const
returns sigma
Definition: AlignPar.h:65
Trk::AlignPar::m_finalPar
double m_finalPar
Definition: AlignPar.h:112
Trk::AlignPar::m_par
double m_par
Definition: AlignPar.h:110
Trk::AlignPar::index
int index() const
index of alignPar in AlignParList owned by AlignModuleList
Definition: AlignPar.h:78
Trk::AlignPar::m_finalErr
double m_finalErr
Definition: AlignPar.h:113
Trk::AlignPar::m_sigma
double m_sigma
Definition: AlignPar.h:114
Trk::AlignPar::paramType
AlignModule::TransformParameters paramType() const
returns the type of parameter (i.e.
Definition: AlignPar.h:47
Trk::AlignPar::m_initPar
double m_initPar
Definition: AlignPar.h:108
Trk::AlignPar::par
double par() const
returns final parameter and error
Definition: AlignPar.h:61
Trk::AlignModule::BowX
@ BowX
Definition: AlignModule.h:54
Trk::AlignPar::alignModule
const AlignModule * alignModule() const
returns the AlignModule
Definition: AlignPar.h:40
Trk::AlignPar::m_softCut
double m_softCut
Definition: AlignPar.h:115
Trk::AlignModule::RotX
@ RotX
Definition: AlignModule.h:54
Trk::AlignPar::m_err
double m_err
Definition: AlignPar.h:111
Trk::AlignModule::TransX
@ TransX
Definition: AlignModule.h:54
Trk::AlignModule::RotY
@ RotY
Definition: AlignModule.h:54
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
Trk::AlignPar::m_paramType
AlignModule::TransformParameters m_paramType
Definition: AlignPar.h:106
Trk::AlignPar::softCut
double softCut() const
returns soft-mode-cut
Definition: AlignPar.h:68
Trk::AlignPar::m_initErr
double m_initErr
Definition: AlignPar.h:109
Trk::AlignModule::RotZ
@ RotZ
Definition: AlignModule.h:54
Trk::AlignModule::BowZ
@ BowZ
Definition: AlignModule.h:54
Trk::AlignModule::TransY
@ TransY
Definition: AlignModule.h:54
Trk::AlignPar::m_detElement
const TrkDetElementBase * m_detElement
Definition: AlignPar.h:104
Trk::AlignPar::m_index
int m_index
Definition: AlignPar.h:120