Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
fhicl::ParameterSet Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/fhiclcpp/v4_06_10/source/fhiclcpp/ParameterSet.h"

Public Types

using ps_atom_t = fhicl::detail::ps_atom_t
 
using ps_sequence_t = fhicl::detail::ps_sequence_t
 
using annot_t = std::unordered_map< std::string, std::string >
 

Public Member Functions

bool is_empty () const
 
ParameterSetID id () const
 
std::string to_string () const
 
std::string to_compact_string () const
 
std::string to_indented_string () const
 
std::string to_indented_string (unsigned initial_indent_level) const
 
std::string to_indented_string (unsigned initial_indent_level, bool annotate) const
 
std::string to_indented_string (unsigned initial_indent_level, detail::print_mode pm) const
 
std::vector< std::string > get_names () const
 
std::vector< std::string > get_pset_names () const
 
std::vector< std::string > get_all_keys () const
 
bool has_key (std::string const &key) const
 
bool is_key_to_table (std::string const &key) const
 
bool is_key_to_sequence (std::string const &key) const
 
bool is_key_to_atom (std::string const &key) const
 
template<class T >
bool get_if_present (std::string const &key, T &value) const
 
template<class T , class Via >
bool get_if_present (std::string const &key, T &value, T convert(Via const &)) const
 
template<class T >
T get (std::string const &key) const
 
template<class T , class Via >
T get (std::string const &key, T convert(Via const &)) const
 
template<class T >
T get (std::string const &key, T const &default_value) const
 
template<class T , class Via >
T get (std::string const &key, T const &default_value, T convert(Via const &)) const
 
std::string get_src_info (std::string const &key) const
 
void walk (ParameterSetWalker &psw) const
 
void put (std::string const &key)
 
template<class T >
void put (std::string const &key, T const &value)
 
void put_or_replace (std::string const &key)
 
template<class T >
void put_or_replace (std::string const &key, T const &value)
 
template<class T >
void put_or_replace_compatible (std::string const &key, T const &value)
 
bool erase (std::string const &key)
 
bool operator== (ParameterSet const &other) const
 
bool operator!= (ParameterSet const &other) const
 
template<>
void put (std::string const &key, fhicl::extended_value const &value)
 

Private Types

using map_t = std::map< std::string, boost::any >
 
using map_iter_t = map_t::const_iterator
 

Private Member Functions

void insert_ (std::string const &key, boost::any const &value)
 
void insert_or_replace_ (std::string const &key, boost::any const &value)
 
void insert_or_replace_compatible_ (std::string const &key, boost::any const &value)
 
std::string to_string_ (bool compact=false) const
 
std::string stringify_ (boost::any const &a, bool compact=false) const
 
bool key_is_type_ (std::string const &key, std::function< bool(boost::any const &)> func) const
 
template<class T >
bool get_one_ (std::string const &key, T &value) const
 
bool find_one_ (std::string const &key) const
 
bool descend_ (std::vector< std::string > const &names, ParameterSet &ps) const
 

Private Attributes

map_t mapping_
 
annot_t srcMapping_
 
ParameterSetID id_
 

Detailed Description

Definition at line 34 of file ParameterSet.h.

Member Typedef Documentation

using fhicl::ParameterSet::annot_t = std::unordered_map<std::string, std::string>

Definition at line 38 of file ParameterSet.h.

using fhicl::ParameterSet::map_iter_t = map_t::const_iterator
private

Definition at line 108 of file ParameterSet.h.

using fhicl::ParameterSet::map_t = std::map<std::string, boost::any>
private

Definition at line 107 of file ParameterSet.h.

Definition at line 36 of file ParameterSet.h.

Definition at line 37 of file ParameterSet.h.

Member Function Documentation

bool fhicl::ParameterSet::descend_ ( std::vector< std::string > const &  names,
ParameterSet ps 
) const
private

Referenced by get_if_present().

bool fhicl::ParameterSet::erase ( std::string const &  key)
bool fhicl::ParameterSet::find_one_ ( std::string const &  key) const
private
template<class T >
T fhicl::ParameterSet::get ( std::string const &  key) const

Definition at line 231 of file ParameterSet.h.

References fhicl::cant_find, get_if_present(), fillBadChanDBTables::result, and T.

