#include <JetMSVAugmentation.h>
Definition at line 25 of file JetMSVAugmentation.h.
◆ JetMSVAugmentation()
DerivationFramework::JetMSVAugmentation::JetMSVAugmentation |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~JetMSVAugmentation()
DerivationFramework::JetMSVAugmentation::~JetMSVAugmentation |
( |
| ) |
|
◆ addBranches()
StatusCode DerivationFramework::JetMSVAugmentation::addBranches |
( |
| ) |
const |
|
virtual |
Definition at line 54 of file JetMSVAugmentation.cxx.
60 return StatusCode::FAILURE;
86 std::vector< ElementLink< xAOD::VertexContainer > > msvVertices;
87 bjet->variable<std::vector<ElementLink<xAOD::VertexContainer> > >(
m_vtxAlgName,
"vertices", msvVertices);
89 std::vector<float> vtx_mass;
90 std::vector<float> vtx_pt;
91 std::vector<float> vtx_eta;
92 std::vector<float> vtx_phi;
93 std::vector<float> vtx_efrac;
94 std::vector<float> vtx_x;
95 std::vector<float> vtx_y;
96 std::vector<float> vtx_z;
97 std::vector<int> vtx_ntrk;
98 std::vector<float> vtx_dls;
101 for(
auto vtx : msvVertices){
110 float xp = (*vtx)->x();
111 float yp = (*vtx)->y();
112 float zp = (*vtx)->z();
119 vtx_mass.push_back(
mass);
120 vtx_pt.push_back(
pt);
121 vtx_eta.push_back(
eta);
122 vtx_phi.push_back(
phi);
123 vtx_efrac.push_back(efrc);
127 vtx_ntrk.push_back(ntrk);
128 vtx_dls.push_back(dls);
131 dec_vtxmass(*
bjet)=vtx_mass;
132 dec_vtxpt(*
bjet)=vtx_pt;
133 dec_vtxeta(*
bjet)=vtx_eta;
134 dec_vtxphi(*
bjet)=vtx_phi;
135 dec_vtxefrac(*
bjet)=vtx_efrac;
136 dec_vtxx(*
bjet)=vtx_x;
137 dec_vtxy(*
bjet)=vtx_y;
138 dec_vtxz(*
bjet)=vtx_z;
139 dec_vtxdls(*
bjet)=vtx_dls;
140 dec_vtxntrk(*
bjet)=vtx_ntrk;
144 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::JetMSVAugmentation::finalize |
( |
| ) |
|
◆ initialize()
StatusCode DerivationFramework::JetMSVAugmentation::initialize |
( |
| ) |
|
◆ m_jetCollectionName
std::string DerivationFramework::JetMSVAugmentation::m_jetCollectionName |
|
private |
◆ m_vtxAlgName
std::string DerivationFramework::JetMSVAugmentation::m_vtxAlgName |
|
private |
The documentation for this class was generated from the following files: