ATLAS Offline Software
Loading...
Searching...
No Matches
SecVtxHelper.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8 // get variable mass
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 }
17 // set variable mass
19 static const SG::AuxElement::Accessor<float> a("mass");
20 a(*vtx)=val;
21
22 }
23 // get variable energyFraction
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 }
32 // set variable energyFraction
34 static const SG::AuxElement::Accessor<float> a("energyFraction");
35 a(*vtx)=val;
36
37 }
38 //
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 }
47 //
49 static const SG::AuxElement::Accessor<int> a("ntrk");
50 a(*vtx)=val;
51 }
52 //
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 }
61 //
63 static const SG::AuxElement::Accessor<float> a("pt");
64 a(*vtx)=val;
65 }
66 //
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 }
75 //
77 static const SG::AuxElement::Accessor<float> a("eta");
78 a(*vtx)=val;
79 }
80 //
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 }
89 //
91 static const SG::AuxElement::Accessor<float> a("phi");
92 a(*vtx)=val;
93 }
94 //
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 }
103 //
105 static const SG::AuxElement::Accessor<float> a("normDist");
106 a(*vtx)=val;
107 }
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
static Double_t a
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
int VtxNtrk(const xAOD::Vertex *)
void setVtxeta(xAOD::Vertex *, float value)
float Vtxpt(const xAOD::Vertex *)
void setVertexMass(xAOD::Vertex *, float value)
void setVtxNtrk(xAOD::Vertex *, int value)
float Vtxeta(const xAOD::Vertex *)
void setVtxpt(xAOD::Vertex *, float value)
void setVtxnormDist(xAOD::Vertex *, float value)
void setEnergyFraction(xAOD::Vertex *, float value)
void setVtxphi(xAOD::Vertex *, float value)
float EnergyFraction(const xAOD::Vertex *)
float VertexMass(const xAOD::Vertex *)
float Vtxphi(const xAOD::Vertex *)
float VtxnormDist(const xAOD::Vertex *)
Vertex_v1 Vertex
Define the latest version of the vertex class.