ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
TrigVertex Class Reference

#include <TrigVertex.h>

Collaboration diagram for TrigVertex:

Public Types

enum  AlgoId {
  NULLID =0, SITRACKID =1, IDSCANID =2, HISTOPRMVTXSITRACKID =3,
  VKALSECVTXID =4, BPHYSSECID =5, BSFULLSITRACKID =6, BSFULLIDSCANID =7,
  BSSPLITSITRACKID =8, BSSPLITIDSCANID =9, HISTOPRMVTXIDSCANID =10, HISTOPRMVTXEFID =11,
  HISTOPRMVTXSITRACKIDTAU =12, HISTOPRMVTXEFIDTAU =13, BJETSECVTXID =14, BSFULL_STRATEGY_B_ID =15,
  BSFULL_STRATEGY_A_ID =16, BSSPLIT_STRATEGY_B_ID =17, BSSPLIT_STRATEGY_A_ID =18, HISTOPRMVTXFTKID =19,
  HISTOPRMVTXFTKIDTAU =20, BSFULL_STRATEGY_F_ID =21, BSSPLIT_STRATEGY_F_ID = 22, HISTOPRMVTXFTKID_REFIT = 23
}
 

Public Member Functions

 TrigVertex ()
 
 TrigVertex (double zPosition)
 
 TrigVertex (double zPosition, AlgoId id)
 
 TrigVertex (double zPosition, double cv, AlgoId id)
 
 TrigVertex (double x, double y, double z, double cv[6], double chi2, int ndf, TrackInVertexList *tracks)
 
 TrigVertex (double x, double y, double z, double cv[6], double chi2, int ndf, TrackInVertexList *tracks, double mass, double energyFraction, int n2trkvtx, double decayLength, double decayLengthSignificance, AlgoId algo_id)
 
 ~TrigVertex ()
 
void algorithmId (const AlgoId id)
 sets author ID - algorithm that's created this vertex More...
 
AlgoId algorithmId () const
 returns author ID - algorithm that's created this vertex More...
 
const HepGeom::Point3D< double > & position () const
 position in HepGeom::Point3D<double> form More...
 
double chi2 () const
 \( \chi^2\) of the vertex fit More...
 
int ndof () const
 Number of degree-of-freedom of the vertex fit. More...
 
const double * cov () const
 covariance of the vertex position, packed as follows
More...
 
TrackInVertexListtracks ()
 std::list of track pointers associated with the vertex More...
 
const TrackInVertexListtracks () const
 std::list of track pointers associated with the vertex More...
 
double x () const
 x-position More...
 
double y () const
 y-position More...
 
double z () const
 z-position More...
 
double mass () const
 vertex mass estimated after the vertex fit More...
 
double massVariance () const
 variance of the vertex mass estimate More...
 
const TrigInDetTrackFitPargetMotherTrack () const
 parameters of a mother particle reconstructed after the vertex fit More...
 
double energyFraction () const
 energy ratio E(secondary vertex)/E(jet) More...
 
int nTwoTracksSecVtx () const
 number of 2-track vertices More...
 
double decayLength () const
 decay length to the primary vertex used to find this secondary vertex More...
 
double decayLengthSignificance () const
 decay length divided by its error More...
 
void setMass (double m)
 
void setMassVariance (double m)
 
void setMotherTrack (const TrigInDetTrackFitPar *P)
 
void setEnergyFraction (double e)
 
void setNTwoTrackSecVtx (int n)
 
void setDecayLength (double v)
 
void setDecayLengthSignificance (double v)
 

Private Attributes

double m_x
 
double m_y
 
double m_z
 
double m_mass
 
double m_massVar
 
double m_cov [6]
 
double m_energyFraction
 energy ratio E(secondary vertex)/E(jet) More...
 
int m_nTwoTracksSecVtx
 number of 2-track vertices More...
 
double m_decayLength
 
double m_decayLengthSignificance
 