Referenced by beamlineutil::BeamlineChannelMap::BeamlineChannelMap(), beamlineutil::BeamlineMagneticField::BeamlineMagneticField(), tbana::BeamlineTriggerAna::BeamlineTriggerAna(), slicer::Slicer4D::beginRun(), presel::CosmicVeto::beginRun(), presel::CosmicCVNVeto::beginRun(), presel::NuePresel::beginRun(), comi::NumiFiltering::beginRun(), calib::FiberCalibration::beginRun(), comi::NumiFilteringAna::beginRun(), calib::TimingCalibration::beginRun(), dif::DiFShowerFinder::beginRun(), comi::NearlineAna::beginRun(), rsim::ReadoutSim::beginRun(), calib::DCMTimingOffset::beginRun(), calib::Calibrator::Calibrator(), cmf::CMFDecorrelator::CMFDecorrelator(), cmf::CombineResults::CombineResults(), rsim::CommonParameters::CommonParameters(), g4n::RockCutterAction::Config(), g4n::ParticleListAction::Config(), g4n::FLSHitListAction::Config(), beamlinegeo::BeamlineGeometry::ConfigureGeometry(), fnex::CorrectedSpectrum::CorrectedSpectrum(), evgen::CosmicPionGen::CosmicPionGen(), evgen::CosmicsGen::CosmicsGen(), trk::CosmicTrack::CosmicTrack(), trk::CosmicTrackAlg::CosmicTrackAlg(), rsim::CreateFPGAAlgorithm(), evgb::CRYHelper::CRYHelper(), cvntf::CVNCosmicTF::CVNCosmicTF(), dqsf::DQSpillFlags::DQSpillFlags(), tbana::DSToFAna::DSToFAna(), skim::EvaluatorNue::EvaluatorNue(), skim::EvaluatorNumu::EvaluatorNumu(), red::EWCosmics::EWCosmics(), art::TrivialFileDelivery::extractFileListFromPset(), photrans::FiberBrightness::FiberBrightness(), beamlineutil::BeamlineChannelMap::FillBeamlineChannels(), cmf::CovarianceMatrixFitter::FillDataSpectrum(), fnex::InputPoint::FillParameterDetMap(), rsim::FPGA_DualCorrelatedSampling::FPGA_DualCorrelatedSampling(), rsim::FPGA_MatchedFiltering::FPGA_MatchedFiltering(), g4n::G4Alg::G4Alg(), g4n::G4Gen::G4Gen(), evgen::GENIEGen::GENIEGen(), evgen::GENIENeutronOscGen::GENIENeutronOscGen(), evgen::GENIERockGen::GENIERockGen(), fhicl::DelegatedParameter::get(), caf::CAFMaker::GetPsetParameter(), art::TriggerNamesService::getTrigPaths(), hv::HoughVertexAlg::HoughVertexAlg(), rsim::IFPGAAlgorithm::IFPGAAlgorithm(), photrans::ImprovedTransport::ImprovedTransport(), cmf::CovarianceBinUtility::Initialize(), cmf::ParameterUtility::Initialize(), cmf::RandomUniverseUtility::Initialize(), cmf::PlotUtilities::Initialize(), cmf::SpectrumPredictionMaker::Initialize(), slid::DedxDistribution::Initialize(), cmf::SelectionUtility::Initialize(), cmf::ChiSqrCalculator::InitializeCovarianceMatrix(), cmf::CovarianceFitHelper::InitializeFitHelper(), cmf::CovarianceFitHelper::InitializeMinimizer(), fnex::SpectrumTest::InitializeWeighters(), cmf::ShifterAndWeighter::InitShiftsAndWeightsToUse(), fnex::InputPoint::InputPoint(), fnex::ParameterConstraints::InsertConstraint(), fnex::NuisanceParameters::InsertParameter(), fnex::SystematicSigmas::InsertSigma(), evgen::IsoGen::IsoGen(), lem::LEMMixer::LEMMixer(), slid::LIDAlg::LIDAlg(), slid::ParticleIDAlg::LoadDedxHistogramFiles(), art::make_tool(), rwgt::MakeGENIEReweightTable::MakeGENIEReweightTable(), rsim::MakeNoiseSpectrumFile::MakeNoiseSpectrumFile(), lem::MakePID::MakePID(), art::EmptyEvent::makePlugin_(), evd::RawDrawingOptions::ModuleList(), evd::RecoDrawingOptions::ModuleList(), muonid::MuonIDProd::MuonIDProd(), ndreco::NDReco::NDReco(), noe::noe::noe(), validation::NoiseClusterAnalysis::NoiseClusterAnalysis(), red::OverburdenCalculator::OverburdenCalculator(), cmf::ParameterSetToLocation(), SliceLID::Config::parse(), LSTME::Config::parse(), photrans::PhotonSystRewriter::PhotonSystRewriter(), photrans::PhotonTransport::PhotonTransport(), cmf::PredictionLibraryMaker::PredictionLibraryMaker(), photrans::PhotonSystRewriter::produce(), qeef::QeFinder::QeFinder(), qeef::QeFinderVal::QeFinderVal(), beamlineutil::BeamlineCalibration::ReadCalibrationData(), rsim::ReadoutSim::ReadoutSim(), cmf::ContourFromLibrary::readResults(), nnbar::RecoAnalysis::RecoAnalysis(), remid::RecoMuon::RecoMuon(), fnex::FitEval_UBL::Reconfigure(), fnex::CorrSpec_NoExtrapNuE::Reconfigure(), fnex::CorrSpec_MichelDecomp::Reconfigure(), fnex::CorrSpec_PropDecomp::Reconfigure(), fnex::CorrSpec_NoExtrapNuMu::Reconfigure(), fnex::CorrSpec_SimpleExtrap::Reconfigure(), fnex::CorrSpec_SimpleNuMuExtrap::Reconfigure(), fnex::CorrSpec_BENDecomp::Reconfigure(), fnex::NuisanceParameter_Experiment::Reconfigure(), evgen::CRVFilter::reconfigure(), lem::ApplyFilter::reconfigure(), filter::SkipNEvents::reconfigure(), fnex::NOvA_Experiment::Reconfigure(), lem::LEMLibrary::reconfigure(), util::MergeSubruns::reconfigure(), calib::SumSubrunsCalib::reconfigure(), util::WriteHornCurrentCosmic::reconfigure(), evdb::Colors::reconfigure(), comi::CanaFilter::reconfigure(), fnex::FitAlg_ROOTFactoryFit::Reconfigure(), util::RewriteSpillData::reconfigure(), lem::BackgroundEnricher::reconfigure(), calib::SumRunsCalib::reconfigure(), lem::LEMAssociator::reconfigure(), evd::PlotDrawingOptions::reconfigure(), fnex::FakePointResultMaker::reconfigure(), tut::TutFilter::reconfigure(), skim::SpillEvaluator::reconfigure(), evd::GeometryDrawingOptions::reconfigure(), evd::RecoDrawingOptions::reconfigure(), evd::SimulationDrawingOptions::reconfigure(), evd::SliceNavigator::reconfigure(), nova::dbi::RunHistoryService::reconfigure(), evdb::EventDisplay::reconfigure(), skim::SelectionNue2017Peripheral::reconfigure(), skim::SelectionNumuSA::reconfigure(), tut::TutAnalyzer::reconfigure(), skim::SelectionNue2018FHC::reconfigure(), skim::SelectionNue2018PeripheralFHC::reconfigure(), evd::RawDrawingOptions::reconfigure(), skim::SelectionNue2018PeripheralRHC::reconfigure(), trk::TrkAssn::reconfigure(), skim::SelectionNue2017::reconfigure(), nutools::dbi::DBIService::reconfigure(), skim::SelectionNue2018RHC::reconfigure(), skim::SelectionNueSA::reconfigure(), skim::SelectionNumu2017::reconfigure(), skim::SelectionNumu2018::reconfigure(), calib::CDPStorage::reconfigure(), tbana::RawFileDumper::reconfigure(), util::TruthExpand::reconfigure(), evgen::OccupiedSpillFilter::reconfigure(), trk::CosmicTrackSelection::reconfigure(), calib::RockMuonStopperSelection::reconfigure(), tf::TimingFit::reconfigure(), comi::ChanOcc::reconfigure(), vf::VertexFinder::reconfigure(), validation::ValidateChannelInfo::reconfigure(), skim::NumuCCpiSkimmer::reconfigure(), calib::SumAttenuationProfiles::reconfigure(), skim::POTSummary::reconfigure(), calib::StopperSelection::reconfigure(), skim::NumuSkimmer::reconfigure(), nnbar::ShowerProducer::reconfigure(), hough::HoughT::reconfigure(), cheat::ClusterCheater::reconfigure(), beamlinereco::GoodBeamlineEventFilter::reconfigure(), calhit::CalHitAna::reconfigure(), ve::VertexEva::reconfigure(), validation::ValidateDAQ2RawDigit::reconfigure(), cheat::ProngCheater::reconfigure(), cheat::ShowerCheater::reconfigure(), cheat::TrueEnergy::reconfigure(), beamlinereco::TimeOfFlightReco::reconfigure(), tut::TutProducer::reconfigure(), recodemo::RecoDemo::reconfigure(), slid::NuEEnergyAlg::reconfigure(), trk::KalmanTrack::reconfigure(), skim::NueSkimmer::reconfigure(), cheat::CheckBackTracking::reconfigure(), cheat::TrackCheater::reconfigure(), calib::ThresholdAna::reconfigure(), murem::TrackCleanUpAlg::reconfigure(), locator::CelestialLocator::reconfigure(), chaninfo::CosmicEff::reconfigure(), fnex::MultiExperiment::Reconfigure(), lem::LEMSummarizer::reconfigure(), cheat::RecoCheckAna::reconfigure(), novaddt::TriCellTriggerAna::reconfigure(), lem::AlignLibToVtx::reconfigure(), lem::MergeMatches::reconfigure(), lem::UnTranspose::reconfigure(), beamlinereco::DigitizerSaturationFilter::reconfigure(), demo::DemoModule::reconfigure(), beamlinereco::ToFFilter::reconfigure(), trk::KalmanTrackMerge::reconfigure(), febstat::FEBShutoff::reconfigure(), comi::CosmicMetrics::reconfigure(), cmf::CMFSpectraMaker::reconfigure(), mcchk::CloseInTime::reconfigure(), calib::CosmicCalib::reconfigure(), jmshower::RecoJMShowerAna::reconfigure(), DataCheck::HardwareStatusCheck::reconfigure(), slid::Recluster::reconfigure(), trk::CosmicTrackUtilities::reconfigure(), beamlinereco::CkovCounterReco::reconfigure(), calib::ResizeDetector::reconfigure(), jmshower::JMTrackMerge::reconfigure(), jmshower::RecoJMShowerFilter::reconfigure(), fnex::CalibSystHistMaker::reconfigure(), hough::MultiHoughT::reconfigure(), beamlinereco::ToFCalibration::reconfigure(), dt::ViewMerger::reconfigure(), slid::DeconvolveAlg::reconfigure(), slid::SliceLIDBuilder::reconfigure(), beamlinereco::ToFSingleCounterAnalysis::reconfigure(), BeamlineAna::reconfigure(), fnex::FitPoint::reconfigure(), fnex::PlotPoint::reconfigure(), lem::FindMatchesTranspose::reconfigure(), calib::FiberCalibration::reconfigure(), fnex::Correlations::Reconfigure(), trk::CosmicTrack::reconfigure(), fnex::CAFContourMaker::reconfigure(), fnex::SpectrumTest::reconfigure(), beamlinereco::BeamlineRecoDump::reconfigure(), lem::MakeMatches::reconfigure(), mcchk::ShowerAnaCheck::reconfigure(), tut::RecoValidationTutorial::reconfigure(), beamlinereco::WCTrackAlg::reconfigure(), calib::StopperFilter::reconfigure(), LSTME::FillLSTME::reconfigure(), SliceLID::FillSliceLID::reconfigure(), testbeam::BeamlineRecoValidation::reconfigure(), util::EventFilterNoSlice::reconfigure(), beamlinereco::ToFRecoAnalysis::reconfigure(), skim::RandomEventFilter::reconfigure(), calib::PCHitAggregator::reconfigure(), slicer::S4DParamCalc::reconfigure(), fnex::SortEventLists::reconfigure(), calib::AssessCalib::reconfigure(), calib::PCHitTransposer::reconfigure(), beamlinerecoana::WCTrackRecoAnalysis::reconfigure(), mcchk::MonopoleAna::reconfigure(), calib::MakeAttenuationProfiles::reconfigure(), beamlinereco::LEHitReco::reconfigure(), beamlinereco::WCTrackReco::reconfigure(), numue::NumuEAna::reconfigure(), mcchk::RockAna::reconfigure(), fnex::SensitivityPointsMaker::reconfigure(), fnex::CovarianceFitHelper::reconfigure(), pa::ClusterEva::reconfigure(), pa::HitEva::reconfigure(), slicer::IdenticalSlicerAna::reconfigure(), lem::FindLEMMatches::reconfigure(), tbana::BeamStructureAna::reconfigure(), util::RunEventFilter::reconfigure(), evgen::IsoGen::reconfigure(), fnex::SystematicsWeightTest::reconfigure(), beamlinereco::CFDHitReco::reconfigure(), murem::MuonRemoveAna::reconfigure(), comi::DataCheck::reconfigure(), comi::Cana::reconfigure(), bpfit::BPFdEdxHistoMaker::reconfigure(), calib::TimingCalibration::reconfigure(), jmshower::JMClusterMerge::reconfigure(), fnex::ContourMaker::reconfigure(), skim::EvaluatorNumuCCpi::reconfigure(), lem::MakeLibrary::reconfigure(), dt::DiscreteTracker::reconfigure(), bpfit::DimuonFitter::reconfigure(), vf::TrackEva::reconfigure(), calib::TimingCalFilter::reconfigure(), evgen::SupernovaGen::reconfigure(), bpfit::BPFEnergyAna::reconfigure(), fnex::CovarianceMatrixMaker::reconfigure(), calib::HitEfficiency::reconfigure(), calib::PCHitsList::reconfigure(), cmf::CovarianceMatrixMaker::reconfigure(), skim::EvaluatorNumu::reconfigure(), calib::EnergyStandardCandles::reconfigure(), skim::EvaluatorNue::reconfigure(), vdt::VertexDT::reconfigure(), ncpi0::MakeNCPi0BkgRej::reconfigure(), bsf::BremShowerFilter::reconfigure(), testbeam::TestBeamCommissioning::reconfigure(), fnex::AnalyzeWeighters::reconfigure(), fnex::StarPlot::reconfigure(), tbana::BeamlineTriggerAna::reconfigure(), evgen::SingleGen::reconfigure(), ifdb::IFDBSpillInfo::reconfigure(), lem::LEM::reconfigure(), trk::KalmanTrackAna::reconfigure(), chaninfo::BadChanList::reconfigure(), tbem::TBRecoAna::reconfigure(), fnex::NuMuAnalysisSetup::Reconfigure(), fnex::EventListManipulator::reconfigure(), ifdb::TBSpillInfo::reconfigure(), chaninfo::FindSwappedChannels::reconfigure(), beamlinereco::EventWaveformDump::reconfigure(), beamlinereco::WCHitFinderAlg::reconfigure(), novatb::TriggerRateAna::reconfigure(), comi::Leana::reconfigure(), calib::MuondEdx::reconfigure(), calib::DetRespDrift::reconfigure(), calib::DriftResponseCalc::reconfigure(), lem::MakePID::reconfigure(), calib::PEResponse::reconfigure(), slid::LIDBuilder::reconfigure(), murem::MRE::reconfigure(), cmf::RandomUniverses::reconfigure(), showere::ShowerEnergyFilterMC::reconfigure(), calib::AttenFit::reconfigure(), fnex::ReadFitResults::reconfigure(), cvn::CVNEventDump::reconfigure(), showere::ShowerEnergyAna::reconfigure(), chaninfo::BadChanValidate::reconfigure(), jmshower::NueSel::reconfigure(), hough::HoughValidate::reconfigure(), fxwgt::FluxWeightCalculator::reconfigure(), cvn::CVNCosmicEventDump::reconfigure(), ncid::MakeNCCosRej::reconfigure(), earms::ElasticArmsValidate::reconfigure(), slid::SPIDBuilder::reconfigure(), jmshower::NueSelLID::reconfigure(), bpfit::BPFEnergyEstimator::reconfigure(), calib::DriftCorrection::reconfigure(), cvn::CVNEventProngDump::reconfigure(), fnex::EventListMaker::reconfigure(), bpfit::BPFEnergyEstimatorOnly::reconfigure(), bpfit::BPFPIdMaker::reconfigure(), filter::Filter::reconfigure(), slicer::SlicerAna::reconfigure(), evtsum::EventSummary::reconfigure(), cmf::FitFeldmanCousinsPoint::reconfigure(), calib::MuonTrackHits::reconfigure(), calib::StopperThreshold::reconfigure(), calib::AttenuationFit::reconfigure(), skim::NumuCCpiSkim::reconfigure(), cosrej::MakeNueCosRej::reconfigure(), cmf::EventListManipulator::reconfigure(), cvn::CVNAddTrainingData::reconfigure(), tbana::DetectorRateShutOff::reconfigure(), calib::DCMTimingOffset::reconfigure(), beamlinereco::ToFAnalysisMini::reconfigure(), fuzz::FuzzyKValidate::reconfigure(), skim::NueSkim::reconfigure(), testbeam::BeamlineEventDisplay::reconfigure(), skim::NumuSkim::reconfigure(), ncid::NCNNKeras::reconfigure(), ncid::NCNNKerasVal::reconfigure(), ncpi0::TwoProngBDTAna::reconfigure(), ifdb::MIN::reconfigure(), fnex::NuEAnalysisSetup::Reconfigure(), bpfit::BPFTmvaTrainer::reconfigure(), cmf::ContourFromLibrary::reconfigure(), bpf::BPFCVNAna::reconfigure(), upmuana::UpMuProb::reconfigure(), fnex::AnalysisSetupBase::Reconfigure(), skim::SkimmerAna::reconfigure(), murem::MuonRemove::reconfigure(), skim::CellHitSkimmer::reconfigure(), novaddt::WaveformProcessor::reconfigure(), om::OnMonProd::reconfigure(), calib::CosmicTrends::reconfigure(), skim::CosmicBeamComparison::reconfigure(), ncs::Xbeam::reconfigure(), ncs::Xeff::reconfigure(), ncs::GenieTruth::reconfigure(), ncs::ROCKMRE::reconfigure(), skim::DataProductSkimmer::reconfigure(), ddt::SuperDDTEva::reconfigure(), jmshower::RecoJMShower::reconfigure(), slid::LIDTraining::reconfigure(), daq2raw::BeamlineRawInputDriver::reconfigure(), bpfit::BreakPoint::reconfigure(), ncs::NCAna::reconfigure(), fnex::CAFToEventList::reconfigure(), fnex::ReadCAFMakeEventList::reconfigure(), beamlinereco::ToFPositionRecoAnalysis::reconfigure(), evgen::TextFileGen::reconfigure(), daq2raw::TestBeamRawInputDriver::reconfigure(), cmf::CAFToEventList::reconfigure(), novatb::BeamTuning::reconfigure(), trk::CosmicTrackAna::reconfigure(), daq2raw::BeamlineUnpack::reconfigure(), fnex::CompareFNEXCAFEventListFiles::reconfigure(), rvp::RecVarPID::RecVarPID(), evdb::ServiceTable::RegisterService(), remid::ReMIdDedx::ReMIdDedx(), remid::ReMIdDedxFD::ReMIdDedxFD(), remid::ReMIdDedxRock::ReMIdDedxRock(), remid::ReMIdDedxStudies::ReMIdDedxStudies(), remid::ReMIdTrain::ReMIdTrain(), remid::ReMIdValidate::ReMIdValidate(), util::RemoveBeamSpills::RemoveBeamSpills(), util::RemoveBeamSpillsPrecise::RemoveBeamSpillsPrecise(), util::RemoveTBSpills::RemoveTBSpills(), rwgt::MCReweight::Reset(), evdb::ScanOptions::ScanOptions(), cmf::CovarianceBinUtility::SetBinning(), cmf::EventListManipulator::SetEventCaps(), cmf::EventListManipulator::SetExposures(), nnbar::SigVsBkgSimCompare::SigVsBkgSimCompare(), evgen::SingleGen::SingleGen(), novaddt::SNMessageService::SNMessageService(), slid::SPIDAlg::SPIDAlg(), align::SplitTracks::SplitTracks(), evgen::SupernovaGen::SupernovaGen(), evdb::Colors::UnpackColorScale(), evdb::ParameterSetEditRow::UnpackParameter(), novaddt::UpMuAna::UpMuAna(), trk::WindowTrackingAlg::WindowTrackingAlg(), cmf::CovarianceMatrixFitter::writeResults(), xnue::XnuePID::XnuePID(), cmf::CovarianceMatrixFitter::~CovarianceMatrixFitter(), and fnex::CovarianceMatrixFitter::~CovarianceMatrixFitter().

