26 return StatusCode::SUCCESS;
39 int final_pdgId = -999 ;
43 int hadron_pdgId = hadronAccessorHandle(*
jet);
44 int parton_pdgId = partonAccessorHandle(*
jet);
45 int negative_pdgId = (-1)*hadron_pdgId;
47 if( hadron_pdgId == 0 ){
48 final_pdgId = parton_pdgId;
51 if(
m_map.count(hadron_pdgId) >0){
52 final_pdgId =
m_map.at(hadron_pdgId);
53 ATH_MSG_DEBUG(
"Found associated hadron. Assigning " << final_pdgId <<
" to jet");
54 }
else if(
m_map.count(negative_pdgId) >0 ){
55 final_pdgId = (-1)*
m_map.at(negative_pdgId);
56 ATH_MSG_DEBUG(
"Found associated hadron. Assigning " << final_pdgId <<
" to jet");
58 ATH_MSG_DEBUG(
"Couldn't find the hadron with pdgId " << hadron_pdgId <<
" in current map. Assigning default " << final_pdgId <<
" to jet" );
63 chargeDecoratorHandle(*
jet) = final_pdgId;
66 return StatusCode::SUCCESS;
#define ATH_MSG_VERBOSE(x)
SG::Decorator< T, ALLOC > Decorator
SG::Accessor< T, ALLOC > Accessor
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".