Look up absolute attenuation constants. More...
#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-18/Calibrator/func/AbsCache.h"
Classes | |
struct | Record |
Public Member Functions | |
AbsCache () | |
virtual | ~AbsCache () |
double | GetPECorrToGeVScale (novadaq::cnv::DetId det, int diblock, bool isData) |
void | SetCSVSource (const std::string &src) |
void | UseCSVsFromUPS (bool use=true) |
void | SetTag (const std::string &tag) |
void | SetGainSetting (int g) |
int | GainSetting () |
void | Reinit () |
void | SetUseEpochs (bool b) |
bool | UseEpochs () |
void | SetEpoch (const std::string &epoch) |
void | SetEpochTag (const std::string &tag) |
std::string | Epoch () |
std::string | EpochTag () |
void | GetEpochFromDB (int idet, bool isData) |
void | ReadEpochsFromCSV (bool readEpochs=true) |
void | SetRun (int run) |
int | Run () |
Protected Member Functions | |
void | LoadFromVldDatabase (novadaq::cnv::DetId det, bool isData) |
Protected Attributes | |
bool | fUseEpochs |
int | fRun |
std::string | fCSVSource |
bool | fUseCSVsFromUPS |
int | fGainSetting |
std::string | fTag |
std::string | fEpoch |
std::string | fEpochTag |
bool | fReadEpochsFromCSV |
bool | fInitializedData |
Whether we have (attempted to) read from db or csv yet. More... | |
bool | fInitializedMC |
std::map< int, Record > | fRecordsData |
Map is from diblock number. More... | |
std::map< int, Record > | fRecordsMC |
Map is from diblock number. More... | |
Look up absolute attenuation constants.
Definition at line 16 of file AbsCache.h.
calib::AbsCache::AbsCache | ( | ) |
Definition at line 22 of file AbsCache.cxx.
|
virtual |
Definition at line 29 of file AbsCache.cxx.
|
inline |
|
inline |
|
inline |
Definition at line 33 of file AbsCache.h.
References fGainSetting.
Referenced by calib::Calibrator::postBeginRun().
Definition at line 155 of file AbsCache.cxx.
References ana::assert(), nova::dbi::Row::Col(), fEpoch, fEpochTag, fRun, nova::dbi::Column::Get(), nova::dbi::Table::GetColIndex(), nova::dbi::Table::GetRow(), nova::dbi::kDataOnly, nova::dbi::kMCOnly, nova::dbi::Table::Load(), nova::dbi::Table::NRow(), nova::dbi::Table::SetDataTypeMask(), nova::dbi::Table::SetDetector(), nova::dbi::Table::SetMaxTSVld(), nova::dbi::Table::SetMinTSVld(), and nova::dbi::Table::SetTag().
Referenced by EpochTag(), and LoadFromVldDatabase().
double calib::AbsCache::GetPECorrToGeVScale | ( | novadaq::cnv::DetId | det, |
int | diblock, | ||
bool | isData | ||
) |
Definition at line 34 of file AbsCache.cxx.
References fRecordsData, fRecordsMC, it, LoadFromVldDatabase(), calib::AbsCache::Record::meu, calib::AbsCache::Record::meuGeV, and rec.
Referenced by calib::Calibrator::GetPECorrToGeVScale().
|
protected |
Definition at line 49 of file AbsCache.cxx.
References ana::assert(), om::cerr, nova::dbi::Row::Channel(), nova::dbi::Row::Col(), geo2elec::diblock, allTimeWatchdog::endl, fCSVSource, fEpoch, fGainSetting, fInitializedData, fInitializedMC, genie::utils::style::Format(), fReadEpochsFromCSV, fRecordsData, fRecordsMC, fRun, fTag, fUseCSVsFromUPS, fUseEpochs, nova::dbi::Column::Get(), nova::dbi::Table::GetColIndex(), calib::getCSVFilenameByParsingDirectory(), calib::getDetString(), cet::getenv(), GetEpochFromDB(), novadaq::cnv::DetInfo::GetName(), nova::dbi::Table::GetRow(), nova::dbi::kDataOnly, nova::dbi::kMCOnly, nova::dbi::Table::Load(), nova::dbi::Table::LoadFromCSV(), calib::AbsCache::Record::meu, calib::AbsCache::Record::meuErr, calib::AbsCache::Record::meuGeV, nova::dbi::Table::NRow(), rec, check_grl::row, nova::dbi::Table::SetDataTypeMask(), nova::dbi::Table::SetDetector(), nova::dbi::Table::SetMaxTSVld(), nova::dbi::Table::SetMinTSVld(), nova::dbi::Table::SetTag(), nova::dbi::Table::SetVerbosity(), and string.
Referenced by GetPECorrToGeVScale().
|
inline |
Definition at line 55 of file AbsCache.h.
References fReadEpochsFromCSV.
Referenced by calib::Calibrator::Calibrator().
|
inline |
Definition at line 35 of file AbsCache.h.
References fInitializedData, fInitializedMC, fRecordsData, and fRecordsMC.
Referenced by calib::Calibrator::postBeginRun().
|
inline |
|
inline |
Definition at line 26 of file AbsCache.h.
References fCSVSource.
Referenced by calib::Calibrator::Calibrator().
|
inline |
Definition at line 47 of file AbsCache.h.
References fEpoch.
Referenced by calib::Calibrator::postBeginRun().
|
inline |
Definition at line 48 of file AbsCache.h.
References fEpochTag, and getGoodRuns4SAM::tag.
Referenced by calib::Calibrator::Calibrator().
Definition at line 32 of file AbsCache.h.
References fGainSetting, and MECModelEnuComparisons::g.
Referenced by calib::Calibrator::postBeginRun().
Definition at line 57 of file AbsCache.h.
References fRun, and updateRunHistoryTables::run.
Referenced by calib::Calibrator::postBeginRun().
|
inline |
Definition at line 30 of file AbsCache.h.
References fTag, and getGoodRuns4SAM::tag.
Referenced by calib::Calibrator::Calibrator().
|
inline |
Definition at line 43 of file AbsCache.h.
References b, and fUseEpochs.
Referenced by calib::Calibrator::Calibrator().
|
inline |
Definition at line 28 of file AbsCache.h.
References fUseCSVsFromUPS.
Referenced by calib::Calibrator::Calibrator().
|
inline |
Definition at line 45 of file AbsCache.h.
References fUseEpochs.
Referenced by calib::Calibrator::postBeginRun().
|
protected |
Definition at line 72 of file AbsCache.h.
Referenced by LoadFromVldDatabase(), and SetCSVSource().
|
protected |
Definition at line 76 of file AbsCache.h.
Referenced by Epoch(), GetEpochFromDB(), LoadFromVldDatabase(), and SetEpoch().
|
protected |
Definition at line 77 of file AbsCache.h.
Referenced by EpochTag(), GetEpochFromDB(), and SetEpochTag().
|
protected |
Definition at line 74 of file AbsCache.h.
Referenced by GainSetting(), LoadFromVldDatabase(), and SetGainSetting().
|
protected |
Whether we have (attempted to) read from db or csv yet.
Definition at line 83 of file AbsCache.h.
Referenced by LoadFromVldDatabase(), and Reinit().
|
protected |
Definition at line 84 of file AbsCache.h.
Referenced by LoadFromVldDatabase(), and Reinit().
|
protected |
Definition at line 79 of file AbsCache.h.
Referenced by LoadFromVldDatabase(), and ReadEpochsFromCSV().
Map is from diblock number.
Definition at line 86 of file AbsCache.h.
Referenced by GetPECorrToGeVScale(), LoadFromVldDatabase(), and Reinit().
Map is from diblock number.
Definition at line 87 of file AbsCache.h.
Referenced by GetPECorrToGeVScale(), LoadFromVldDatabase(), and Reinit().
|
protected |
Definition at line 71 of file AbsCache.h.
Referenced by GetEpochFromDB(), LoadFromVldDatabase(), Run(), and SetRun().
|
protected |
Definition at line 75 of file AbsCache.h.
Referenced by LoadFromVldDatabase(), and SetTag().
|
protected |
Definition at line 73 of file AbsCache.h.
Referenced by LoadFromVldDatabase(), and UseCSVsFromUPS().
|
protected |
Definition at line 70 of file AbsCache.h.
Referenced by LoadFromVldDatabase(), SetUseEpochs(), and UseEpochs().