From da655c663b0a1e74ce4a95f4c7cda226aef69352 Mon Sep 17 00:00:00 2001 From: Jing Date: Mon, 13 Jul 2015 12:08:01 -0500 Subject: [PATCH 1/3] add d0 to jet tree --- interface/JMEJetAnalyzer.h | 1 + src/JMEJetAnalyzer.cc | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/interface/JMEJetAnalyzer.h b/interface/JMEJetAnalyzer.h index e42291b..9c024de 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/src/JMEJetAnalyzer.cc b/src/JMEJetAnalyzer.cc index 57eeed5..0126b97 100644 --- a/src/JMEJetAnalyzer.cc +++ b/src/JMEJetAnalyzer.cc @@ -278,7 +278,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(); @@ -438,6 +439,7 @@ void JMEJetAnalyzer::computeBetaStar(const pat::Jet& jet, const std::vector Date: Mon, 13 Jul 2015 12:11:39 -0500 Subject: [PATCH 2/3] add d0 to jet tree --- interface/JMEJetAnalyzer.h | 2 +- src/JMEJetAnalyzer.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/JMEJetAnalyzer.h b/interface/JMEJetAnalyzer.h index 9c024de..d2fb9f4 100644 --- a/interface/JMEJetAnalyzer.h +++ b/interface/JMEJetAnalyzer.h @@ -51,7 +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& 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/src/JMEJetAnalyzer.cc b/src/JMEJetAnalyzer.cc index 0126b97..1facbff 100644 --- a/src/JMEJetAnalyzer.cc +++ b/src/JMEJetAnalyzer.cc @@ -335,7 +335,7 @@ void JMEJetAnalyzer::computeBetaStar(const pat::Jet& jet, const std::vectorpt() > pTMaxChg) { pTMaxChg = lPack->pt(); dZ2 = lPack->dz(); - d02 = lPack->dxy(); + d02 = lPack->dxy(); } float tkpt = lPack->pt(); @@ -439,7 +439,7 @@ void JMEJetAnalyzer::computeBetaStar(const pat::Jet& jet, const std::vector Date: Tue, 28 Jul 2015 23:14:11 -0500 Subject: [PATCH 3/3] float charge --- interface/PhysicsObjectAnalyzer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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>(); }; }