36 m_truthJetContainer(
""),
37 m_truthParticleContainer(
"")
43 "dev/SUSYTools/Vjets_SysParameterization/AllVariationWeights.root" );
71 return StatusCode::FAILURE;
76 std::string keyname=
"";
78 while ((
key = (TKey *)
next())) {
80 keyname = std::string(
key->GetName());
83 if( keyname.find(
"Zee_") != std::string::npos ){
85 hname =
"PMGSherpaVjetsSysTool::ZllJets_"+keyname;
92 if( keyname.find(
"Znunu_") != std::string::npos ){
94 hname =
"PMGSherpaVjetsSysTool::ZnunuJets_"+keyname;
101 if( keyname.find(
"Wenu_") != std::string::npos ){
103 hname =
"PMGSherpaVjetsSysTool::WlnuJets_"+keyname;
110 if( keyname.find(
"Gamma_") != std::string::npos ){
112 hname =
"PMGSherpaVjetsSysTool::GammaJets_"+keyname;
121 return StatusCode::SUCCESS;
176 ATH_MSG_ERROR(
"No EventInfo found in TStore(). Not able to get the sample ID. Dummy null weight retrieved.");
409 size_t nTruthJets = 0;
422 for(
const xAOD::Jet* truthJet : *truthJets ) {
425 if( truthJet->pt() <= 20000. || std::abs( truthJet->eta() ) >= 2.8 ) {
431 acc(
"HadronConeExclTruthLabelID" );
432 if(
acc.isAvailable( *truthJet ) && (
acc( *truthJet ) == 15 ) ) {
448 ( ( std::abs( truthParticle->pdgId() ) != 11 ) &&
449 ( std::abs( truthParticle->pdgId() ) != 13 ) ) ) {
453 if( ( truthParticle->pt() <= 20000.0 ) ||
454 ( std::abs( truthParticle->eta() ) >= 2.8 ) ) {
459 static const double MIN_DISTANCE = 0.2 * 0.2;
462 if( dR2 < MIN_DISTANCE ) {
491 std::vector<std::string> vdummy={};