HepGeom::Point3D< double > m_position
 
double m_chiSquared
 
int m_nDOF
 
TrackInVertexListm_tracks
 
AlgoId m_algId
 
const TrigInDetTrackFitParm_P
 
bool m_ownTracks
 

Friends

class TrigVertexCnv_p1
 
class TrigVertexCnv_p2
 

Detailed Description

encapsulates LVL2 vertex parameters (in the global reference frame), covariance matrix, and some auxilliary information about the vertex.

Note that covariance is represented by a std::vector<double> in a packed form:

cov(x,x) cov(x,y) cov(x,z) cov(y,y) cov(y,z) cov(z,z)

Definition at line 28 of file TrigVertex.h.

Member Enumeration Documentation

◆ AlgoId

Enumerator
NULLID 
SITRACKID 
IDSCANID 
HISTOPRMVTXSITRACKID 
VKALSECVTXID 
BPHYSSECID 
BSFULLSITRACKID 
BSFULLIDSCANID 
BSSPLITSITRACKID 
BSSPLITIDSCANID 
HISTOPRMVTXIDSCANID 
HISTOPRMVTXEFID 
HISTOPRMVTXSITRACKIDTAU 
HISTOPRMVTXEFIDTAU 
BJETSECVTXID 
BSFULL_STRATEGY_B_ID 
BSFULL_STRATEGY_A_ID 
BSSPLIT_STRATEGY_B_ID 
BSSPLIT_STRATEGY_A_ID 
HISTOPRMVTXFTKID 
HISTOPRMVTXFTKIDTAU 
BSFULL_STRATEGY_F_ID 
BSSPLIT_STRATEGY_F_ID 
HISTOPRMVTXFTKID_REFIT 

Definition at line 31 of file TrigVertex.h.

Constructor & Destructor Documentation

◆ TrigVertex() [1/6]

TrigVertex::TrigVertex ( )
inline

Definition at line 39 of file TrigVertex.h.

39  : m_x(0.0), m_y(0.0), m_z(0.), m_position(0,0,0),
40  m_chiSquared(0.0), m_nDOF(0),
41  m_tracks(NULL), m_algId(NULLID),
42  m_ownTracks(false)
43  {
44  for(int i=0;i<6;i++) m_cov[i]=0.0;
45  m_mass=0.0;m_massVar=0.0;m_P=NULL;m_energyFraction=0.0;
48  }

◆ TrigVertex() [2/6]

TrigVertex::TrigVertex ( double  zPosition)
inline

Definition at line 50 of file TrigVertex.h.

50  : m_x(0.0), m_y(0.0), m_z(zPosition),m_position(0,0,zPosition),
51  m_chiSquared(0.0), m_nDOF(0),
52  m_tracks(NULL), m_algId(NULLID),
53  m_ownTracks(false)
54  {
55  for(int i=0;i<6;i++) m_cov[i]=0.0;
56  m_mass=0.0;m_massVar=0.0;m_P=NULL;m_energyFraction=0.0;
59  }

◆ TrigVertex() [3/6]

TrigVertex::TrigVertex ( double  zPosition,
AlgoId  id 
)
inline

Definition at line 61 of file TrigVertex.h.

61  : m_x(0.0), m_y(0.0), m_z(zPosition), m_position(0,0,zPosition),
62  m_chiSquared(0.0), m_nDOF(0),
63  m_tracks(NULL), m_algId(id),
64  m_ownTracks(false)
65  {
66  for(int i=0;i<6;i++) m_cov[i]=0.0;
67  m_mass=0.0;m_massVar=0.0;m_P=NULL;m_energyFraction=0.0;
70  }

◆ TrigVertex() [4/6]

TrigVertex::TrigVertex ( double  zPosition,
double  cv,
AlgoId  id 
)
inline

Definition at line 72 of file TrigVertex.h.

72  : m_x(0.0), m_y(0.0), m_z(zPosition), m_position(0,0,zPosition),
73  m_chiSquared(0.0), m_nDOF(0),
74  m_tracks(NULL), m_algId(id),
75  m_ownTracks(false)
76  {
77  for(int i=0;i<5;i++) m_cov[i]=0.0;
78  m_cov[5]=cv;
79  m_mass=0.0;m_massVar=0.0;m_P=NULL;m_energyFraction=0.0;
82  }

◆ TrigVertex() [5/6]

TrigVertex::TrigVertex ( double  x,
double  y,
double  z,
double  cv[6],
double  chi2,
int  ndf,
TrackInVertexList tracks 
)
inline

Definition at line 84 of file TrigVertex.h.

84  :
85  m_x(x), m_y(y), m_z(z), m_position(x,y,z), m_chiSquared(chi2),
87  m_ownTracks(false)
88  {
89  for(int i=0;i<6;i++) m_cov[i]=cv[i];
90  m_mass=0.0;m_massVar=0.0;m_P=NULL;m_energyFraction=0.0;
93  }

◆ TrigVertex() [6/6]

TrigVertex::TrigVertex ( double  x,
double  y,
double  z,
double  cv[6],
double  chi2,
int  ndf,
TrackInVertexList tracks,
double  mass,
double  energyFraction,
int  n2trkvtx,
double  decayLength,
double  decayLengthSignificance,
AlgoId  algo_id 
)
inline

Definition at line 95 of file TrigVertex.h.

98  :
99  m_x(x), m_y(y), m_z(z), m_mass(mass), m_massVar(0),
101  m_nTwoTracksSecVtx(n2trkvtx),
105  m_nDOF(ndf), m_tracks(tracks), m_algId(algo_id),
106  m_ownTracks(false)
107  {
108  for(int i=0;i<6;i++) m_cov[i]=cv[i];
109  m_P=NULL;
110  }

◆ ~TrigVertex()

TrigVertex::~TrigVertex ( )
inline

Definition at line 113 of file TrigVertex.h.

114  {
115  if (m_ownTracks) {
116  for (TrackInVertexList::iterator i = m_tracks->begin();
117  i != m_tracks->end();
118  ++i)
119  delete *i;
120  }
121  if(m_tracks!=NULL) delete m_tracks;
122  if(m_P!=NULL) delete m_P;
123  }

Member Function Documentation

◆ algorithmId() [1/2]

AlgoId TrigVertex::algorithmId ( ) const
inline

returns author ID - algorithm that's created this vertex

Definition at line 128 of file TrigVertex.h.

◆ algorithmId() [2/2]

void TrigVertex::algorithmId ( const AlgoId  id)
inline

sets author ID - algorithm that's created this vertex

Definition at line 127 of file TrigVertex.h.

◆ chi2()

double TrigVertex::chi2 ( ) const
inline

\( \chi^2\) of the vertex fit

Definition at line 131 of file TrigVertex.h.

◆ cov()

const double* TrigVertex::cov ( ) const
inline

covariance of the vertex position, packed as follows

Definition at line 133 of file TrigVertex.h.

◆ decayLength()

double TrigVertex::decayLength ( ) const
inline

decay length to the primary vertex used to find this secondary vertex

Definition at line 147 of file TrigVertex.h.

◆ decayLengthSignificance()

double TrigVertex::decayLengthSignificance ( ) const
inline

decay length divided by its error

Definition at line 148 of file TrigVertex.h.

◆ energyFraction()

double TrigVertex::energyFraction ( ) const
inline

energy ratio E(secondary vertex)/E(jet)

Definition at line 145 of file TrigVertex.h.

◆ getMotherTrack()

const TrigInDetTrackFitPar* TrigVertex::getMotherTrack ( ) const
inline

parameters of a mother particle reconstructed after the vertex fit

Definition at line 143 of file TrigVertex.h.

◆ mass()

double TrigVertex::mass ( ) const
inline

