FoverNHistos.cxx File Reference

#include "MessageService/MsgService.h"
#include "NtupleUtils/NuCutter.h"
#include "NtupleUtils/NuEvent.h"
#include "NtupleUtils/NuInputEvents.h"
#include "NtupleUtils/NuLibrary.h"
#include "NtupleUtils/NuXMLConfig.h"
#include "NtupleUtils/NuOscProb.h"
#include "NtupleUtils/Sterile/FoverNHistos.h"
#include "TH2D.h"
#include "TH3D.h"
#include "TMath.h"
#include "Conventions/Munits.h"

Go to the source code of this file.

Functions

 CVSID ("$Id: FoverNHistos.cxx,v 1.26 2015/02/10 00:16:53 ashley90 Exp $")
void addbins (double *bins, int &n_bins, double step, double max)

Function Documentation

void addbins ( double *  bins,
int &  n_bins,
double  step,
double  max 
)

Definition at line 339 of file FoverNHistos.cxx.

Referenced by FoverNHistos::CreateHistograms().

00340 {
00341     for(double d = bins[n_bins]+step; d < max+step/2.0; d += step) {
00342       n_bins++;
00343       bins[n_bins] = d;
00344     }
00345 }

CVSID ( "$Id: FoverNHistos.  cxx,
v 1.26 2015/02/10 00:16:53 ashley90 Exp $"   
)
Id
FoverNHistos.cxx,v 1.26 2015/02/10 00:16:53 ashley90 Exp

A class to loop over DSTs and apply selection criteria for the 2012 Sterile analysis. Creates histograms of the total energy spectra, and spectra for CC- and NC-selected events separately. If MC DSTs are supplied, also creates Reco-vs-True matrices for each of 5 categories of events: true NC, true CC numu, beam nue, appeared nue, and appeared nutau. These matrices are created for CC- and NC-selected events as well.

mmathis@fnal.gov, evansj@hep.ucl.ac.uk


Generated on 15 Jul 2018 for loon by  doxygen 1.6.1