#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 |
||
) |
TPedValues::TPedValues | ( | const TPedValues & | orig | ) |
copy ctor
Definition at line 27 of file TPedValues.cc.
References endcapCrystalNumbers, i, LogDebug, m_bestPedestal, m_entries, and m_RMSmax.
TPedValues::~TPedValues | ( | ) |
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.
References TSinglePedEntry::average(), PDRates::average, ecalMGPA::gainId(), m_entries, and runEdmFileComparison::returnCode.
int TPedValues::getCrystalNumber | ( | int | xtal | ) | const |
return the index from the table
Definition at line 277 of file TPedValues.cc.
References endcapCrystalNumbers.
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.
References endcapCrystalNumbers, TSinglePedEntry::insert(), m_entries, and hitfit::return.
Referenced by BeautifulSoup.PageElement::_invert().
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.
References TSinglePedEntry::average(), PDRates::average, endcapCrystalNumbers, m_entries, mergeVDriftHistosByStation::name, TSinglePedEntry::RMS(), and plotscripts::rms().
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.
References TSinglePedEntry::average(), PDRates::average, delta, endcapCrystalNumbers, ecalMGPA::gainId(), m_bestPedestal, TPedResult::m_DACvalue, m_entries, and m_RMSmax.
|
private |
Definition at line 59 of file TPedValues.h.
Referenced by getCrystalNumber(), insert(), makePlots(), terminate(), and TPedValues().
|
private |
Definition at line 56 of file TPedValues.h.
Referenced by terminate(), and TPedValues().
|
private |
Definition at line 54 of file TPedValues.h.
Referenced by checkEntries(), insert(), makePlots(), terminate(), and TPedValues().
|
private |
Definition at line 57 of file TPedValues.h.
Referenced by terminate(), and TPedValues().