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.
reader CalSimulationReader verbosity = info enable = true ReadFilesList = false InputFilesList = /Users/Elena/cuore/cfg/ntp.list InputFileName = /data/simulation1.root OnlyTower = 10 Resolution = 5.0 ResolutionSlope = 0.0 CalibrationFile = calibration.txt RawEnergyVarName = MCEnergy AdjustedEnergyVarName = MCAdjustedEnergy SaveRawEnergyInEvent = false SaveAdjEnergyInEvent = false RunNumber = 3 endmod
Public Member Functions | |
MCalSimulationReader (QSequence *s) | |
constructor | |
~MCalSimulationReader () | |
destructor | |
void | Open (const std::string &filename) |
Open file. | |
QEvent * | Fill (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 |