LightYieldGraph Class Reference
[daqroot - ROOT environment plus extra classes/functions]

Class to generate a scaled/calibrated plot of light yield vs time. More...

#include <LightYield.hh>

List of all members.

Public Member Functions

 LightYieldGraph ()
 Default constructor does nothing.
int AddRun (int run, double epeak, int nbins=200, double emin=1000, double emax=2500)
 Add a run by run number.
int AddRuns (const std::vector< int > &runs, double epeak, int nbins=200, double emin=1000, double emax=2500)
 Add a vector of runs by number.
int AddFile (const char *filename, double epeak, int nbins=200, double emin=1000, double emax=2500)
 Add a run by filename.
int SetAliasesFromLocalData (TTree *Events, bool draw=false)
 Find the peak of the single photoelectron distribution using in-run data.
TH1 * DrawSpectrum (const char *filename, int nbins=200, double xmin=0, double xmax=4500)
 Draw a spectrum up to ~1.2 MeV.
TGraphErrors * DrawGraph ()
 Produce the graph for all the runs defined so far.
TGraphErrors * DrawChannelSpeGraph (int channel)
 Make a graph of the spe mean for a channel vs time.
 ClassDef (LightYieldGraph, 1)

Static Public Member Functions

static int FitPhotopeak (TH1 *h, double epeak, double &yield, double &yield_err)
 Fit the spectrum in h with a peak at energy epeak, return yield+/-yield_err.

Private Attributes

std::vector< double > _x
std::vector< double > _y
std::vector< double > _ex
std::vector< double > _ey
 arrays/errors for each axis
std::map< int, std::vector
< double > > 
_chan_spe
 single pe mean per chan
std::map< int, std::vector
< double > > 
_chan_spe_err
 spe error per chann
TH1 * histo
 spectrum for a single run

Detailed Description

Class to generate a scaled/calibrated plot of light yield vs time.

Definition at line 25 of file LightYield.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 20 Jun 2014 for daqman by  doxygen 1.6.1