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

#include <Segment.h>

Collaboration diagram for TrkDriftCircleMath::Segment:

Public Member Functions

 Segment (const Line &l, const DCOnTrackVec &dcs, double chi2, unsigned int ndof, double dtheta, double dy0)
 
 Segment (const Line &l, const DCOnTrackVec &dcs)
 
 ~Segment ()=default
 
const Lineline () const
 
const DCOnTrackVecdcs () const
 
const CLVecclusters () const
 
const DCVecemptyTubes () const
 
Lineline ()
 non-const access to reduce memory usage when re-using segments More...
 
DCOnTrackVecdcs ()
 
CLVecclusters ()
 
DCVecemptyTubes ()
 
void set (double chi2, unsigned int ndof, double dtheta, double dy0)
 set methods to replace calling constructors More...
 
void setAndReset (double chi2, unsigned int ndof, double dtheta, double dy0)
 
double chi2 () const
 
unsigned int ndof () const
 
double dtheta () const
 
double dy0 () const
 
void dcs (const DCOnTrackVec &dcs)
 
void clusters (const CLVec &cls)
 
void emptyTubes (const DCVec &emptyTubes)
 
void deltas (unsigned int dts)
 
void hitsOutOfTime (unsigned int hitsOutOfTime)
 
void hitsOnTrack (unsigned int hitsOnTrack)
 
void closeHits (unsigned int closeHits)
 
void showerHits (unsigned int showerHits)
 
void crossedTubes (unsigned int crossedTubesMl1, unsigned int crossedTubesMl2)
 
void hitsPerMl (unsigned int hml1, unsigned int hml2)
 
void ambigue (unsigned int amb)
 
void clusterLayers (unsigned int ncl)
 
void setT0Shift (double t0Shift, double error)
 
bool hasT0Shift () const
 
void setCurvatureParameters (double deltaAlpha, double deltab)
 
bool hasCurvatureParameters () const
 
double t0Shift () const
 
double t0Error () const
 
double deltaAlpha () const
 
double deltab () const
 
unsigned int deltas () const
 
unsigned int hitsOutOfTime () const
 
unsigned int hitsOnTrack () const
 
unsigned int closeHits () const
 
unsigned int showerHits () const
 
unsigned int crossedTubes () const
 
unsigned int crossedTubesMl1 () const
 
unsigned int crossedTubesMl2 () const
 
unsigned int hitsMl1 () const
 
unsigned int hitsMl2 () const
 
unsigned int ambigue () const
 
unsigned int clusterLayers () const
 

Private Attributes

Line m_line
 
DCOnTrackVec m_dcs
 
CLVec m_clusters
 
DCVec m_emptyTubes
 
double m_chi2 {1.e9}
 
unsigned int m_ndof {0}
 
double m_dtheta {1.e9}
 
double m_dy0 {1.e9}
 
double m_t0Shift {-99999.}
 
double m_t0Error {-99999.}
 
double m_deltaAlpha {-99999.}
 
double m_deltab {-99999.}
 
unsigned int m_deltas {0}
 
unsigned int m_hitsOutOfTime {0}
 
unsigned int m_hitsOnTrack {0}
 
unsigned int m_closeHits {0}
 
unsigned int m_showerHits {0}
 
unsigned int m_crossedTubesMl1 {0}
 
unsigned int m_crossedTubesMl2 {0}
 
unsigned int m_hitsMl1 {0}
 
unsigned int m_hitsMl2 {0}
 
unsigned int m_ambigue {0}
 
unsigned int m_clusterLayers {0}
 

Detailed Description

Definition at line 18 of file TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h.

Constructor & Destructor Documentation

◆ Segment() [1/2]

TrkDriftCircleMath::Segment::Segment ( const Line l,
const DCOnTrackVec dcs,
double  chi2,
unsigned int  ndof,
double  dtheta,
double  dy0 
)
inline

◆ Segment() [2/2]

TrkDriftCircleMath::Segment::Segment ( const Line l,
const DCOnTrackVec dcs 
)
inline

◆ ~Segment()

TrkDriftCircleMath::Segment::~Segment ( )
default

Member Function Documentation

◆ ambigue() [1/2]

unsigned int TrkDriftCircleMath::Segment::ambigue ( ) const
inline

◆ ambigue() [2/2]

void TrkDriftCircleMath::Segment::ambigue ( unsigned int  amb)
inline

◆ chi2()

double TrkDriftCircleMath::Segment::chi2 ( ) const
inline

◆ closeHits() [1/2]

unsigned int TrkDriftCircleMath::Segment::closeHits ( ) const
inline

◆ closeHits() [2/2]

