54 return StatusCode::SUCCESS;
67 jetResponseHandle(*
jet) = -1.;
68 jetIsolatedHandle(*
jet) =
false;
77 if(jetMatchedTruthJetHandle(*jet).isValid()) {
78 const xAOD::Jet* matched_truthjet = *jetMatchedTruthJetHandle(*
jet);
79 float Eresponse =
jet->e() / matched_truthjet->
e();
80 ATH_MSG_VERBOSE(
" Jet energy response : " << std::setprecision(3) << Eresponse);
81 jetResponseHandle(*
jet) = Eresponse;
85 jetIsolatedHandle(*
jet) = isIsol;
86 ATH_MSG_VERBOSE(
" Jet " <<
jet->index() <<
" with pt " << std::setprecision(3) <<
jet->pt() <<
" isolated? " << isIsol);
87 ATH_MSG_VERBOSE(
" Isolation fractions: Truth " << std::setprecision(3) << jetTruthIsolHandle(*
jet) <<
", Reco " << jetRecoIsolHandle(*
jet));
90 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
DataVector adapter that acts like it holds const pointers.
DataVector adapter that acts like it holds const pointers.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Handle class for reading a decoration on an object.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Handle class for adding a decoration to an object.
virtual double e() const
The total energy of the particle.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".