|
[Rivet-svn] r2908 - trunk/src/Analysesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Feb 2 11:07:22 GMT 2011
Author: fsiegert Date: Wed Feb 2 11:07:21 2011 New Revision: 2908 Log: Fix for crash in ATLAS_2010_S8817804: Histograms don't start at d00-x01-y01 but at d01-x01-y01. Modified: trunk/src/Analyses/ATLAS_2010_S8817804.cc Modified: trunk/src/Analyses/ATLAS_2010_S8817804.cc ============================================================================== --- trunk/src/Analyses/ATLAS_2010_S8817804.cc Tue Feb 1 14:07:48 2011 (r2907) +++ trunk/src/Analyses/ATLAS_2010_S8817804.cc Wed Feb 2 11:07:21 2011 (r2908) @@ -41,17 +41,17 @@ size_t ptDsOffset(0), massDsOffset(10), chiDsOffset(20); for (size_t alg = 0; alg < 2; ++alg) { for (size_t i = 0; i < 5; ++i) { - _pThistos[alg].addHistogram(ybins[i], ybins[i+1], bookHistogram1D(i + ptDsOffset, 1, 1)); + _pThistos[alg].addHistogram(ybins[i], ybins[i+1], bookHistogram1D(i + 1 + ptDsOffset, 1, 1)); } ptDsOffset += 5; for (size_t i = 0; i < 5; ++i) { - _massVsY[alg].addHistogram(ybins[i], ybins[i+1], bookHistogram1D(i + massDsOffset, 1, 1)); + _massVsY[alg].addHistogram(ybins[i], ybins[i+1], bookHistogram1D(i + 1 + massDsOffset, 1, 1)); } massDsOffset += 5; for (size_t i = 0; i < 3; ++i) { - _chiVsMass[alg].addHistogram(massBinsForChi[i], massBinsForChi[i+1], bookHistogram1D(i + chiDsOffset, 1, 1)); + _chiVsMass[alg].addHistogram(massBinsForChi[i], massBinsForChi[i+1], bookHistogram1D(i + 1 + chiDsOffset, 1, 1)); } chiDsOffset += 3; } @@ -100,13 +100,9 @@ void finalize() { for (size_t alg = 0; alg < 2; ++alg) { - //cout << 0 << endl; _pThistos[alg].scale(crossSectionPerEvent()/picobarn, this); - //cout << 1 << endl; _massVsY[alg].scale(crossSection()/_sumW/picobarn, this); - //cout << 2 << endl; _chiVsMass[alg].scale(crossSection()/_sumW/picobarn, this); - //cout << 3 << endl; } }
More information about the Rivet-svn mailing list |