21 m_corrFactors( { { 1.0007-1, 0.9904-1, 0.9884-1, 0.9128-1, 0.8114-1,
22 0.7833-1, 0.6872-1, 0.6424-1, 0.6424-1 } } ) {
25 declareProperty(
"TruthJetContainer",
26 m_truthJetContainer =
"AntiKt4TruthWZJets" );
27 declareProperty(
"TruthParticleContainer",
28 m_truthParticleContainer =
"TruthParticles" );
41 static const double NORM = 1.007;
47 return StatusCode::SUCCESS;
55 <<
"\") found! Dummy null weight retrieved." );
97 const bool doRemoval = ( jetContainer ==
"AntiKt4TruthJets" );
101 if(
evtStore()->retrieve( truthJets, jetContainer ).isFailure() ) {
107 size_t nTruthJets = 0;
112 if(
evtStore()->retrieve( truthParticles,
114 ATH_MSG_ERROR(
"Couldn't retrieve truth particle container: "
121 for(
const xAOD::Jet* truthJet : *truthJets ) {
124 if( truthJet->pt() <= 20000. || std::abs( truthJet->eta() ) >= 4.5 ) {
130 acc(
"HadronConeExclTruthLabelID" );
131 if( acc.isAvailable( *truthJet ) && ( acc( *truthJet ) == 15 ) ) {
152 if( ( truthParticle->pt() <= 20000.0 ) ||
153 ( std::abs( truthParticle->eta() ) >= 4.5 ) ) {
158 static const double MIN_DISTANCE = 0.2 * 0.2;
161 if( dR2 < MIN_DISTANCE ) {
#define ATH_MSG_WARNING(x)
ATLAS-specific HepMC functions.
bool vetoJet(const xAOD::jFexSRJetRoI *j)
ServiceHandle< StoreGateSvc > & evtStore()
SG::ConstAccessor< T, ALLOC > ConstAccessor
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
bool isElectron(const T &p)
bool isStable(const T &p)
Identify if the particle is stable, i.e. has not decayed.
double deltaR2(double rapidity1, double phi1, double rapidity2, double phi2)
from bare rapidity,phi
Jet_v1 Jet
Definition of the current "jet version".
TruthParticle_v1 TruthParticle
Typedef to implementation.
JetContainer_v1 JetContainer
Definition of the current "jet container version".
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.