ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TIDA::Track Class Reference

#include <Track.h>

Inheritance diagram for TIDA::Track:
Collaboration diagram for TIDA::Track:

Public Member Functions

 Track ()
 
 Track (double eta, double phi, double z0, double a0, double pT, double chi2, double dof, double deta, double dphi, double dz0, double da0, double dpT, int bLayerHits=0, int pixelHits=0, int sctHits=0, int siHits=0, int strawHits=0, int trHits=0, unsigned hitPattern=0, unsigned multiPattern=0, int author=0, bool hasTruth=false, int barcode=-1, int match_barcode=-1, bool expectBL=false, unsigned long id=0)
 
virtual ~Track ()
 
double eta () const
 
double phi () const
 
double z0 () const
 
double a0 () const
 
double pT () const
 
double chi2 () const
 
double dof () const
 
double deta () const
 
double dphi () const
 
double dz0 () const
 
double da0 () const
 
double dpT () const
 
int pixelHits () const
 
bool expectBL () const
 
int sctHits () const
 
int siHits () const
 
int bLayerHits () const
 
int strawHits () const
 
int trHits () const
 
int pixelHoles () const
 
int sctHoles () const
 
int siHoles () const
 
int bLayerHoles () const
 
int strawHoles () const
 
int trHoles () const
 
unsigned hitPattern () const
 
unsigned multiPattern () const
 
int author () const
 
int barcode () const
 
int match_barcode () const
 
unsigned long id () const
 
bool hasTruth () const
 
void rotate ()
 
bool operator== (const Track &t)
 

Protected Member Functions

 ClassDef (TIDA::Track, 6)
 

Protected Attributes

double m_eta
 
double m_phi
 
double m_z0
 
double m_a0
 
double m_pT
 
double m_chi2
 
double m_dof
 
double m_deta
 
double m_dphi
 
double m_dz0
 
double m_da0
 
double m_dpT
 
int m_bLayerHits
 Track hits and holes - encoded as 1000*nholes + nhits the relevant %1000 or /1000 should be performed by the relevant accessor to return either the number of hits or holes. More...
 
int m_pixelHits
 
int m_sctHits
 
int m_siHits
 
int m_strawHits
 
int m_trHits
 
unsigned m_hitPattern
 
unsigned m_multiPattern
 
int m_author
 
bool m_hasTruth
 
int m_barcode
 
int m_match_barcode
 
bool m_expectBL
 
unsigned long m_id
 identifier More...
 

Detailed Description

Definition at line 26 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

Constructor & Destructor Documentation

◆ Track() [1/2]

TIDA::Track::Track ( )

◆ Track() [2/2]

Track::Track ( double  eta,
double  phi,
double  z0,
double  a0,
double  pT,
double  chi2,
double  dof,
double  deta,
double  dphi,
double  dz0,
double  da0,
double  dpT,
int  bLayerHits = 0,
int  pixelHits = 0,
int  sctHits = 0,
int  siHits = 0,
int  strawHits = 0,
int  trHits = 0,
unsigned  hitPattern = 0,
unsigned  multiPattern = 0,
int  author = 0,
bool  hasTruth = false,
int  barcode = -1,
int  match_barcode = -1,
bool  expectBL = false,
unsigned long  id = 0 
)

◆ ~Track()

Track::~Track ( )
virtual

Definition at line 61 of file Trigger/TrigAnalysis/TrigInDetAnalysis/src/Track.cxx.

61 { }

Member Function Documentation

◆ a0()

double TIDA::Track::a0 ( ) const
inline

Definition at line 49 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

49 { return m_a0; }

◆ author()

int TIDA::Track::author ( ) const
inline

◆ barcode()

int TIDA::Track::barcode ( ) const
inline

◆ bLayerHits()

int TIDA::Track::bLayerHits ( ) const
inline

Definition at line 65 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

65 { return m_bLayerHits%1000; }

◆ bLayerHoles()

int TIDA::Track::bLayerHoles ( ) const
inline

Definition at line 74 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

74 { return m_bLayerHits/1000; }

◆ chi2()

double TIDA::Track::chi2 ( ) const
inline

◆ ClassDef()

TIDA::Track::ClassDef ( TIDA::Track  ,
 
)
protected

◆ da0()

double TIDA::Track::da0 ( ) const
inline

◆ deta()

double TIDA::Track::deta ( ) const
inline

◆ dof()

double TIDA::Track::dof ( ) const
inline

◆ dphi()

double TIDA::Track::dphi ( ) const
inline

◆ dpT()