void TrkDriftCircleMath::Segment::closeHits ( unsigned int  closeHits)
inline

◆ clusterLayers() [1/2]

unsigned int TrkDriftCircleMath::Segment::clusterLayers ( ) const
inline

◆ clusterLayers() [2/2]

void TrkDriftCircleMath::Segment::clusterLayers ( unsigned int  ncl)
inline

◆ clusters() [1/3]

CLVec& TrkDriftCircleMath::Segment::clusters ( )
inline

◆ clusters() [2/3]

const CLVec& TrkDriftCircleMath::Segment::clusters ( ) const
inline

◆ clusters() [3/3]

void TrkDriftCircleMath::Segment::clusters ( const CLVec cls)
inline

◆ crossedTubes() [1/2]

unsigned int TrkDriftCircleMath::Segment::crossedTubes ( ) const
inline

◆ crossedTubes() [2/2]

void TrkDriftCircleMath::Segment::crossedTubes ( unsigned int  crossedTubesMl1,
unsigned int  crossedTubesMl2 
)
inline

◆ crossedTubesMl1()

unsigned int TrkDriftCircleMath::Segment::crossedTubesMl1 ( ) const
inline

◆ crossedTubesMl2()

unsigned int TrkDriftCircleMath::Segment::crossedTubesMl2 ( ) const
inline

◆ dcs() [1/3]

DCOnTrackVec& TrkDriftCircleMath::Segment::dcs ( )
inline

◆ dcs() [2/3]

const DCOnTrackVec& TrkDriftCircleMath::Segment::dcs ( ) const
inline

◆ dcs() [3/3]

void TrkDriftCircleMath::Segment::dcs ( const DCOnTrackVec dcs)
inline

◆ deltaAlpha()

double TrkDriftCircleMath::Segment::deltaAlpha ( ) const
inline

◆ deltab()

double TrkDriftCircleMath::Segment::deltab ( ) const
inline

◆ deltas() [1/2]

unsigned int TrkDriftCircleMath::Segment::deltas ( ) const
inline

◆ deltas() [2/2]

void TrkDriftCircleMath::Segment::deltas ( unsigned int  dts)
inline

◆ dtheta()

double TrkDriftCircleMath::Segment::dtheta ( ) const
inline

◆ dy0()

double TrkDriftCircleMath::Segment::dy0 ( ) const
inline

◆ emptyTubes() [1/3]

DCVec& TrkDriftCircleMath::Segment::emptyTubes ( )
inline

◆ emptyTubes() [2/3]

const DCVec& TrkDriftCircleMath::Segment::emptyTubes ( ) const
inline

◆ emptyTubes() [3/3]

void TrkDriftCircleMath::Segment::emptyTubes ( const DCVec emptyTubes)
inline

◆ hasCurvatureParameters()

bool TrkDriftCircleMath::Segment::hasCurvatureParameters ( ) const
inline

Definition at line 76 of file TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h.

76 { return m_deltaAlpha != -99999.; }

◆ hasT0Shift()

bool TrkDriftCircleMath::Segment::hasT0Shift ( ) const
inline

Definition at line 70 of file TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h.

70 { return m_t0Shift != -99999.; }

◆ hitsMl1()

unsigned int TrkDriftCircleMath::Segment::hitsMl1 ( ) const
inline

◆ hitsMl2()

unsigned int TrkDriftCircleMath::Segment::hitsMl2 ( ) const
inline

◆ hitsOnTrack() [1/2]

unsigned int TrkDriftCircleMath::Segment::hitsOnTrack ( ) const
inline

◆ hitsOnTrack() [2/2]

void TrkDriftCircleMath::Segment::hitsOnTrack ( unsigned int  hitsOnTrack)
inline

◆ hitsOutOfTime() [1/2]

unsigned int TrkDriftCircleMath::Segment::hitsOutOfTime ( ) const
inline

◆ hitsOutOfTime() [2/2]

void TrkDriftCircleMath::Segment::hitsOutOfTime ( unsigned int  hitsOutOfTime)
inline

◆ hitsPerMl()

void TrkDriftCircleMath::Segment::hitsPerMl ( unsigned int  hml1,
unsigned int  hml2 
)
inline

Definition at line 59 of file TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h.

59  {
60  m_hitsMl1 = hml1;
61  m_hitsMl2 = hml2;
62  }

◆ line() [1/2]

Line& TrkDriftCircleMath::Segment::line ( )
inline

non-const access to reduce memory usage when re-using segments

Definition at line 33 of file TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h.

33 { return m_line; }

◆ line() [2/2]

const Line& TrkDriftCircleMath::Segment::line ( ) const
inline

◆ ndof()

unsigned int TrkDriftCircleMath::Segment::ndof ( ) const
inline

◆ set()

void TrkDriftCircleMath::Segment::set ( double  chi2,
unsigned int  ndof,
double  dtheta,
double  dy0 
)

set methods to replace calling constructors

Definition at line 41 of file TrkUtilityPackages/TrkDriftCircleMath/src/Segment.cxx.

41  {
42  m_chi2 = chi2;
43  m_ndof = ndof;
44  m_dtheta = dtheta;
45  m_dy0 = dy0;
46  m_t0Shift = -99999.;
47  m_deltaAlpha = -99999.;
48  m_deltab = -99999.;
49  m_deltas = 0;
50  m_hitsOutOfTime = 0;
51  m_hitsOnTrack = 0;
52  m_closeHits = 0;
53  m_showerHits = 0;
56  m_hitsMl1 = 0;
57  m_hitsMl2 = 0;
58  m_ambigue = 0;
59  m_clusterLayers = 0;
60  }

◆ setAndReset()

void TrkDriftCircleMath::Segment::setAndReset ( double  chi2,
unsigned int  ndof,
double  dtheta,
double  dy0 
)

Definition at line 62 of file TrkUtilityPackages/TrkDriftCircleMath/src/Segment.cxx.

62  {
63  m_chi2 = chi2;
64  m_ndof = ndof;
65  m_dtheta = dtheta;
66  m_dy0 = dy0;
67  m_t0Shift = -99999.;
68  m_deltaAlpha = -99999.;
69  m_deltab = -99999.;
70  m_deltas = 0;
71  m_hitsOutOfTime = 0;
72  m_hitsOnTrack = 0;
73  m_closeHits = 0;
74  m_showerHits = 0;
77  m_hitsMl1 = 0;
78  m_hitsMl2 = 0;
79  m_ambigue = 0;
80  m_clusterLayers = 0;
81  m_dcs.clear();
82  m_clusters.clear();
83  m_emptyTubes.clear();
84  }

◆ setCurvatureParameters()

void TrkDriftCircleMath::Segment::setCurvatureParameters ( double  deltaAlpha,
double  deltab 
)
inline

◆ setT0Shift()

void TrkDriftCircleMath::Segment::setT0Shift ( double  t0Shift,
double  error 
)
inline

◆ showerHits() [1/2]

unsigned int TrkDriftCircleMath::Segment::showerHits ( ) const
inline

◆ showerHits() [2/2]

void TrkDriftCircleMath::Segment::showerHits ( unsigned int  showerHits)
inline

◆ t0Error()

double TrkDriftCircleMath::Segment::t0Error ( ) const
inline

◆ t0Shift()

double TrkDriftCircleMath::Segment::t0Shift ( ) const
inline

Member Data Documentation

◆ m_ambigue

unsigned int TrkDriftCircleMath::Segment::m_ambigue {0}
private

◆ m_chi2

double TrkDriftCircleMath::Segment::m_chi2 {1.e9}
private

◆ m_closeHits

unsigned int TrkDriftCircleMath::Segment::m_closeHits {0}
private

◆ m_clusterLayers

unsigned int TrkDriftCircleMath::Segment::m_clusterLayers {0}
private

◆ m_clusters

CLVec TrkDriftCircleMath::Segment::m_clusters
private

◆ m_crossedTubesMl1

unsigned int TrkDriftCircleMath::Segment::m_crossedTubesMl1 {0}
private

◆ m_crossedTubesMl2

unsigned int TrkDriftCircleMath::Segment::m_crossedTubesMl2 {0}
private

◆ m_dcs

DCOnTrackVec TrkDriftCircleMath::Segment::m_dcs
private

◆ m_deltaAlpha

double TrkDriftCircleMath::Segment::m_deltaAlpha {-99999.}
private

◆ m_deltab

double TrkDriftCircleMath::Segment::m_deltab {-99999.}
private

◆ m_deltas

unsigned int TrkDriftCircleMath::Segment::m_deltas {0}
private

◆ m_dtheta

double TrkDriftCircleMath::Segment::m_dtheta {1.e9}
private

◆ m_dy0

double TrkDriftCircleMath::Segment::m_dy0 {1.e9}
private

◆ m_emptyTubes

DCVec TrkDriftCircleMath::Segment::m_emptyTubes
private

◆ m_hitsMl1

unsigned int TrkDriftCircleMath::Segment::m_hitsMl1 {0}
private

◆ m_hitsMl2

unsigned int TrkDriftCircleMath::Segment::m_hitsMl2 {0}
private

◆ m_hitsOnTrack

