 |
ATLAS Offline Software
|
Go to the documentation of this file.
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;
Helper class to provide type-safe access to aux data.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define ATH_MSG_VERBOSE(x)
Helper class to provide type-safe access to aux data.
::StatusCode StatusCode
StatusCode definition for legacy code.