diff --git a/interface/JMEJetAnalyzer.h b/interface/JMEJetAnalyzer.h index a3aaddc..4c40654 100644 --- a/interface/JMEJetAnalyzer.h +++ b/interface/JMEJetAnalyzer.h @@ -51,6 +51,7 @@ class JMEJetAnalyzer : public JME::PhysicsObjectAnalyzer std::vector& betaClassic = tree["betaClassic"].write>(); std::vector& betaStarClassic = tree["betaStarClassic"].write>(); std::vector& dZ = tree["dZ"].write>(); + std::vector& d0 = tree["d0"].write>(); std::vector& DRweighted = tree["DRweighted"].write>(); std::vector& fRing0 = tree["fRing0"].write>(); std::vector& fRing1 = tree["fRing1"].write>(); diff --git a/interface/PhysicsObjectAnalyzer.h b/interface/PhysicsObjectAnalyzer.h index 5d64d2b..ab21517 100644 --- a/interface/PhysicsObjectAnalyzer.h +++ b/interface/PhysicsObjectAnalyzer.h @@ -58,11 +58,11 @@ namespace JME { protected: std::vector& p4 = tree["p4"].write>(); std::vector& y = tree["y"].write>(); - std::vector& charge = tree["charge"].write>(); + std::vector& charge = tree["charge"].write>(); std::vector& is_matched = tree["has_gen_particle"].write>(); std::vector& gen_p4 = tree["gen_p4"].write>(); std::vector& gen_y = tree["gen_y"].write>(); - std::vector& gen_charge = tree["gen_charge"].write>(); + std::vector& gen_charge = tree["gen_charge"].write>(); }; } diff --git a/src/JMEJetAnalyzer.cc b/src/JMEJetAnalyzer.cc index 6fee80d..cf64ef9 100644 --- a/src/JMEJetAnalyzer.cc +++ b/src/JMEJetAnalyzer.cc @@ -294,7 +294,7 @@ void JMEJetAnalyzer::computeBetaStar(const pat::Jet& jet, const std::vectorpt() > pTMaxChg) { pTMaxChg = lPack->pt(); dZ2 = lPack->dz(); + d02 = lPack->dxy(); } float tkpt = lPack->pt(); @@ -454,6 +455,7 @@ void JMEJetAnalyzer::computeBetaStar(const pat::Jet& jet, const std::vector