|
ATLAS Offline Software
|
Go to the documentation of this file.
23 declareInterface<DerivationFramework::IAugmentationTool>(
this);
41 return StatusCode::SUCCESS;
49 return StatusCode::SUCCESS;
61 return StatusCode::FAILURE;
87 std::vector< ElementLink< xAOD::VertexContainer > > msvVertices;
88 bjet->variable<std::vector<ElementLink<xAOD::VertexContainer> > >(
m_vtxAlgName,
"vertices", msvVertices);
90 std::vector<float> vtx_mass;
91 std::vector<float> vtx_pt;
92 std::vector<float> vtx_eta;
93 std::vector<float> vtx_phi;
94 std::vector<float> vtx_efrac;
95 std::vector<float> vtx_x;
96 std::vector<float> vtx_y;
97 std::vector<float> vtx_z;
98 std::vector<int> vtx_ntrk;
99 std::vector<float> vtx_dls;
102 for(
auto vtx : msvVertices){
111 float xp = (*vtx)->x();
112 float yp = (*vtx)->y();
113 float zp = (*vtx)->z();
118 p.SetPtEtaPhiM(
pt,eta,phi,
mass);
120 vtx_mass.push_back(
mass);
121 vtx_pt.push_back(
pt);
122 vtx_eta.push_back(eta);
123 vtx_phi.push_back(phi);
124 vtx_efrac.push_back(efrc);
128 vtx_ntrk.push_back(ntrk);
129 vtx_dls.push_back(dls);
132 dec_vtxmass(*
bjet)=vtx_mass;
133 dec_vtxpt(*
bjet)=vtx_pt;
134 dec_vtxeta(*
bjet)=vtx_eta;
135 dec_vtxphi(*
bjet)=vtx_phi;
136 dec_vtxefrac(*
bjet)=vtx_efrac;
137 dec_vtxx(*
bjet)=vtx_x;
138 dec_vtxy(*
bjet)=vtx_y;
139 dec_vtxz(*
bjet)=vtx_z;
140 dec_vtxdls(*
bjet)=vtx_dls;
141 dec_vtxntrk(*
bjet)=vtx_ntrk;
145 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
AthConfigFlags bjet(AthConfigFlags flags, str instanceName, str recoMode)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
int VtxNtrk(const xAOD::Vertex *)
float VertexMass(const xAOD::Vertex *)
virtual StatusCode addBranches() const
Pass the thinning service
float VtxnormDist(const xAOD::Vertex *)
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Helper class to provide type-safe access to aux data.
JetMSVAugmentation(const std::string &t, const std::string &n, const IInterface *p)
float Vtxphi(const xAOD::Vertex *)
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string m_jetCollectionName
const BTagging * getBTagging(const SG::AuxElement &part)
Access the default xAOD::BTagging object associated to an object.
#define ATH_MSG_WARNING(x)
float EnergyFraction(const xAOD::Vertex *)
float Vtxpt(const xAOD::Vertex *)
float Vtxeta(const xAOD::Vertex *)
tool to add some MSV variables to jets