double TIDA::Track::dpT ( ) const
inline

◆ dz0()

double TIDA::Track::dz0 ( ) const
inline

◆ eta()

double TIDA::Track::eta ( ) const
inline

Definition at line 46 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

46 { return m_eta; }

◆ expectBL()

bool TIDA::Track::expectBL ( ) const
inline

◆ hasTruth()

bool TIDA::Track::hasTruth ( ) const
inline

◆ hitPattern()

unsigned TIDA::Track::hitPattern ( ) const
inline

◆ id()

unsigned long TIDA::Track::id ( ) const
inline

Definition at line 88 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

88 { return m_id; }

◆ match_barcode()

int TIDA::Track::match_barcode ( ) const
inline

◆ multiPattern()

unsigned TIDA::Track::multiPattern ( ) const
inline

◆ operator==()

bool TIDA::Track::operator== ( const Track t)
inline

Definition at line 96 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

96  {
97 
98  if( m_author != t.m_author ) return false;
99 
100  if( m_eta != t.m_eta ) return false;
101  if( m_phi != t.m_phi ) return false;
102  if( m_z0 != t.m_z0 ) return false;
103  if( m_a0 != t.m_a0 ) return false;
104  if( m_pT != t.m_pT ) return false;
105 
106  if( m_bLayerHits != t.m_bLayerHits ) return false;
107  if( m_expectBL != t.m_expectBL ) return false;
108  if( m_pixelHits != t.m_pixelHits ) return false;
109  if( m_sctHits != t.m_sctHits ) return false;
110  if( m_siHits != t.m_siHits ) return false;
111  if( m_strawHits != t.m_strawHits ) return false;
112  if( m_trHits != t.m_trHits ) return false;
113  if ( m_hitPattern != t.m_hitPattern ) return false;
114  if ( m_multiPattern != t.m_multiPattern ) return false;
115  if ( m_id != t.m_id ) return false;
116 
117  return true;
118  }

◆ phi()

double TIDA::Track::phi ( ) const
inline

Definition at line 47 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

47 { return m_phi; }

◆ pixelHits()

int TIDA::Track::pixelHits ( ) const
inline

Definition at line 61 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

61 { return m_pixelHits%1000; }

◆ pixelHoles()

int TIDA::Track::pixelHoles ( ) const
inline

Definition at line 71 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

71 { return m_pixelHits/1000; }

◆ pT()

double TIDA::Track::pT ( ) const
inline

Definition at line 50 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

50 { return m_pT; }

◆ rotate()

void Track::rotate ( )

Definition at line 64 of file Trigger/TrigAnalysis/TrigInDetAnalysis/src/Track.cxx.

64  {
65  m_pT *= -1;
66  m_a0 *= -1;
67  m_phi -= M_PI;
68  m_eta *= -1;
69  }

◆ sctHits()

int TIDA::Track::sctHits ( ) const
inline

Definition at line 63 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

63 { return m_sctHits%1000; }

◆ sctHoles()

int TIDA::Track::sctHoles ( ) const
inline

Definition at line 72 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

72 { return m_sctHits/1000; }

◆ siHits()

int TIDA::Track::siHits ( ) const
inline

Definition at line 64 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

64 { return m_siHits%1000; }

◆ siHoles()

int TIDA::Track::siHoles ( ) const
inline

Definition at line 73 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

73 { return m_siHits/1000; }

◆ strawHits()

int TIDA::Track::strawHits ( ) const
inline

◆ strawHoles()

int TIDA::Track::strawHoles ( ) const
inline

◆ trHits()

int TIDA::Track::trHits ( ) const
inline

Definition at line 68 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

68 {return m_trHits%1000;}

◆ trHoles()

int TIDA::Track::trHoles ( ) const
inline

Definition at line 77 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

77 {return m_trHits/1000;}

◆ z0()

double TIDA::Track::z0 ( ) const
inline

Definition at line 48 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

48 { return m_z0; }

Member Data Documentation

◆ m_a0

double TIDA::Track::m_a0
protected

◆ m_author

int TIDA::Track::m_author
protected

◆ m_barcode

int TIDA::Track::m_barcode
protected

◆ m_bLayerHits

int TIDA::Track::m_bLayerHits
protected

Track hits and holes - encoded as 1000*nholes + nhits the relevant %1000 or /1000 should be performed by the relevant accessor to return either the number of hits or holes.

Definition at line 131 of file Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h.

◆ m_chi2

double TIDA::Track::m_chi2
protected

◆ m_da0

double TIDA::Track::m_da0
protected

◆ m_deta

double TIDA::Track::m_deta
protected

◆ m_dof

double TIDA::Track::m_dof
protected

◆ m_dphi

double TIDA::Track::m_dphi
protected

◆ m_dpT

double TIDA::Track::m_dpT
protected

◆ m_dz0

double TIDA::Track::m_dz0
protected

◆ m_eta

double TIDA::Track::m_eta
protected

◆ m_expectBL

bool TIDA::Track::m_expectBL
protected

◆ m_hasTruth

bool TIDA::Track::m_hasTruth
protected

◆ m_hitPattern

unsigned TIDA::Track::m_hitPattern
protected

◆ m_id

unsigned long TIDA::Track::m_id
protected

◆ m_match_barcode

int TIDA::Track::m_match_barcode
protected

◆ m_multiPattern

unsigned TIDA::Track::m_multiPattern
protected

◆ m_phi

double TIDA::Track::m_phi
protected

◆ m_pixelHits

int TIDA::Track::m_pixelHits
protected

◆ m_pT

double TIDA::Track::m_pT
protected

◆ m_sctHits

int TIDA::Track::m_sctHits
protected

◆ m_siHits

int TIDA::Track::m_siHits
protected

◆ m_strawHits

int TIDA::Track::m_strawHits
protected

◆ m_trHits

int TIDA::Track::m_trHits
protected

◆ m_z0

double TIDA::Track::m_z0
protected

The documentation for this class was generated from the following files:
TIDA::Track::m_trHits
int m_trHits
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:132
TIDA::Track::dphi
double dphi() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:56
TIDA::Track::m_dphi
double m_dphi
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:125
TIDA::Track::dof
double dof() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:53
TIDA::Track::m_multiPattern
unsigned m_multiPattern
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:136
TIDA::Track::m_dz0
double m_dz0
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:125
TIDA::Track::a0
double a0() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:49
M_PI
#define M_PI
Definition: ActiveFraction.h:11
TIDA::Track::pT
double pT() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:50
TIDA::Track::author
int author() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:83
TIDA::Track::deta
double deta() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:55
TIDA::Track::multiPattern
unsigned multiPattern() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:81
TIDA::Track::m_hitPattern
unsigned m_hitPattern
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:135
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TIDA::Track::z0
double z0() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:48
TIDA::Track::m_pixelHits
int m_pixelHits
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:131
TIDA::Track::m_id
unsigned long m_id
identifier
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:150
TIDA::Track::m_match_barcode
int m_match_barcode
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:144
TIDA::Track::dz0
double dz0() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:57
TIDA::Track::m_strawHits
int m_strawHits
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:132
TIDA::Track::hasTruth
bool hasTruth() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:90
TIDA::Track::barcode
int barcode() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:85
TIDA::Track::m_z0
double m_z0
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::m_a0
double m_a0
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::m_bLayerHits
int m_bLayerHits
Track hits and holes - encoded as 1000*nholes + nhits the relevant %1000 or /1000 should be performed...
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:131
TIDA::Track::chi2
double chi2() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:52
TIDA::Track::m_hasTruth
bool m_hasTruth
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:142
TIDA::Track::m_barcode
int m_barcode
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:143
TIDA::Track::phi
double phi() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:47
TIDA::Track::trHits
int trHits() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:68
TIDA::Track::m_chi2
double m_chi2
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::match_barcode
int match_barcode() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:86
TIDA::Track::sctHits
int sctHits() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:63
TIDA::Track::eta
double eta() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:46
TIDA::Track::m_expectBL
bool m_expectBL
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:147
TIDA::Track::siHits
int siHits() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:64
TIDA::Track::m_author
int m_author
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:139
TIDA::Track::m_pT
double m_pT
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::da0
double da0() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:58
TIDA::Track::hitPattern
unsigned hitPattern() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:80
TIDA::Track::m_da0
double m_da0
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:125
TIDA::Track::m_deta
double m_deta
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:125
TIDA::Track::m_phi
double m_phi
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::dpT
double dpT() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:59
TIDA::Track::m_sctHits
int m_sctHits
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:131
TIDA::Track::m_dof
double m_dof
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:124
TIDA::Track::expectBL
bool expectBL() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:62
TIDA::Track::bLayerHits
int bLayerHits() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:65
TIDA::Track::pixelHits
int pixelHits() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:61
TIDA::Track::m_eta
double m_eta
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::strawHits
int strawHits() const
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:67
TIDA::Track::m_siHits
int m_siHits
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:131
TIDA::Track::m_dpT
double m_dpT
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:125