vertex mass estimated after the vertex fit

Definition at line 141 of file TrigVertex.h.

◆ massVariance()

double TrigVertex::massVariance ( ) const
inline

variance of the vertex mass estimate

Definition at line 142 of file TrigVertex.h.

◆ ndof()

int TrigVertex::ndof ( ) const
inline

Number of degree-of-freedom of the vertex fit.

Definition at line 132 of file TrigVertex.h.

◆ nTwoTracksSecVtx()

int TrigVertex::nTwoTracksSecVtx ( ) const
inline

number of 2-track vertices

Definition at line 146 of file TrigVertex.h.

◆ position()

const HepGeom::Point3D<double>& TrigVertex::position ( ) const
inline

position in HepGeom::Point3D<double> form

Definition at line 130 of file TrigVertex.h.

◆ setDecayLength()

void TrigVertex::setDecayLength ( double  v)
inline

Definition at line 159 of file TrigVertex.h.

159 {m_decayLength = v;}

◆ setDecayLengthSignificance()

void TrigVertex::setDecayLengthSignificance ( double  v)
inline

Definition at line 160 of file TrigVertex.h.

◆ setEnergyFraction()

void TrigVertex::setEnergyFraction ( double  e)
inline

Definition at line 156 of file TrigVertex.h.

156 { m_energyFraction = e; }

◆ setMass()

void TrigVertex::setMass ( double  m)
inline

Definition at line 152 of file TrigVertex.h.

152 { m_mass = m; }

◆ setMassVariance()

void TrigVertex::setMassVariance ( double  m)
inline

Definition at line 153 of file TrigVertex.h.

153 { m_massVar = m; }

◆ setMotherTrack()

void TrigVertex::setMotherTrack ( const TrigInDetTrackFitPar P)
inline

Definition at line 154 of file TrigVertex.h.

154 { m_P=P;}

◆ setNTwoTrackSecVtx()

void TrigVertex::setNTwoTrackSecVtx ( int  n)
inline

Definition at line 157 of file TrigVertex.h.

157 { m_nTwoTracksSecVtx = n; }

◆ tracks() [1/2]

TrackInVertexList* TrigVertex::tracks ( )
inline

std::list of track pointers associated with the vertex

Definition at line 135 of file TrigVertex.h.

◆ tracks() [2/2]

const TrackInVertexList* TrigVertex::tracks ( ) const
inline

std::list of track pointers associated with the vertex

Definition at line 136 of file TrigVertex.h.

◆ x()

double TrigVertex::x ( ) const
inline

x-position

Definition at line 137 of file TrigVertex.h.

◆ y()

double TrigVertex::y ( ) const
inline

y-position

Definition at line 138 of file TrigVertex.h.

◆ z()

double TrigVertex::z ( ) const
inline

z-position

Definition at line 139 of file TrigVertex.h.

Friends And Related Function Documentation

◆ TrigVertexCnv_p1

friend class TrigVertexCnv_p1
friend

Definition at line 163 of file TrigVertex.h.

◆ TrigVertexCnv_p2

friend class TrigVertexCnv_p2
friend

Definition at line 164 of file TrigVertex.h.

Member Data Documentation

◆ m_algId

AlgoId TrigVertex::m_algId
private

Definition at line 181 of file TrigVertex.h.

◆ m_chiSquared

double TrigVertex::m_chiSquared
private

Definition at line 178 of file TrigVertex.h.

◆ m_cov

double TrigVertex::m_cov[6]
private

Definition at line 168 of file TrigVertex.h.

◆ m_decayLength

double TrigVertex::m_decayLength
private

Definition at line 174 of file TrigVertex.h.

◆ m_decayLengthSignificance

double TrigVertex::m_decayLengthSignificance
private

Definition at line 175 of file TrigVertex.h.

◆ m_energyFraction

double TrigVertex::m_energyFraction
private

energy ratio E(secondary vertex)/E(jet)