232 {
233  T result;
234  return get_if_present(key, result) ? result :
236 }
bool get_if_present(std::string const &key, T &value) const
Definition: ParameterSet.h:208
double T
Definition: Xdiff_gwt.C:5
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
template<class T , class Via >
T fhicl::ParameterSet::get ( std::string const &  key,
T   convertVia const & 
) const

Definition at line 240 of file ParameterSet.h.

References fhicl::cant_find, convert(), get_if_present(), fillBadChanDBTables::result, and T.

241 {
242  T result;
243  return get_if_present(key, result, convert) ?
244  result :
246 }
void convert(std::string dir="cc_numu/C12")
Definition: convert.C:107
bool get_if_present(std::string const &key, T &value) const
Definition: ParameterSet.h:208
double T
Definition: Xdiff_gwt.C:5
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
template<class T >
T fhicl::ParameterSet::get ( std::string const &  key,
T const &  default_value 
) const

Definition at line 250 of file ParameterSet.h.

References get_if_present(), fillBadChanDBTables::result, and T.

251 {
252  T result;
253  return get_if_present(key, result) ? result : default_value;
254 }
bool get_if_present(std::string const &key, T &value) const
Definition: ParameterSet.h:208
double T
Definition: Xdiff_gwt.C:5
template<class T , class Via >
T fhicl::ParameterSet::get ( std::string const &  key,
T const &  default_value,
T   convertVia const & 
) const

