ATLAS Offline Software
Functions
xAOD::SecVtxHelper Namespace Reference

Functions

float VertexMass (const xAOD::Vertex *)
 
void setVertexMass (xAOD::Vertex *, float value)
 
float EnergyFraction (const xAOD::Vertex *)
 
void setEnergyFraction (xAOD::Vertex *, float value)
 
int VtxNtrk (const xAOD::Vertex *)
 
void setVtxNtrk (xAOD::Vertex *, int value)
 
float Vtxpt (const xAOD::Vertex *)
 
void setVtxpt (xAOD::Vertex *, float value)
 
float Vtxeta (const xAOD::Vertex *)
 
void setVtxeta (xAOD::Vertex *, float value)
 
float Vtxphi (const xAOD::Vertex *)
 
void setVtxphi (xAOD::Vertex *, float value)
 
float VtxnormDist (const xAOD::Vertex *)
 
void setVtxnormDist (xAOD::Vertex *, float value)
 

Function Documentation

◆ EnergyFraction()

float xAOD::SecVtxHelper::EnergyFraction ( const xAOD::Vertex vtx)

Definition at line 24 of file SecVtxHelper.cxx.

24  {
25  static const SG::AuxElement::Accessor<float> a("energyFraction");
26  if(!a.isAvailable(*vtx)){
27  std::cout << "ERROR: Failed to get energyFraction" << std::endl;
28  return 0;
29  }
30  return a(*vtx);
31  }

◆ setEnergyFraction()

void xAOD::SecVtxHelper::setEnergyFraction ( xAOD::Vertex vtx,
float  value 
)

Definition at line 33 of file SecVtxHelper.cxx.

33  {
34  static const SG::AuxElement::Accessor<float> a("energyFraction");
35  a(*vtx)=val;
36 
37  }

◆ setVertexMass()

void xAOD::SecVtxHelper::setVertexMass ( xAOD::Vertex vtx,
float  value 
)

Definition at line 18 of file SecVtxHelper.cxx.

18  {
19  static const SG::AuxElement::Accessor<float> a("mass");
20  a(*vtx)=val;
21 
22  }

◆ setVtxeta()

void xAOD::SecVtxHelper::setVtxeta ( xAOD::Vertex vtx,
float  value 
)

Definition at line 76 of file SecVtxHelper.cxx.

76  {
77  static const SG::AuxElement::Accessor<float> a("eta");
78  a(*vtx)=val;
79  }

◆ setVtxnormDist()

void xAOD::SecVtxHelper::setVtxnormDist ( xAOD::Vertex vtx,
float  value 
)

Definition at line 104 of file SecVtxHelper.cxx.

104  {
105  static const SG::AuxElement::Accessor<float> a("normDist");
106  a(*vtx)=val;
107  }

◆ setVtxNtrk()

void xAOD::SecVtxHelper::setVtxNtrk ( xAOD::Vertex vtx,
int  value 
)

Definition at line 48 of file SecVtxHelper.cxx.

48  {
49  static const SG::AuxElement::Accessor<int> a("ntrk");
50  a(*vtx)=val;
51  }

◆ setVtxphi()

void xAOD::SecVtxHelper::setVtxphi ( xAOD::Vertex vtx,
float  value 
)

Definition at line 90 of file SecVtxHelper.cxx.

90  {
91  static const SG::AuxElement::Accessor<float> a("phi");
92  a(*vtx)=val;
93  }

◆ setVtxpt()

void xAOD::SecVtxHelper::setVtxpt ( xAOD::Vertex vtx,
float  value 
)

Definition at line 62 of file SecVtxHelper.cxx.

62  {
63  static const SG::AuxElement::Accessor<float> a("pt");
64  a(*vtx)=val;
65  }

◆ VertexMass()

float xAOD::SecVtxHelper::VertexMass ( const xAOD::Vertex vtx)

Definition at line 9 of file SecVtxHelper.cxx.

9  {
10  static const SG::AuxElement::Accessor<float> a("mass");
11  if(!a.isAvailable(*vtx)){
12  std::cout << "ERROR: Failed to get mass" << std::endl;
13  return 0;
14  }
15  return a(*vtx);
16  }

◆ Vtxeta()

float xAOD::SecVtxHelper::Vtxeta ( const xAOD::Vertex vtx)

Definition at line 67 of file SecVtxHelper.cxx.

67  {
68  static const SG::AuxElement::Accessor<float> a("eta");
69  if(!a.isAvailable(*vtx)){
70  std::cout << "ERROR: Failed to get eta" << std::endl;
71  return 0;
72  }
73  return a(*vtx);
74  }

◆ VtxnormDist()

float xAOD::SecVtxHelper::VtxnormDist ( const xAOD::Vertex vtx)

Definition at line 95 of file SecVtxHelper.cxx.

95  {
96  static const SG::AuxElement::Accessor<float> a("normDist");
97  if(!a.isAvailable(*vtx)){
98  std::cout << "ERROR: Failed to get normDist" << std::endl;
99  return 0;
100  }
101  return a(*vtx);
102  }

◆ VtxNtrk()

int xAOD::SecVtxHelper::VtxNtrk ( const xAOD::Vertex vtx)

Definition at line 39 of file SecVtxHelper.cxx.

39  {
40  static const SG::AuxElement::Accessor<int> a("ntrk");
41  if(!a.isAvailable(*vtx)){
42  std::cout << "ERROR: Failed to get ntrk" << std::endl;
43  return 0;
44  }
45  return a(*vtx);
46  }

◆ Vtxphi()

float xAOD::SecVtxHelper::Vtxphi ( const xAOD::Vertex vtx)

Definition at line 81 of file SecVtxHelper.cxx.

81  {
82  static const SG::AuxElement::Accessor<float> a("phi");
83  if(!a.isAvailable(*vtx)){
84  std::cout << "ERROR: Failed to get phi" << std::endl;
85  return 0;
86  }
87  return a(*vtx);
88  }

◆ Vtxpt()

float xAOD::SecVtxHelper::Vtxpt ( const xAOD::Vertex vtx)

Definition at line 53 of file SecVtxHelper.cxx.

53  {
54  static const SG::AuxElement::Accessor<float> a("pt");
55  if(!a.isAvailable(*vtx)){
56  std::cout << "ERROR: Failed to get pt" << std::endl;
57  return 0;
58  }
59  return a(*vtx);
60  }
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
a
TList * a
Definition: liststreamerinfos.cxx:10
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14