#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 16 of file TPedValues.cc.
References endcapCrystalNumbers, mps_fire::i, and LogDebug.
TPedValues::TPedValues | ( | const TPedValues & | orig | ) |
copy ctor
Definition at line 22 of file TPedValues.cc.
References endcapCrystalNumbers, cms::cuda::for(), PedestalClient_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 112 of file TPedValues.cc.
References cms::cuda::assert(), TSinglePedEntry::average(), ecalLiteDTU::gainId(), m_entries, and runEdmFileComparison::returnCode.
int TPedValues::getCrystalNumber | ( | int | xtal | ) | const |
return the index from the table
Definition at line 247 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 38 of file TPedValues.cc.
References endcapCrystalNumbers, ecalLiteDTU::gainId(), TSinglePedEntry::insert(), m_entries, and EcalCondDBWriter_cfi::pedestal.
Referenced by SequenceTypes.Schedule::_replaceIfHeldDirectly().
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 151 of file TPedValues.cc.
References TSinglePedEntry::average(), TrackerOfflineValidation_Dqm_cff::dirName, endcapCrystalNumbers, PedestalClient_cfi::gain, createfilelist::int, m_entries, Skims_PA_cff::name, TSinglePedEntry::RMS(), SiStripPI::rms, beamSpotPI::sigmaX, and beamSpotPI::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 63 of file TPedValues.cc.
References cms::cuda::assert(), TSinglePedEntry::average(), dumpMFGeometry_cfg::delta, endcapCrystalNumbers, ecalLiteDTU::gainId(), m_bestPedestal, TPedResult::m_DACvalue, m_entries, and m_RMSmax.
|
private |
Definition at line 56 of file TPedValues.h.
Referenced by getCrystalNumber(), insert(), makePlots(), terminate(), and TPedValues().
|
private |
Definition at line 52 of file TPedValues.h.
Referenced by terminate(), and TPedValues().
|
private |
Definition at line 50 of file TPedValues.h.
Referenced by checkEntries(), insert(), makePlots(), terminate(), and TPedValues().
|
private |
Definition at line 53 of file TPedValues.h.
Referenced by terminate(), and TPedValues().