Definition at line 170 of file TrigVertex.h.

◆ m_mass

double TrigVertex::m_mass
private

Definition at line 167 of file TrigVertex.h.

◆ m_massVar

double TrigVertex::m_massVar
private

Definition at line 167 of file TrigVertex.h.

◆ m_nDOF

int TrigVertex::m_nDOF
private

Definition at line 179 of file TrigVertex.h.

◆ m_nTwoTracksSecVtx

int TrigVertex::m_nTwoTracksSecVtx
private

number of 2-track vertices

Definition at line 172 of file TrigVertex.h.

◆ m_ownTracks

bool TrigVertex::m_ownTracks
private

Definition at line 183 of file TrigVertex.h.

◆ m_P

const TrigInDetTrackFitPar* TrigVertex::m_P
private

Definition at line 182 of file TrigVertex.h.

◆ m_position

HepGeom::Point3D<double> TrigVertex::m_position
private

Definition at line 177 of file TrigVertex.h.

◆ m_tracks

TrackInVertexList* TrigVertex::m_tracks
private

Definition at line 180 of file TrigVertex.h.

◆ m_x

double TrigVertex::m_x
private

Definition at line 167 of file TrigVertex.h.

◆ m_y

double TrigVertex::m_y
private

Definition at line 167 of file TrigVertex.h.

◆ m_z

double TrigVertex::m_z
private

Definition at line 167 of file TrigVertex.h.