unsigned int TrkDriftCircleMath::Segment::m_hitsOnTrack {0}
private

◆ m_hitsOutOfTime

unsigned int TrkDriftCircleMath::Segment::m_hitsOutOfTime {0}
private

◆ m_line

Line TrkDriftCircleMath::Segment::m_line
private

◆ m_ndof

unsigned int TrkDriftCircleMath::Segment::m_ndof {0}
private

◆ m_showerHits

unsigned int TrkDriftCircleMath::Segment::m_showerHits {0}
private

◆ m_t0Error

double TrkDriftCircleMath::Segment::m_t0Error {-99999.}
private

◆ m_t0Shift

double TrkDriftCircleMath::Segment::m_t0Shift {-99999.}
private

The documentation for this class was generated from the following files:
TrkDriftCircleMath::Segment::closeHits
unsigned int closeHits() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:85
TrkDriftCircleMath::Segment::crossedTubesMl2
unsigned int crossedTubesMl2() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:89
TrkDriftCircleMath::Segment::crossedTubesMl1
unsigned int crossedTubesMl1() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:88
TrkDriftCircleMath::Segment::m_showerHits
unsigned int m_showerHits
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:113
TrkDriftCircleMath::Segment::m_deltab
double m_deltab
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:108
TrkDriftCircleMath::Segment::showerHits
unsigned int showerHits() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:86
TrkDriftCircleMath::Segment::m_emptyTubes
DCVec m_emptyTubes
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:99
TrkDriftCircleMath::Segment::m_dy0
double m_dy0
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:104
TrkDriftCircleMath::Segment::m_dcs
DCOnTrackVec m_dcs
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:97
TrkDriftCircleMath::Segment::m_deltas
unsigned int m_deltas
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:109
TrkDriftCircleMath::Segment::dtheta
double dtheta() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:44
CaloClusterListBadChannel.cls
cls
Definition: CaloClusterListBadChannel.py:8
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
TrkDriftCircleMath::Segment::m_ndof
unsigned int m_ndof
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:102
TrkDriftCircleMath::Segment::ndof
unsigned int ndof() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:43
TrkDriftCircleMath::Segment::m_closeHits
unsigned int m_closeHits
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:112
TrkDriftCircleMath::Segment::m_hitsOnTrack
unsigned int m_hitsOnTrack
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:111
TrkDriftCircleMath::Segment::hitsOutOfTime
unsigned int hitsOutOfTime() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:83
TrkDriftCircleMath::Segment::m_hitsMl2
unsigned int m_hitsMl2
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:117
TrkDriftCircleMath::Segment::chi2
double chi2() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:42
TrkDriftCircleMath::Segment::m_clusters
CLVec m_clusters
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:98
TrkDriftCircleMath::Segment::m_crossedTubesMl1
unsigned int m_crossedTubesMl1
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:114
TrkDriftCircleMath::Segment::emptyTubes
const DCVec & emptyTubes() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:30
TrkDriftCircleMath::Segment::m_line
Line m_line
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:96
TrkDriftCircleMath::Segment::m_dtheta
double m_dtheta
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:103
TrkDriftCircleMath::Segment::dcs
const DCOnTrackVec & dcs() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:28
TrkDriftCircleMath::Segment::t0Shift
double t0Shift() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:78
TrkDriftCircleMath::Segment::m_hitsMl1
unsigned int m_hitsMl1
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:116
TrkDriftCircleMath::Segment::deltaAlpha
double deltaAlpha() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:80
TrkDriftCircleMath::Segment::hitsOnTrack
unsigned int hitsOnTrack() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:84
TrkDriftCircleMath::Segment::m_deltaAlpha
double m_deltaAlpha
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:107
TrkDriftCircleMath::Segment::m_t0Shift
double m_t0Shift
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:105
TrkDriftCircleMath::Segment::deltab
double deltab() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:81
TrkDriftCircleMath::Segment::m_clusterLayers
unsigned int m_clusterLayers
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:119
TrkDriftCircleMath::Segment::m_t0Error
double m_t0Error
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:106
TrkDriftCircleMath::Segment::m_chi2
double m_chi2
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:101
get_generator_info.error
error
Definition: get_generator_info.py:40
TrkDriftCircleMath::Segment::m_crossedTubesMl2
unsigned int m_crossedTubesMl2
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:115
TrkDriftCircleMath::Segment::m_hitsOutOfTime
unsigned int m_hitsOutOfTime
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:110
TrkDriftCircleMath::Segment::dy0
double dy0() const
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:45
TrkDriftCircleMath::Segment::m_ambigue
unsigned int m_ambigue
Definition: TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:118