Definition at line 258 of file ParameterSet.h.

References convert(), get_if_present(), fillBadChanDBTables::result, and T.

261 {
262  T result;
263  return get_if_present(key, result, convert) ? result : default_value;
264 }
void convert(std::string dir="cc_numu/C12")
Definition: convert.C:107
bool get_if_present(std::string const &key, T &value) const
Definition: ParameterSet.h:208
double T
Definition: Xdiff_gwt.C:5
std::vector<std::string> fhicl::ParameterSet::get_all_keys ( ) const
template<class T >
bool fhicl::ParameterSet::get_if_present ( std::string const &  key,
T value 
) const
template<class T , class Via >
bool fhicl::ParameterSet::get_if_present ( std::string const &  key,
T value,
T   convertVia const & 
) const

Definition at line 217 of file ParameterSet.h.

References convert(), get_if_present(), and T.

220 {
221  Via go_between;
222  if (!get_if_present(key, go_between)) {
223  return false;
224  }
225  result = convert(go_between);
226  return true;
227 } // get_if_present<>()
void convert(std::string dir="cc_numu/C12")
Definition: convert.C:107
bool get_if_present(std::string const &key, T &value) const
Definition: ParameterSet.h:208
std::vector<std::string> fhicl::ParameterSet::get_names ( ) const
template<class T >
bool fhicl::ParameterSet::get_one_ ( std::string const &  key,
T value 
) const
private

