Skip to content
Snippets Groups Projects
Commit 8455b1e7 authored by Ahmed Hasib's avatar Ahmed Hasib
Browse files

TFCSTruthState constructor doesn't use PtEtaPhiM(), TLorentVector setter method is used instead

Former-commit-id: 22cfdea66beba080146f998ee79915a1e1966b96
parent 2221602e
No related branches found
No related tags found
No related merge requests found
......@@ -215,8 +215,10 @@ StatusCode ISF::FastCaloSimSvcV2::simulate(const ISF::ISFParticle& isfp)
ATH_MSG_VERBOSE("Found anti-proton/neutron, negative mass is used for TFCSTruthState ");
}
// TFCSTruthState truth(isfp.momentum().x(),isfp.momentum().y(),isfp.momentum().z(),sqrt(isfp.momentum().mag2()+pow(isfp.mass(),2)),isfp.pdgCode());
TFCSTruthState truth(particle_direction.perp(), particle_direction.eta(), particle_direction.phi(), isfp_mass, isfp.pdgCode());
TFCSTruthState truth;
truth.SetPtEtaPhiM(particle_direction.perp(), particle_direction.eta(), particle_direction.phi(), isfp_mass);
truth.set_pdgid(isfp.pdgCode());
truth.set_vertex(particle_position[Amg::x], particle_position[Amg::y], particle_position[Amg::z]);
TFCSExtrapolationState extrapol;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment