[Rivet-svn] rivet: LEP weights and booking conversion

Rivet Mercurial rivet at projects.hepforge.org
Tue Sep 12 13:45:02 BST 2017


details:   https://rivet.hepforge.org/hg/rivet/rev/a89fd9109ac8
branches:  multiweight
changeset: 6017:a89fd9109ac8
user:      David Grellscheid <david.grellscheid at durham.ac.uk>
date:      Tue Sep 12 13:31:17 2017 +0100
description:
LEP weights and booking conversion

diffs (truncated from 3146 to 50 lines):

--- a/analyses/pluginLEP/ALEPH_1991_S2435284.cc	Tue Sep 12 11:59:34 2017 +0100
+++ b/analyses/pluginLEP/ALEPH_1991_S2435284.cc	Tue Sep 12 13:31:17 2017 +0100
@@ -35,7 +35,7 @@
       const FinalState& cfs = apply<FinalState>(event, "CFS");
       MSG_DEBUG("Total charged multiplicity = " << cfs.size());
       _histChTot->fill(cfs.size());
-      _histAver->fill(_histAver->bin(0).xMid(),cfs.size()*1.0);
+      _histAver->fill(_histAver->bin(0).xMid(),cfs.size());
     }
 
 
--- a/analyses/pluginLEP/ALEPH_1995_I382179.cc	Tue Sep 12 11:59:34 2017 +0100
+++ b/analyses/pluginLEP/ALEPH_1995_I382179.cc	Tue Sep 12 13:31:17 2017 +0100
@@ -44,9 +44,6 @@
       }
       MSG_DEBUG("Passed ncharged cut");
 
-      // Get event weight for histo filling
-      const double weight = 1.0;
-
       // Get beams and average beam momentum
       const ParticlePair& beams = apply<Beam>(event, "Beams").beams();
       const double meanBeamMom = ( beams.first.p3().mod() + beams.second.p3().mod() ) / 2.0;
@@ -56,11 +53,11 @@
 	int id = p.abspid();
 	// charged pions
 	if (id == PID::PIPLUS || id == PID::PIMINUS) {
-	  _histXpPion->fill(p.p3().mod()/meanBeamMom, weight);
+	  _histXpPion->fill(p.p3().mod()/meanBeamMom);
 	} else if(id == PID::KPLUS || id == PID::KMINUS) {
-	  _histXpKaon->fill(p.p3().mod()/meanBeamMom, weight);
+	  _histXpKaon->fill(p.p3().mod()/meanBeamMom);
 	} else if(id == PID::PROTON || id == PID::ANTIPROTON) {
-	  _histXpProton->fill(p.p3().mod()/meanBeamMom, weight);
+	  _histXpProton->fill(p.p3().mod()/meanBeamMom);
 	}
       }
 
--- a/analyses/pluginLEP/ALEPH_1996_S3196992.cc	Tue Sep 12 11:59:34 2017 +0100
+++ b/analyses/pluginLEP/ALEPH_1996_S3196992.cc	Tue Sep 12 13:31:17 2017 +0100
@@ -61,17 +61,15 @@
 
       const FastJets& durjet = apply<FastJets>(event, "DurhamJets");
 
-
-      const double weight = 1.0;
       for (const Particle& photon : photons) {
 
         PseudoJets jets_001 = durjet.clusterSeq()->exclusive_jets_ycut(0.01);
         for (const fastjet::PseudoJet& jet : jets_001) {


More information about the Rivet-svn mailing list