Definition at line 284 of file ParameterSet.h.

References a, fhicl::cant_find, fhicl::detail::decode(), art::decode(), e, fhicl::detail::find_an_any(), fhicl::detail::get_sequence_indices(), it, put(), and fhicl::type_mismatch.

Referenced by get_if_present().

284  {
285  auto skey = detail::get_sequence_indices(key);
286 
287  map_iter_t it = mapping_.find(skey.name());
288  if (it == mapping_.end()) {
289  return false;
290  }
291 
292  auto a = it->second;
293  if (!detail::find_an_any(skey.indices().cbegin(), skey.indices().cend(), a)) {
295  }
296 
297  using detail::decode;
298  decode(a, value);
299  return true;
300 }
301 catch (fhicl::exception const& e) {
302  std::ostringstream errmsg;
303  errmsg << "\nUnsuccessful attempt to convert FHiCL parameter '" << key
304  << "' to type '" << cet::demangle_symbol(typeid(value).name())
305  << "'.\n\n"
306  << "[Specific error:]";
307  throw fhicl::exception(type_mismatch, errmsg.str(), e);
308 }
309 catch (std::exception const& e) {
310  std::ostringstream errmsg;
311  errmsg << "\nUnsuccessful attempt to convert FHiCL parameter '" << key
312  << "' to type '" << cet::demangle_symbol(typeid(value).name())
313  << "'.\n\n"
314  << "[Specific error:]\n"
315  << e.what() << "\n\n";
316  throw fhicl::exception(type_mismatch, errmsg.str());
317 }
const XML_Char * name
Definition: expat.h:151
void decode(boost::any const &, std::string &)
set< int >::iterator it
::xsd::cxx::tree::exception< char > exception
Definition: Database.h:225
map_t::const_iterator map_iter_t
Definition: ParameterSet.h:108
const XML_Char int const XML_Char * value
Definition: expat.h:331
const double a
void decode(boost::any const &a, InputTag &tag)
SequenceKey get_sequence_indices(std::string const &key)
Float_t e
Definition: plot.C:35
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
bool find_an_any(cit_size_t it, cit_size_t const cend, boost::any &a)
std::vector<std::string> fhicl::ParameterSet::get_pset_names ( ) const
std::string fhicl::ParameterSet::get_src_info ( std::string const &  key) const
bool fhicl::ParameterSet::has_key ( std::string const &  key) const
ParameterSetID fhicl::ParameterSet::id ( ) const

Referenced by operator==().

void fhicl::ParameterSet::insert_ ( std::string const &  key,
boost::any const &  value 
)
private

Referenced by put().

void fhicl::ParameterSet::insert_or_replace_ ( std::string const &  key,
boost::any const &  value 
)
private

Referenced by put_or_replace().

void fhicl::ParameterSet::insert_or_replace_compatible_ ( std::string const &  key,
boost::any const &  value 
)
private
bool fhicl::ParameterSet::is_empty ( ) const
bool fhicl::ParameterSet::is_key_to_atom ( std::string const &  key) const
inline

Definition at line 161 of file ParameterSet.h.

References a, fhicl::detail::is_sequence(), fhicl::detail::is_table(), and key_is_type_().

162 {
163  return key_is_type_(key, [](boost::any const& a) {
164  return !(detail::is_sequence(a) || detail::is_table(a));
165  });
166 }
bool is_sequence(boost::any const &val)
Definition: coding.h:50
bool is_table(boost::any const &val)
Definition: coding.h:56
const double a
bool key_is_type_(std::string const &key, std::function< bool(boost::any const &)> func) const
bool fhicl::ParameterSet::is_key_to_sequence ( std::string const &  key) const
inline

Definition at line 155 of file ParameterSet.h.

References fhicl::detail::is_sequence(), and key_is_type_().

156 {
158 }
bool is_sequence(boost::any const &val)
Definition: coding.h:50
bool key_is_type_(std::string const &key, std::function< bool(boost::any const &)> func) const
bool fhicl::ParameterSet::is_key_to_table ( std::string const &  key) const
inline

Definition at line 149 of file ParameterSet.h.

References fhicl::detail::is_table(), and key_is_type_().

150 {
152 }
bool is_table(boost::any const &val)
Definition: coding.h:56
bool key_is_type_(std::string const &key, std::function< bool(boost::any const &)> func) const
bool fhicl::ParameterSet::key_is_type_ ( std::string const &  key,
std::function< bool(boost::any const &)>  func 
) const
private
bool fhicl::ParameterSet::operator!= ( ParameterSet const &  other) const
inline

Definition at line 275 of file ParameterSet.h.

References operator==().

276 {
277  return !operator==(other);
278 }
bool operator==(ParameterSet const &other) const
Definition: ParameterSet.h:269
bool fhicl::ParameterSet::operator== ( ParameterSet const &  other) const
inline

Definition at line 269 of file ParameterSet.h.

References id().

Referenced by operator!=().

270 {
271  return id() == other.id();
272 }
ParameterSetID id() const
void fhicl::ParameterSet::put ( std::string const &  key)
template<class T >
void fhicl::ParameterSet::put ( std::string const &  key,
T const &  value 
)

Definition at line 170 of file ParameterSet.h.

References fhicl::detail::encode(), insert_(), findDuplicateFiles::key, and fhicl::detail::try_insert().

171 {
172  auto insert = [this, &value](auto const& key) {
173  using detail::encode;
174  this->insert_(key, boost::any(encode(value)));
175  };
176  detail::try_insert(insert, key);
177 }
ps_atom_t encode(std::string const &)
void try_insert(L l, std::string const &key)
Definition: try_blocks.h:13
const XML_Char int const XML_Char * value
Definition: expat.h:331
void insert_(std::string const &key, boost::any const &value)
template<>
void fhicl::ParameterSet::put ( std::string const &  key,
fhicl::extended_value const &  value 
)
void fhicl::ParameterSet::put_or_replace ( std::string const &  key)
template<class T >
void fhicl::ParameterSet::put_or_replace ( std::string const &  key,
T const &  value 
)

Definition at line 181 of file ParameterSet.h.

References fhicl::detail::encode(), insert_or_replace_(), findDuplicateFiles::key, and fhicl::detail::try_insert().

182 {
183  auto insert_or_replace = [this, &value](auto const& key) {
184  using detail::encode;
185  this->insert_or_replace_(key, boost::any(encode(value)));
186  srcMapping_.erase(key);
187  };
188  detail::try_insert(insert_or_replace, key);
189 }
void insert_or_replace_(std::string const &key, boost::any const &value)
ps_atom_t encode(std::string const &)
void try_insert(L l, std::string const &key)
Definition: try_blocks.h:13
const XML_Char int const XML_Char * value
Definition: expat.h:331
template<class T >
void fhicl::ParameterSet::put_or_replace_compatible ( std::string const &  key,
T const &  value 
)

Definition at line 193 of file ParameterSet.h.

References fhicl::detail::encode(), insert_or_replace_compatible_(), findDuplicateFiles::key, and fhicl::detail::try_insert().

195 {
196  auto insert_or_replace_compatible = [this, &value](auto const& key) {
197  using detail::encode;
198  this->insert_or_replace_compatible_(key, boost::any(encode(value)));
199  srcMapping_.erase(key);
200  };
201  detail::try_insert(insert_or_replace_compatible, key);
202 }
ps_atom_t encode(std::string const &)
void try_insert(L l, std::string const &key)
Definition: try_blocks.h:13
void insert_or_replace_compatible_(std::string const &key, boost::any const &value)
const XML_Char int const XML_Char * value
Definition: expat.h:331
std::string fhicl::ParameterSet::stringify_ ( boost::any const &  a,
bool  compact = false 
) const
private
std::string fhicl::ParameterSet::to_compact_string ( ) const
inline

Definition at line 143 of file ParameterSet.h.

References to_string_().

144 {
145  return to_string_(true);
146 }
std::string to_string_(bool compact=false) const
std::string fhicl::ParameterSet::to_indented_string ( ) const
std::string fhicl::ParameterSet::to_indented_string ( unsigned  initial_indent_level) const
std::string fhicl::ParameterSet::to_indented_string ( unsigned  initial_indent_level,
bool  annotate 
) const
std::string fhicl::ParameterSet::to_indented_string ( unsigned  initial_indent_level,
detail::print_mode  pm 
) const
std::string fhicl::ParameterSet::to_string ( ) const
inline
std::string fhicl::ParameterSet::to_string_ ( bool  compact = false) const
private

Referenced by to_compact_string(), and to_string().

void fhicl::ParameterSet::walk ( ParameterSetWalker psw) const

Member Data Documentation

ParameterSetID fhicl::ParameterSet::id_
mutableprivate

Definition at line 112 of file ParameterSet.h.

map_t fhicl::ParameterSet::mapping_
private

Definition at line 110 of file ParameterSet.h.

annot_t fhicl::ParameterSet::srcMapping_
private

Definition at line 111 of file ParameterSet.h.


The documentation for this class was generated from the following file: