#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.
References endcapCrystalNumbers, mps_fire::i, and LogDebug.
TPedValues::TPedValues | ( | const TPedValues & | orig | ) |
copy ctor
Definition at line 27 of file TPedValues.cc.
References endcapCrystalNumbers, muonCSCDigis_cfi::gain, mps_fire::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(), 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 reco::return().
Referenced by BeautifulSoup.PageElement::append().
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(), endcapCrystalNumbers, muonCSCDigis_cfi::gain, createfilelist::int, m_entries, dataset::name, RecoTauDiscriminantConfiguration::rms, TSinglePedEntry::RMS(), fftjetvertexadder_cfi::sigmaX, and fftjetvertexadder_cfi::sigmaY.
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(), 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().