The documentation for this class was generated from the following file:
TrigVertex::mass
double mass() const
vertex mass estimated after the vertex fit
Definition: TrigVertex.h:141
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
covarianceTool.ndf
ndf
Definition: covarianceTool.py:678
TrigVertex::BSFULLIDSCANID
@ BSFULLIDSCANID
Definition: TrigVertex.h:32
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
TrigVertex::BSFULLSITRACKID
@ BSFULLSITRACKID
Definition: TrigVertex.h:32
TrigVertex::m_x
double m_x
Definition: TrigVertex.h:167
TrigVertex::m_mass
double m_mass
Definition: TrigVertex.h:167
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigVertex::BSFULL_STRATEGY_A_ID
@ BSFULL_STRATEGY_A_ID
Definition: TrigVertex.h:34
TrigVertex::m_decayLength
double m_decayLength
Definition: TrigVertex.h:174
TrigVertex::NULLID
@ NULLID
Definition: TrigVertex.h:31
TrigVertex::BSSPLITSITRACKID
@ BSSPLITSITRACKID
Definition: TrigVertex.h:32
DMTest::P
P_v1 P
Definition: P.h:23
TrigVertex::HISTOPRMVTXFTKID_REFIT
@ HISTOPRMVTXFTKID_REFIT
Definition: TrigVertex.h:36
TrigVertex::m_chiSquared
double m_chiSquared
Definition: TrigVertex.h:178
TrigVertex::SITRACKID
@ SITRACKID
Definition: TrigVertex.h:31
TrigVertex::m_position
HepGeom::Point3D< double > m_position
Definition: TrigVertex.h:177
TrigVertex::BSFULL_STRATEGY_F_ID
@ BSFULL_STRATEGY_F_ID
Definition: TrigVertex.h:35
TrigVertex::m_massVar
double m_massVar
Definition: TrigVertex.h:167
TrigVertex::tracks
TrackInVertexList * tracks()
std::list of track pointers associated with the vertex
Definition: TrigVertex.h:135
TrigVertex::energyFraction
double energyFraction() const
energy ratio E(secondary vertex)/E(jet)
Definition: TrigVertex.h:145
TrigVertex::decayLength
double decayLength() const
decay length to the primary vertex used to find this secondary vertex
Definition: TrigVertex.h:147
TrigVertex::m_decayLengthSignificance
double m_decayLengthSignificance
Definition: TrigVertex.h:175
TrigVertex::z
double z() const
z-position
Definition: TrigVertex.h:139
TrigVertex::m_algId
AlgoId m_algId
Definition: TrigVertex.h:181
TrigVertex::BPHYSSECID
@ BPHYSSECID
Definition: TrigVertex.h:31
TrigVertex::decayLengthSignificance
double decayLengthSignificance() const
decay length divided by its error
Definition: TrigVertex.h:148
TrigVertex::BJETSECVTXID
@ BJETSECVTXID
Definition: TrigVertex.h:33
TrigVertex::m_z
double m_z
Definition: TrigVertex.h:167
TrigVertex::HISTOPRMVTXFTKIDTAU
@ HISTOPRMVTXFTKIDTAU
Definition: TrigVertex.h:35
lumiFormat.i
int i
Definition: lumiFormat.py:85
beamspotman.n
n
Definition: beamspotman.py:731
TrigVertex::HISTOPRMVTXFTKID
@ HISTOPRMVTXFTKID
Definition: TrigVertex.h:35
TrigVertex::HISTOPRMVTXEFIDTAU
@ HISTOPRMVTXEFIDTAU
Definition: TrigVertex.h:33
TrigVertex::BSSPLITIDSCANID
@ BSSPLITIDSCANID
Definition: TrigVertex.h:32
TrigVertex::m_nDOF
int m_nDOF
Definition: TrigVertex.h:179
TrigVertex::m_y
double m_y
Definition: TrigVertex.h:167
TrigVertex::BSSPLIT_STRATEGY_F_ID
@ BSSPLIT_STRATEGY_F_ID
Definition: TrigVertex.h:35
TrigVertex::BSSPLIT_STRATEGY_A_ID
@ BSSPLIT_STRATEGY_A_ID
Definition: TrigVertex.h:34
TrigVertex::HISTOPRMVTXIDSCANID
@ HISTOPRMVTXIDSCANID
Definition: TrigVertex.h:32
TrigVertex::m_tracks
TrackInVertexList * m_tracks
Definition: TrigVertex.h:180
TrigVertex::BSFULL_STRATEGY_B_ID
@ BSFULL_STRATEGY_B_ID
Definition: TrigVertex.h:34
TrigVertex::m_cov
double m_cov[6]
Definition: TrigVertex.h:168
python.PyAthena.v
v
Definition: PyAthena.py:154
TrigVertex::m_P
const TrigInDetTrackFitPar * m_P
Definition: TrigVertex.h:182
TrigVertex::IDSCANID
@ IDSCANID
Definition: TrigVertex.h:31
TrigVertex::chi2
double chi2() const
of the vertex fit
Definition: TrigVertex.h:131
TrigVertex::m_nTwoTracksSecVtx
int m_nTwoTracksSecVtx
number of 2-track vertices
Definition: TrigVertex.h:172
TrigVertex::HISTOPRMVTXEFID
@ HISTOPRMVTXEFID
Definition: TrigVertex.h:33
TrigVertex::m_energyFraction
double m_energyFraction
energy ratio E(secondary vertex)/E(jet)
Definition: TrigVertex.h:170
TrigVertex::HISTOPRMVTXSITRACKID
@ HISTOPRMVTXSITRACKID
Definition: TrigVertex.h:31
TrigVertex::x
double x() const
x-position
Definition: TrigVertex.h:137
TrigVertex::BSSPLIT_STRATEGY_B_ID
@ BSSPLIT_STRATEGY_B_ID
Definition: TrigVertex.h:34
TrigVertex::VKALSECVTXID
@ VKALSECVTXID
Definition: TrigVertex.h:31
TrigVertex::HISTOPRMVTXSITRACKIDTAU
@ HISTOPRMVTXSITRACKIDTAU
Definition: TrigVertex.h:33
TrigVertex::y
double y() const
y-position
Definition: TrigVertex.h:138
TrigVertex::m_ownTracks
bool m_ownTracks
Definition: TrigVertex.h:183