#include <TPedValues.h>
Public Member Functions | |
int | checkEntries (const int &DACstart=0, const int &DACend=256) const |
check whether the scan was complete in the range More... | |
int | getCrystalNumber (int xtal) const |
return the index from the table More... | |
void | insert (const int gainId, const int crystal, const int DAC, const int pedestal, const int endcapIndex) |
add a single value More... | |
int | makePlots (TFile *rootFile, const std::string &dirName, const double maxSlopeAllowed, const double minSlopeAllowed, const double maxChi2OverNDF) const |
create a plot of the DAC pedestal trend More... | |
TPedResult | terminate (const int &DACstart=0, const int &DACend=256) const |
calculate the offset values for all the containers More... | |
TPedValues (double RMSmax=2, int bestPedestal=200) | |
ctor More... | |
TPedValues (const TPedValues &orig) | |
copy ctor More... | |
~TPedValues () | |
dtor More... | |
Private Attributes | |
int | endcapCrystalNumbers [1700] |
int | m_bestPedestal |
TSinglePedEntry | m_entries [3][1700][256] |
double | m_RMSmax |
Definition at line 19 of file TPedValues.h.
TPedValues::TPedValues | ( | double | RMSmax = 2 , |
int | bestPedestal = 200 |
||
) |
ctor
Definition at line 17 of file TPedValues.cc.
TPedValues::TPedValues | ( | const TPedValues & | orig | ) |
copy ctor
Definition at line 27 of file TPedValues.cc.
TPedValues::~TPedValues | ( | ) |
dtor
Definition at line 44 of file TPedValues.cc.
int TPedValues::checkEntries | ( | const int & | DACstart = 0 , |
const int & | DACend = 256 |
||
) | const |
check whether the scan was complete in the range
loop over gains
loop over crystals
loop over DAC values
do something!
loop over DAC values
Definition at line 135 of file TPedValues.cc.
int TPedValues::getCrystalNumber | ( | int | xtal | ) | const |
return the index from the table
Definition at line 277 of file TPedValues.cc.
void TPedValues::insert | ( | const int | gainId, |
const int | crystal, | ||
const int | DAC, | ||
const int | pedestal, | ||
const int | endcapIndex | ||
) |
add a single value
Definition at line 47 of file TPedValues.cc.
int TPedValues::makePlots | ( | TFile * | rootFile, |
const std::string & | dirName, | ||
const double | maxSlopeAllowed, | ||
const double | minSlopeAllowed, | ||
const double | maxChi2OverNDF | ||
) | const |
create a plot of the DAC pedestal trend
Definition at line 178 of file TPedValues.cc.
TPedResult TPedValues::terminate | ( | const int & | DACstart = 0 , |
const int & | DACend = 256 |
||
) | const |
calculate the offset values for all the containers
loop over gains
loop over crystals
find the DAC value with the average pedestal nearest to 200
loop over DAC values
loop over DAC values
Definition at line 83 of file TPedValues.cc.
|
private |
Definition at line 59 of file TPedValues.h.
|
private |
Definition at line 56 of file TPedValues.h.
|
private |
Definition at line 54 of file TPedValues.h.
|
private |
Definition at line 57 of file TPedValues.h.