|
[Rivet-svn] r2120 - in trunk: . src/Analysesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Dec 1 14:30:45 GMT 2009
Author: hoeth Date: Tue Dec 1 14:30:45 2009 New Revision: 2120 Log: Fixing trigger efficiency in CDF_2009_S8233977 Modified: trunk/ChangeLog trunk/src/Analyses/CDF_2009_S8233977.cc Modified: trunk/ChangeLog ============================================================================== --- trunk/ChangeLog Tue Dec 1 08:41:53 2009 (r2119) +++ trunk/ChangeLog Tue Dec 1 14:30:45 2009 (r2120) @@ -1,3 +1,7 @@ +2009-12-01 Hendrik Hoeth <hendrik.hoeth at cern.ch> + + * Fixing trigger efficiency in CDF_2009_S8233977 + 2009-11-30 Andy Buckley <andy at insectnation.org> * Using shared pointers to make I/O object memory management Modified: trunk/src/Analyses/CDF_2009_S8233977.cc ============================================================================== --- trunk/src/Analyses/CDF_2009_S8233977.cc Tue Dec 1 08:41:53 2009 (r2119) +++ trunk/src/Analyses/CDF_2009_S8233977.cc Tue Dec 1 14:30:45 2009 (r2120) @@ -28,7 +28,8 @@ /// Constructor CDF_2009_S8233977() - : Analysis("CDF_2009_S8233977") + : Analysis("CDF_2009_S8233977"), + _sumWeightSelected(0.0) { setBeams(PROTON, ANTIPROTON); setNeedsCrossSection(true); @@ -103,14 +104,17 @@ sumEt += p.momentum().Et(); } _hist_sumEt->fill(sumEt, weight); + _sumWeightSelected += evt.weight(); } /// Normalize histos void finalize() { - scale(_hist_sumEt, crossSection()/millibarn/(4*M_PI*sumOfWeights())); - scale(_hist_pt, crossSection()/millibarn/sumOfWeights()); + scale(_hist_sumEt, crossSection()/millibarn/(4*M_PI*_sumWeightSelected)); + scale(_hist_pt, crossSection()/millibarn/_sumWeightSelected); + getLog() << Log::DEBUG << "sumOfWeights() = " << sumOfWeights() << std::endl; + getLog() << Log::DEBUG << "_sumWeightSelected = " << _sumWeightSelected << std::endl; } //@} @@ -118,6 +122,7 @@ private: + double _sumWeightSelected; AIDA::IProfile1D *_hist_pt_vs_multiplicity; AIDA::IHistogram1D *_hist_pt; AIDA::IHistogram1D *_hist_sumEt;
More information about the Rivet-svn mailing list |