[Rivet] [Rivet-svn] r2908 - trunk/src/Analyses

Frank Siegert frank.siegert at cern.ch
Wed Feb 2 12:35:40 GMT 2011


Stupid question: How was this analysis VALIDATED given that it always 
crashed?
I'm asking to find out whether it is indeed somehow validated or whether 
validation is still necessary, because I wanted to use it.

Cheers,
Frank

On 02/02/11 12:07, blackhole at projects.hepforge.org wrote:
> 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;
>         }
>       }
>
> _______________________________________________
> Rivet-svn mailing list
> Rivet-svn at projects.hepforge.org
> http://www.hepforge.org/lists/listinfo/rivet-svn


More information about the Rivet mailing list