MCalSimulationReader Class Reference
[Readers]

Inheritance diagram for MCalSimulationReader:

QFileReader QReader QBaseModule

List of all members.


Detailed Description

Reader for simulated calibration data.

Author:
Laura Kogler Reads in energies output by Monte Carlo; adds random offsets to simulate detector resolution; converts from energy to amplitude.
Default behavior is to save both the raw MC energy and the resolution-adjusted energy in the AuxData under the names MCRawEnergy and MCAdjustedEnergy. However, you can choose to save either the raw energy or the adjusted energy in fCalib.fEnergy.

The converted amplitude is saved in fStab.fAmplitude.


Public Member Functions

 MCalSimulationReader (QSequence *s)
 constructor
 ~MCalSimulationReader ()
 destructor
void Open (const std::string &filename)
 Open file.
QEventFill (QEvent *ev)
 fill event, return NULL if file is finished
void Close ()
 Close file.

Private Attributes

TFile * fFile
 File to read.
TTree * fTree
 Data tree from input file.
TF1 * fCalFunction
 Function used for calibration.
std::map< int, double * > fParams
 Map of calibration parameters for each channel.
double fResolution
 Resolution at 2615 keV.
double fSlope
 Slope parameter to vary resolution with energy.
std::string fRawEnergyVarName
 Variable name to store raw energy in AuxData.
std::string fAdjEnergyVarName
 Variable name to store resolution-adjusted energy in AuxData.
bool fSaveRawEnergyInEvent
 Should we save energy in fCalib event structure?
bool fSaveAdjEnergyInEvent
int fRunNumber
 Run number.
TF1 * fResolutionFunction
 Function to simulate detector energy resolution.
int fOnlyTower
 Number of tower to read.
int fTower
 Variables in input tree.
int fLayer
int fCrystal
double fEnergy
double fTime

The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:01 2010 for CUORE Software by  doxygen 1.5.6