ATLAS Offline Software
Loading...
Searching...
No Matches
TrigVertex Class Reference

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

#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
AlgoId algorithmId () const
 returns author ID - algorithm that's created this vertex
const HepGeom::Point3D< double > & position () const
 position in HepGeom::Point3D<double> form
double chi2 () const
 \( \chi^2\) of the vertex fit
int ndof () const
 Number of degree-of-freedom of the vertex fit.
const double * cov () const
 covariance of the vertex position, packed as follows
TrackInVertexListtracks ()
 std::list of track pointers associated with the vertex
const TrackInVertexListtracks () const
 std::list of track pointers associated with the vertex
double x () const
 x-position
double y () const
 y-position
double z () const
 z-position
double mass () const
 vertex mass estimated after the vertex fit
double massVariance () const
 variance of the vertex mass estimate
const TrigInDetTrackFitPargetMotherTrack () const
 parameters of a mother particle reconstructed after the vertex fit
double energyFraction () const
 energy ratio E(secondary vertex)/E(jet)
int nTwoTracksSecVtx () const
 number of 2-track vertices
double decayLength () const
 decay length to the primary vertex used to find this secondary vertex
double decayLengthSignificance () const
 decay length divided by its error
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)
int m_nTwoTracksSecVtx
 number of 2-track vertices
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.

@ BSSPLITSITRACKID
Definition TrigVertex.h:32
@ HISTOPRMVTXFTKIDTAU
Definition TrigVertex.h:35
@ HISTOPRMVTXIDSCANID
Definition TrigVertex.h:32
@ BSFULL_STRATEGY_F_ID
Definition TrigVertex.h:35
@ BSFULLSITRACKID
Definition TrigVertex.h:32
@ BSFULL_STRATEGY_A_ID
Definition TrigVertex.h:34
@ HISTOPRMVTXSITRACKID
Definition TrigVertex.h:31
@ BSSPLIT_STRATEGY_A_ID
Definition TrigVertex.h:34
@ HISTOPRMVTXEFID
Definition TrigVertex.h:33
@ BSSPLITIDSCANID
Definition TrigVertex.h:32
@ HISTOPRMVTXFTKID_REFIT
Definition TrigVertex.h:36
@ HISTOPRMVTXFTKID
Definition TrigVertex.h:35
@ BSSPLIT_STRATEGY_B_ID
Definition TrigVertex.h:34
@ BSFULL_STRATEGY_B_ID
Definition TrigVertex.h:34
@ HISTOPRMVTXSITRACKIDTAU
Definition TrigVertex.h:33
@ HISTOPRMVTXEFIDTAU
Definition TrigVertex.h:33
@ BSSPLIT_STRATEGY_F_ID
Definition TrigVertex.h:35

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 }
double m_energyFraction
energy ratio E(secondary vertex)/E(jet)
Definition TrigVertex.h:170
double m_mass
Definition TrigVertex.h:167
double m_x
Definition TrigVertex.h:167
AlgoId m_algId
Definition TrigVertex.h:181
double m_chiSquared
Definition TrigVertex.h:178
const TrigInDetTrackFitPar * m_P
Definition TrigVertex.h:182
int m_nTwoTracksSecVtx
number of 2-track vertices
Definition TrigVertex.h:172
double m_decayLengthSignificance
Definition TrigVertex.h:175
double m_z
Definition TrigVertex.h:167
bool m_ownTracks
Definition TrigVertex.h:183
double m_cov[6]
Definition TrigVertex.h:168
TrackInVertexList * m_tracks
Definition TrigVertex.h:180
double m_decayLength
Definition TrigVertex.h:174
double m_y
Definition TrigVertex.h:167
HepGeom::Point3D< double > m_position
Definition TrigVertex.h:177
double m_massVar
Definition TrigVertex.h:167

◆ 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 :
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 }
double chi2() const
of the vertex fit
Definition TrigVertex.h:131
TrackInVertexList * tracks()
std::list of track pointers associated with the vertex
Definition TrigVertex.h:135
double x() const
x-position
Definition TrigVertex.h:137
double z() const
z-position
Definition TrigVertex.h:139
double y() const
y-position
Definition TrigVertex.h:138

◆ 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 }
double mass() const
vertex mass estimated after the vertex fit
Definition TrigVertex.h:141
double decayLength() const
decay length to the primary vertex used to find this secondary vertex
Definition TrigVertex.h:147
double decayLengthSignificance() const
decay length divided by its error
Definition TrigVertex.h:148
double energyFraction() const
energy ratio E(secondary vertex)/E(jet)
Definition TrigVertex.h:145

◆ ~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.

◆ 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.

◆ setMass()

void TrigVertex::setMass ( double m)
inline

Definition at line 152 of file TrigVertex.h.

◆ 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;}
static Double_t P(Double_t *tt, Double_t *par)

◆ setNTwoTrackSecVtx()

void TrigVertex::setNTwoTrackSecVtx ( int n)
inline

Definition at line 157 of file TrigVertex.h.

◆ 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.

◆ 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: