#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-18/Calibrator/art/Calibrator.h"
Public Types | |
using | Parameters = art::ServiceTable< CalibratorParams > |
Public Member Functions | |
Calibrator (const Parameters ¶ms, art::ActivityRegistry ®) | |
~Calibrator () | |
void | preEvent (art::Event const &evt) |
void | postBeginRun (art::Run const &run) |
void | postBeginSubRun (art::SubRun const &subrun) |
TTimeStamp | GetTimeStamp () const |
rb::CellHit | MakeCellHit (const rawdata::RawDigit *rawdigit) |
float | GetPE (rb::CellHit const &) |
float | GetPE (const rawdata::RawDigit *rawdigit) |
float | GetTNS (const rawdata::RawDigit *rawdigit, bool &goodTime, double *maxadc=0) |
rb::RecoHit | MakeRecoHit (rb::CellHit const &cellhit, double w) |
rb::RecoHit | MakeRecoHit (rb::CellHit const &cellhit, double *xyz) |
double | GetT (rb::CellHit const &cellhit, double const &dist_to_readout) |
double | GetPECorr (rb::CellHit const &cellhit, double w) |
double | GetTimeRes (rb::CellHit const &cellhit) |
double | GetAttenScale (rb::CellHit const &cellhit, double w) |
for PE->PECorr conversion More... | |
double | GetAttenScale (const calib::AttenCurve *curve, double const &minW, double const &maxW, double &w) |
double | GetDriftScale (rb::CellHit const &cellhit) |
Part of the PE->PECorr conversion. More... | |
double | GetPECorrToGeVScale (rb::CellHit const &cellhit) |
double | GetGeVToMIPScale (rb::CellHit const &cellhit) |
For GeV->MIP conversion. More... | |
double | GetGeVToCalorimetricScale () const |
For use by RecoBase classes. More... | |
double | GetShowerEnergy (TVector3 const &start, TVector3 const &stop, double const &totalGeV) |
Estimate of true shower energy, adapted from RecoJMShower. More... | |
bool | GetAttenCurve (int const &plane, int const &cell, bool const &is_realdata, const calib::AttenCurve *&, double &minW, double &maxW) const |
double | GetTimingOffset (unsigned int const &plane, unsigned int const &cell, bool const &isData) |
Get the timing offset for a given plane, cell. Useful downstream to check calibration. More... | |
double | SystematicUncertaintyScale (geo::View_t const &view, unsigned short const &plane, double const &w) |
calib::EFEBType | getFebType (novadaq::cnv::DetId det, const rawdata::RawDigit *dig) |
std::string | GetAttenCSVPath () |
std::string | GetAbsConstsCSVPath () |
std::string | GetTimingConstsCSVPath () |
std::string | GetDriftConstsCSVPath () |
CalibratorParams | GetCalibratorParams () |
Protected Attributes | |
CalibratorParams | fParams |
Private Member Functions | |
rb::RecoHit | MakeRecoHit (rb::CellHit const &cellhit, double &w, double *xyz) |
Helper function for the two public MakeRecoHit methods. More... | |
void | EnsureTimingCacheVldTime () |
double | GetAdcPerPE (const rawdata::RawDigit *dig) |
Helper function for GetPE() More... | |
float | GetPE (rb::CellHit const &, const double peakadc) |
Get PE when we have already calculated the peakadc through a call to GetTNS. More... | |
float | GetPE (const rawdata::RawDigit *rawdigit, const double peakadc) |
Definition at line 272 of file Calibrator.h.
Definition at line 275 of file Calibrator.h.
calib::Calibrator::Calibrator | ( | const Parameters & | params, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 41 of file Calibrator_service.cc.
References calib::CalibratorParams::AbsConstsCSVPath, calib::CalibratorParams::AbsEpochTag, calib::CalibratorParams::CalibrationMode, calib::CalibratorParams::DriftConstsCSVPath, calib::CalibratorParams::DriftCSV, calib::CalibratorParams::DriftEpochTag, fAbsCache, fCalibrateMode, fDriftCache, fGain, cet::search_path::find_file(), fParams, fShapeTableFilenameFDData, fShapeTableFilenameFDMC, fShapeTableFilenameNDData, fShapeTableFilenameNDMC, fTag, fTimingCache, calib::CalibratorParams::Gain, fhicl::ParameterSet::get(), art::ServiceTable< T >::get_PSet(), postBeginRun(), postBeginSubRun(), preEvent(), calib::TimingCache::ReadEpochsFromCSV(), calib::AbsCache::ReadEpochsFromCSV(), calib::CalibratorParams::ReadEpochsFromCSV, calib::DriftCache::SetCSVFile(), calib::TimingCache::SetCSVSource(), calib::AbsCache::SetCSVSource(), calib::DriftCache::SetCSVSource(), calib::TimingCache::SetEpochTag(), calib::DriftCache::SetEpochTag(), calib::AbsCache::SetEpochTag(), calib::TimingCache::SetTag(), calib::AbsCache::SetTag(), calib::DriftCache::SetTag(), calib::TimingCache::SetUseEpochs(), calib::DriftCache::SetUseEpochs(), calib::AbsCache::SetUseEpochs(), art::ActivityRegistry::sPostBeginRun, art::ActivityRegistry::sPostBeginSubRun, art::ActivityRegistry::sPreProcessEvent, string, calib::CalibratorParams::Tag, calib::CalibratorParams::TimingConstsCSVPath, calib::CalibratorParams::TimingEpochTag, calib::CalibratorParams::TimingTag, calib::CalibratorParams::UseAbsEpochs, calib::TimingCache::UseCSVsFromUPS(), calib::AbsCache::UseCSVsFromUPS(), calib::DriftCache::UseCSVsFromUPS(), calib::CalibratorParams::UseCSVsFromUPS, calib::CalibratorParams::UseDriftEpochs, and calib::CalibratorParams::UseTimingEpochs.
calib::Calibrator::~Calibrator | ( | ) |
Definition at line 125 of file Calibrator_service.cc.
References plot_validation_datamc::c, fAbsCache, fAttenCacheData, fAttenCacheMC, fDriftCache, fShapeTable, fShapeTable5TB, fStatsNumAveraged, fStatsNumCalibrated, fStatsNumUncalibrated, fTimingCache, makeTrainCVSamples::int, and calib::ADCShapeFitTable::TableHitFraction().
|
private |
Definition at line 1002 of file Calibrator_service.cc.
References DEFINE_ART_SERVICE, geo::GeometryBase::DetId(), fGeom, fTimingCache, fTimingCacheVldTimeSet, rh, calib::TimingCache::SetVldTime(), nova::dbi::RunHistory::TStart(), and nova::dbi::RunHistory::TStop().
Referenced by GetTimingOffset(), and MakeCellHit().
|
inline |
Definition at line 386 of file Calibrator.h.
References cet::getenv().
Referenced by calib::CalibAna::endJob().
|
private |
Definition at line 420 of file Calibrator_service.cc.
References geo::GeometryBase::DetId(), fGain, fGeom, getFebType(), and calib::kFEB4p1.
Referenced by GetPE().
|
inline |
Definition at line 385 of file Calibrator.h.
References cet::getenv().
Referenced by calib::CalibAna::endJob().
bool calib::Calibrator::GetAttenCurve | ( | int const & | plane, |
int const & | cell, | ||
bool const & | is_realdata, | ||
const calib::AttenCurve *& | curve, | ||
double & | minW, | ||
double & | maxW | ||
) | const |
Given plane, cell and whether the data is real, get attenuation curve and Max w for the plane
Definition at line 850 of file Calibrator_service.cc.
References geo::PlaneGeo::Cell(), om::cerr, om::cout, geo::GeometryBase::DetId(), allTimeWatchdog::endl, fAttenCacheData, fAttenCacheMC, fFibBrightness, fGeom, geo::GeometryBase::FirstPlaneInMuonCatcher(), calib::AttenCache::ForData(), fParams, fTag, art::ServiceHandle< T, SCOPE >::get(), photrans::FiberBrightness::getBrightnessIndex(), geo::CellGeo::HalfL(), MECModelEnuComparisons::i, makeTrainCVSamples::int, calib::AttenCurve::IsCalibrated(), novadaq::cnv::kNEARDET, geo::kX, calib::CalibratorParams::MaskUncalibratedChannelsInMC, geo::GeometryBase::Plane(), and geo::PlaneGeo::View().
Referenced by calib::FindOutliers::endRun(), and GetAttenScale().
double calib::Calibrator::GetAttenScale | ( | rb::CellHit const & | cellhit, |
double | w | ||
) |
for PE->PECorr conversion
Definition at line 772 of file Calibrator_service.cc.
References rb::CellHit::Cell(), calib::CalibratorParams::CellByCellCalibRandomOffset, calib::CalibratorParams::CellByCellCalibRandomOffsetHighResolution, calib::CalibratorParams::CellByCellCalibRandomOffsetSeed, calib::AttenCurve::chan, fParams, fStatsNumAveraged, GetAttenCurve(), makeTrainCVSamples::int, rawdata::RawDigit::IsRealData(), geo::OfflineChan::Plane(), rb::CellHit::Plane(), scale, and calib::CalibratorParams::UseCellByCellCalibRandomOffset.
Referenced by calib::DriftResponseCalc::FillPeCorrHits(), GetPECorr(), and calib::AttenuationFit::writeResults().
double calib::Calibrator::GetAttenScale | ( | const calib::AttenCurve * | curve, |
double const & | minW, | ||
double const & | maxW, | ||
double & | w | ||
) |
Definition at line 814 of file Calibrator_service.cc.
References ana::assert(), geo::GeometryBase::DetId(), fGeom, fTag, novadaq::cnv::kFARDET, novadaq::cnv::kNDOS, novadaq::cnv::kNEARDET, novadaq::cnv::kTESTBEAM, extractScale::mean, and calib::AttenCurve::MeanPEPerCmAt().
|
inline |
|
inline |
Definition at line 388 of file Calibrator.h.
References cet::getenv().
Referenced by calib::CalibAna::endJob().
double calib::Calibrator::GetDriftScale | ( | rb::CellHit const & | cellhit | ) |
Part of the PE->PECorr conversion.
Definition at line 920 of file Calibrator_service.cc.
References rb::CellHit::Cell(), fDriftCache, fParams, calib::DriftCache::GetFactor(), rawdata::RawDigit::IsRealData(), rb::CellHit::Plane(), and calib::CalibratorParams::UseDrift.
Referenced by GetPECorr().
calib::EFEBType calib::Calibrator::getFebType | ( | novadaq::cnv::DetId | det, |
const rawdata::RawDigit * | dig | ||
) |
Definition at line 751 of file Calibrator_service.cc.
References ana::assert(), rawdata::RawDigit::DaqChannel(), febshutoff_auto::dcm, fCMap, daqchannelmap::DAQChannelMap::getDCM(), novadaq::cnv::kFARDET, calib::kFEB4p1, calib::kFEB5p2, novadaq::cnv::kNEARDET, novadaq::cnv::kTESTBEAM, and cmap::dataprov::CMap::Map().
Referenced by GetAdcPerPE(), GetTimeRes(), and GetTNS().
double calib::Calibrator::GetGeVToCalorimetricScale | ( | ) | const |
For use by RecoBase classes.
Conversion from TotalGeV to CalorimetricEnergy. Takes account of dead material and threshold effects in an averaged fashion. Makes no sense to apply to individual hits. You probably don't want to use this, you probably want to look at functions of your RecoBase object.
Definition at line 953 of file Calibrator_service.cc.
Referenced by rb::Cluster::CalorimetricEnergy().
double calib::Calibrator::GetGeVToMIPScale | ( | rb::CellHit const & | cellhit | ) |
For GeV->MIP conversion.
Definition at line 933 of file Calibrator_service.cc.
Referenced by MakeRecoHit().
float calib::Calibrator::GetPE | ( | rb::CellHit const & | ch | ) |
Definition at line 414 of file Calibrator_service.cc.
Referenced by calib::TestParticleCorrections::analyze(), GetPE(), and MakeCellHit().
float calib::Calibrator::GetPE | ( | const rawdata::RawDigit * | rawdigit | ) |
Definition at line 439 of file Calibrator_service.cc.
References GetAdcPerPE(), and GetTNS().
|
private |
Get PE when we have already calculated the peakadc through a call to GetTNS.
Definition at line 408 of file Calibrator_service.cc.
References GetPE().
|
private |
Definition at line 433 of file Calibrator_service.cc.
References GetAdcPerPE().
double calib::Calibrator::GetPECorr | ( | rb::CellHit const & | cellhit, |
double | w | ||
) |
Definition at line 699 of file Calibrator_service.cc.
References GetAttenScale(), GetDriftScale(), rb::CellHit::PE(), rb::CellHit::Plane(), scale, SystematicUncertaintyScale(), rb::CellHit::View(), and w.
Referenced by calib::MuondEdx::getPECorr(), calib::DetRespDrift::getPECorr(), calib::MuonTrackHits::getPECorr(), calib::MuondEdxAna::getPECorr(), calib::CalibAna::GetPECorr(), MakeRecoHit(), jmshower::JMTrackMerge::produce(), lem::GenFromLib::readNext(), and slid::NuEEnergyAlg::VertexEnergy().
double calib::Calibrator::GetPECorrToGeVScale | ( | rb::CellHit const & | cellhit | ) |
Definition at line 940 of file Calibrator_service.cc.
References rb::CellHit::Cell(), geo::GeometryBase::DetId(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), fAbsCache, fCMap, fGeom, daqchannelmap::DAQChannelMap::getDiBlock(), calib::AbsCache::GetPECorrToGeVScale(), rawdata::RawDigit::IsRealData(), cmap::dataprov::CMap::Map(), and rb::CellHit::Plane().
Referenced by calib::MuonTrackHits::getPECorrToGeV(), calib::MuondEdxAna::getPECorrToGeV(), calib::CalibAna::GetPECorrToMeV(), and MakeRecoHit().
double calib::Calibrator::GetShowerEnergy | ( | TVector3 const & | start, |
TVector3 const & | stop, | ||
double const & | totalGeV | ||
) |
Estimate of true shower energy, adapted from RecoJMShower.
Accounts for dead material and threshold effects that can't be done at the individual cell level. Pass in the TVectors and energy explicitly rather than the rb::Track object to avoid a circular dependency with RecoBase
Definition at line 965 of file Calibrator_service.cc.
double calib::Calibrator::GetT | ( | rb::CellHit const & | cellhit, |
double const & | dist_to_readout | ||
) |
Definition at line 645 of file Calibrator_service.cc.
References rb::CellHit::TNS().
Referenced by MakeRecoHit().
double calib::Calibrator::GetTimeRes | ( | rb::CellHit const & | cellhit | ) |
Definition at line 716 of file Calibrator_service.cc.
References geo::GeometryBase::DetId(), fGeom, getFebType(), rb::CellHit::GoodTiming(), calib::kFEB4p1, rb::CellHit::PE(), cet::pow(), and HandyFuncs::stdev().
Referenced by slicer::S4DParamCalc::analyze(), zcl::FmmTrackerAna::analyze(), zcl::FmmTrackerValidation::analyze(), slicer::SlicerAna::analyze(), tf::TimingFitAlg::HoughFit(), and slicer::Slicer4D::produce().
|
inline |
Definition at line 285 of file Calibrator.h.
References getBrightness::cell, fillBadChanDBTables::det, NDAPDHVSetting::plane, febshutoff_auto::start, POTSpillRate::view, and w.
|
inline |
Definition at line 387 of file Calibrator.h.
References cet::getenv().
Referenced by calib::CalibAna::endJob().
double calib::Calibrator::GetTimingOffset | ( | unsigned int const & | plane, |
unsigned int const & | cell, | ||
bool const & | isData | ||
) |
Get the timing offset for a given plane, cell. Useful downstream to check calibration.
Definition at line 979 of file Calibrator_service.cc.
References getBrightness::cell, geo::GeometryBase::DetId(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), EnsureTimingCacheVldTime(), fCMap, fCurrTimeStamp, fGeom, fParams, fTimingCache, daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), calib::TimingCache::GetOffset(), cmap::dataprov::CMap::Map(), PandAna.reco_validation.add_data::offset, NDAPDHVSetting::plane, and calib::CalibratorParams::UseTimingOffsets.
Referenced by calib::TimingCalibration::produce().
float calib::Calibrator::GetTNS | ( | const rawdata::RawDigit * | rawdigit, |
bool & | goodTime, | ||
double * | maxadc = 0 |
||
) |
goodTime | Did the timing fit go well? |
maxadc | Internal hook for use of GetPE |
Definition at line 454 of file Calibrator_service.cc.
References rawdata::RawDigit::ADC(), ana::assert(), om::cout, fillBadChanDBTables::det, geo::GeometryBase::DetId(), allTimeWatchdog::endl, fCalibrateMode, fGeom, plot_validation_datamc::fname, fShapeTable, fShapeTable5TB, fShapeTableFilenameFDData, fShapeTableFilenameFDMC, fShapeTableFilenameNDData, fShapeTableFilenameNDMC, getFebType(), daqdataformats::NanoSliceVersionConvention::getNPretriggeredSamples(), daqdataformats::NanoSliceVersionConvention::getNSamples(), rawdata::RawDigit::IsMC(), calib::kFEB4p1, calib::kFEB5p2, novadaq::cnv::kTESTBEAM, rawdata::RawDigit::NADC(), string, rawdata::RawDigit::TDC(), calib::ADCShapeFitTable::TNS(), and rawdata::RawDigit::Version().
Referenced by GetPE(), MakeCellHit(), and comi::Cana::produce().
rb::CellHit calib::Calibrator::MakeCellHit | ( | const rawdata::RawDigit * | rawdigit | ) |
Definition at line 361 of file Calibrator_service.cc.
References rawdata::RawDigit::ADC(), rb::CellHit::Cell(), geo::GeometryBase::DetId(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), EnsureTimingCacheVldTime(), rawdata::RawDigit::fADC, fCMap, fCurrTimeStamp, fGeom, fParams, fTimingCache, cmap::dataprov::CMap::GetCell(), daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), calib::TimingCache::GetOffset(), GetPE(), cmap::dataprov::CMap::GetPlane(), GetTNS(), rawdata::RawDigit::IsRealData(), calib::CalibratorParams::MakeSinglePointCellHits, cmap::dataprov::CMap::Map(), PandAna.reco_validation.add_data::offset, rb::CellHit::Plane(), geo::GeometryBase::Plane(), rawdata::RawDigit::SetADC(), rb::CellHit::SetCell(), rb::CellHit::SetPE(), rb::CellHit::SetPlane(), rb::CellHit::SetTNS(), rawdata::RawDigit::SetVersion(), rb::CellHit::SetView(), calib::CalibratorParams::UseTimingOffsets, and rawdata::RawDigit::Version().
Referenced by bsf::BremShowerFilter::filter(), MergeDaqCollections::MergeDaqCollections::produce(), calhit::CalHit::produce(), murem::MuonRemove::produce(), and lem::GenFromLib::readNext().
rb::RecoHit calib::Calibrator::MakeRecoHit | ( | rb::CellHit const & | cellhit, |
double | w | ||
) |
Definition at line 575 of file Calibrator_service.cc.
References calib::GetXYZD(), rb::CellHit::OfflineChan(), and w.
Referenced by calib::TestParticleCorrections::analyze(), mcchk::MonopoleAna::analyze(), calib::AssessCalib::analyze(), zcl::FmmTrackerAna::analyze(), zcl::FmmTrackerValidation::analyze(), rockmuon::NDRockMuon::analyze(), remid::ReMIdDedxRock::analyze(), remid::ReMIdDedxFD::analyze(), remid::ReMIdDedxStudies::analyze(), bpfit::BPFTmvaTrainer::analyze(), bpfit::BreakPointProtonAna::analyze(), ncs::Xeff::analyze(), ncs::ROCKMRE::analyze(), slid::LIDTraining::analyze(), ncs::NCAna::analyze(), fuzz::ViewMatchAlg::CalcEnergyProfile(), nerd::ViewMatchAlg::CalcEnergyProfile(), slid::NuEEnergyAlg::CellEnergy(), bpfit::dEdxCalculator::computeDEDX(), caf::FillHadClustVars(), caf::FillSliceVars(), jmshower::RecoJMShower::GetRVPStats(), slid::NuEEnergyAlg::HadronicDepEnergy(), rvp::RecVarPID::MakeRecoHit(), xnue::XnuePID::MakeRecoHit(), ncs::GenieTruth::MakeRecoHit(), ncs::Xbeam::MakeRecoHit(), ncs::Xeff::MakeRecoHit(), ncs::ROCKMRE::MakeRecoHit(), ncs::NCAna::MakeRecoHit(), MakeRecoHit(), nuesand::FillNueSandbox::produce(), lem::Preselection::produce(), presel::NuePresel::produce(), zcl::SMMCluster::produce(), zcl::FMMTracker::produce(), jmshower::NueSel::produce(), jmshower::NueSelLID::produce(), bpfit::BPFEnergyEstimator::produce(), remid::RecoMuon::produce(), bpfit::BPFEnergyEstimatorOnly::produce(), rb::Cluster::RecoHit(), jmshower::RecoJMShower::RecoShowers(), lem::LEMSummarizer::SliceToLEMInput(), rb::Cluster::TotalGeVFastClusterOnly(), and slid::NuEEnergyAlg::VertexEnergy().
rb::RecoHit calib::Calibrator::MakeRecoHit | ( | rb::CellHit const & | cellhit, |
double * | xyz | ||
) |
Definition at line 584 of file Calibrator_service.cc.
References geo::kX, MakeRecoHit(), rb::CellHit::View(), and w.
|
private |
Helper function for the two public MakeRecoHit methods.
Definition at line 595 of file Calibrator_service.cc.
References ana::assert(), fStatsNumCalibrated, fStatsNumUncalibrated, GetGeVToMIPScale(), GetPECorr(), GetPECorrToGeVScale(), GetT(), std::isinf(), std::isnan(), LOG_ERROR, rb::RecoHit::SetGeV(), rb::RecoHit::SetMIP(), rb::RecoHit::SetPECorr(), rb::RecoHit::SetT(), rb::RecoHit::SetX(), rb::RecoHit::SetY(), and rb::RecoHit::SetZ().
Definition at line 182 of file Calibrator_service.cc.
References ana::assert(), calib::CalibratorParams::AttenCSVPath, calib::CalibratorParams::AttenEpochTag, b, om::cerr, nova::dbi::RunHistory::DetGainSetting(), geo::GeometryBase::DetId(), allTimeWatchdog::endl, fAbsCache, fAttenCacheData, fAttenCacheMC, fCurrentRun, fDriftCache, fFibBrightness, fGain, fGeom, fParams, fTag, fTimingCache, fTimingCacheVldTimeSet, fXFunction, fXMuCFunction, fYFunction, calib::AbsCache::GainSetting(), calib::AttenCache::GainSetting(), MECModelEnuComparisons::i, novadaq::cnv::kNEARDET, photrans::FiberBrightness::NumberBrightnessBins(), calib::AttenCache::ReadEpochsFromCSV(), calib::CalibratorParams::ReadEpochsFromCSV, calib::AbsCache::Reinit(), calib::AttenCache::Reinit(), rh, art::Run::run(), runNovaSAM::runNum, nova::dbi::RunHistory::RunNumber(), calib::AttenCache::SetCSVSource(), calib::TimingCache::SetEpoch(), calib::AbsCache::SetEpoch(), calib::AttenCache::SetEpoch(), calib::AttenCache::SetEpochTag(), calib::AbsCache::SetGainSetting(), calib::AttenCache::SetGainSetting(), calib::DriftCache::SetRun(), calib::TimingCache::SetRun(), calib::AbsCache::SetRun(), calib::AttenCache::SetRun(), calib::AttenCache::SetTag(), calib::AttenCache::SetUseEpochs(), string, calib::CalibratorParams::UseAttenEpochs, calib::AttenCache::UseCSVsFromUPS(), calib::CalibratorParams::UseCSVsFromUPS, calib::CalibratorParams::UseDrift, calib::TimingCache::UseEpochs(), calib::AbsCache::UseEpochs(), calib::AttenCache::UseEpochs(), calib::CalibratorParams::UseGainSetting4Abs, calib::CalibratorParams::UseGainSetting4Atten, calib::CalibratorParams::UseXFunction, calib::CalibratorParams::UseYFunction, calib::CalibratorParams::Xg100FunctionForm, calib::CalibratorParams::Xg100FunctionParams, calib::CalibratorParams::Xg140FunctionForm, calib::CalibratorParams::Xg140FunctionParams, calib::CalibratorParams::XMuCg100FunctionForm, calib::CalibratorParams::XMuCg100FunctionParams, calib::CalibratorParams::Yg100FunctionForm, calib::CalibratorParams::Yg100FunctionParams, calib::CalibratorParams::Yg140FunctionForm, and calib::CalibratorParams::Yg140FunctionParams.
Referenced by Calibrator().
void calib::Calibrator::postBeginSubRun | ( | art::SubRun const & | subrun | ) |
Definition at line 176 of file Calibrator_service.cc.
Referenced by Calibrator().
void calib::Calibrator::preEvent | ( | art::Event const & | evt | ) |
Definition at line 160 of file Calibrator_service.cc.
References fCurrTimeStamp, art::Event::time(), and art::Timestamp::value().
Referenced by Calibrator().
double calib::Calibrator::SystematicUncertaintyScale | ( | geo::View_t const & | view, |
unsigned short const & | plane, | ||
double const & | w | ||
) |
Method to determine the systematic uncertainty scale factor to apply when those options are turned on. This function should only be called by code wishing to check the behavior of the systematic scaling, it is not useful outside of the Calibrator service otherwise
Definition at line 656 of file Calibrator_service.cc.
References geo::GeometryBase::DetId(), calib::CalibratorParams::DriftGradient, calib::CalibratorParams::DriftReference, nova::dbi::RunHistory::Duration(), fGeom, geo::GeometryBase::FirstPlaneInMuonCatcher(), fParams, fXFunction, fXMuCFunction, fYFunction, makeTrainCVSamples::int, novadaq::cnv::kNEARDET, geo::kX, geo::kY, rh, scale, calib::CalibratorParams::SimulateDrift, nova::dbi::RunHistory::TStart(), calib::CalibratorParams::UseXFunction, and calib::CalibratorParams::UseYFunction.
Referenced by GetPECorr().
|
private |
Definition at line 411 of file Calibrator.h.
Referenced by Calibrator(), GetPECorrToGeVScale(), postBeginRun(), and ~Calibrator().
|
private |
Data attenutation corrections.
Definition at line 408 of file Calibrator.h.
Referenced by GetAttenCurve(), postBeginRun(), and ~Calibrator().
|
private |
MC attenutation corrections indexed by fiber brightness.
Definition at line 409 of file Calibrator.h.
Referenced by GetAttenCurve(), postBeginRun(), and ~Calibrator().
|
private |
Definition at line 397 of file Calibrator.h.
Referenced by Calibrator(), and GetTNS().
|
private |
Definition at line 443 of file Calibrator.h.
Referenced by getFebType(), GetPECorrToGeVScale(), GetTimingOffset(), and MakeCellHit().
|
private |
get the current run to make sure that we know if we have perfect MC
Definition at line 414 of file Calibrator.h.
Referenced by postBeginRun().
|
private |
current time stamp
Definition at line 395 of file Calibrator.h.
Referenced by GetTimingOffset(), MakeCellHit(), and preEvent().
|
private |
Definition at line 410 of file Calibrator.h.
Referenced by Calibrator(), GetDriftScale(), postBeginRun(), and ~Calibrator().
|
private |
Definition at line 445 of file Calibrator.h.
Referenced by GetAttenCurve(), and postBeginRun().
|
private |
Definition at line 434 of file Calibrator.h.
Referenced by Calibrator(), GetAdcPerPE(), and postBeginRun().
|
private |
Definition at line 444 of file Calibrator.h.
Referenced by EnsureTimingCacheVldTime(), GetAdcPerPE(), GetAttenCurve(), GetAttenScale(), GetPECorrToGeVScale(), GetTimeRes(), GetTimingOffset(), GetTNS(), MakeCellHit(), postBeginRun(), and SystematicUncertaintyScale().
|
protected |
Definition at line 392 of file Calibrator.h.
Referenced by Calibrator(), GetAttenCurve(), GetAttenScale(), GetDriftScale(), GetTimingOffset(), MakeCellHit(), postBeginRun(), and SystematicUncertaintyScale().
|
private |
Definition at line 446 of file Calibrator.h.
|
private |
Definition at line 405 of file Calibrator.h.
Referenced by GetTNS(), and ~Calibrator().
|
private |
FEBv5 table for TestBeam (fShapeTable will be FEBv4)
Definition at line 406 of file Calibrator.h.
Referenced by GetTNS(), and ~Calibrator().
|
private |
Definition at line 400 of file Calibrator.h.
Referenced by Calibrator(), and GetTNS().
|
private |
Root file ADCShapeFitTable will load from.
Definition at line 399 of file Calibrator.h.
Referenced by Calibrator(), and GetTNS().
|
private |
Definition at line 402 of file Calibrator.h.
Referenced by Calibrator(), and GetTNS().
|
private |
Definition at line 401 of file Calibrator.h.
Referenced by Calibrator(), and GetTNS().
|
private |
Number of hits from uncalibrated diblocks using averaged calibrations.
Definition at line 453 of file Calibrator.h.
Referenced by GetAttenScale(), and ~Calibrator().
|
private |
Number of calibrated hits returned.
Definition at line 449 of file Calibrator.h.
Referenced by MakeRecoHit(), and ~Calibrator().
|
private |
Number of uncalibrated hits returned.
Definition at line 451 of file Calibrator.h.
Referenced by MakeRecoHit(), and ~Calibrator().
|
private |
Definition at line 433 of file Calibrator.h.
Referenced by Calibrator(), GetAttenCurve(), GetAttenScale(), and postBeginRun().
|
private |
Definition at line 412 of file Calibrator.h.
Referenced by Calibrator(), EnsureTimingCacheVldTime(), GetTimingOffset(), MakeCellHit(), postBeginRun(), and ~Calibrator().
|
private |
Is fTimingCache set to the right time?
Definition at line 413 of file Calibrator.h.
Referenced by EnsureTimingCacheVldTime(), and postBeginRun().
|
private |
Definition at line 436 of file Calibrator.h.
Referenced by postBeginRun(), and SystematicUncertaintyScale().
|
private |
Definition at line 437 of file Calibrator.h.
Referenced by postBeginRun(), and SystematicUncertaintyScale().
|
private |
Definition at line 438 of file Calibrator.h.
Referenced by postBeginRun(), and SystematicUncertaintyScale().