LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "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_ |
Definition at line 34 of file ParameterSet.h.
using fhicl::ParameterSet::annot_t = std::unordered_map<std::string, std::string> |
Definition at line 38 of file ParameterSet.h.
|
private |
Definition at line 108 of file ParameterSet.h.
|
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.
|
private |
Definition at line 173 of file ParameterSet.cc.
References tmp.
Referenced by get_if_present().
bool ParameterSet::erase | ( | std::string const & | key | ) |
Definition at line 282 of file ParameterSet.cc.
Referenced by art::EventProcessor::initServices_(), and strip_pset().
|
private |
Definition at line 159 of file ParameterSet.cc.
References fhicl::detail::find_an_any(), and fhicl::detail::get_sequence_indices().
Referenced by has_key().
T fhicl::ParameterSet::get | ( | std::string const & | key | ) | const |
Definition at line 231 of file ParameterSet.h.
References fhicl::cant_find, and get_if_present().
Referenced by art::ActionTable::ActionTable(), pmtana::AlgoCFD::AlgoCFD(), pmtana::AlgoFixedWindow::AlgoFixedWindow(), pmtana::AlgoSiPM::AlgoSiPM(), pmtana::AlgoSlidingWindow::AlgoSlidingWindow(), pmtana::AlgoThreshold::AlgoThreshold(), geo::AuxDetGeometry::AuxDetGeometry(), fhicl::detail::Prettifier::before_action(), cluster::BlurredClustering::BlurredClustering(), cluster::BlurredClusteringAlg::BlurredClusteringAlg(), opdet::BoDataFrameInput::BoDataFrameInput(), cluster::ClusterMatchAlg::ClusterMatchAlg(), altns::ExampleAction::Config(), mf::service::ELdestination::Category::Config::Config(), trigger::TriggerAlgoBase::Config(), reco_tool::PeakFitterGaussElimination::configure(), evwgh::GenieWeightCalc::Configure(), reco_tool::CandHitStandard::configure(), reco_tool::CandHitDerivative::configure(), reco_tool::CandHitMorphological::configure(), spacecharge::SpaceChargeStandard::Configure(), evd_tool::ICARUSDrawer::configure(), evd_tool::MicroBooNEDrawer::configure(), lar_cluster3d::ClusterParamsBuilder::configure(), evd_tool::StandardDrawer::configure(), lar_cluster3d::DBScanAlg::configure(), lar_cluster3d::kdTree::configure(), lar_cluster3d::ClusterMergeAlg::configure(), lar_cluster3d::SpacePointHit3DBuilder::configure(), lar_cluster3d::MinSpanTreeAlg::configure(), lar_cluster3d::ClusterPathFinder::configure(), evwgh::WeightManager::Configure(), lar_cluster3d::ConvexHullPathFinder::configure(), lar_cluster3d::VoronoiPathFinder::configure(), reco_tool::PeakFitterGaussian::configure(), trk::TrackContainmentAlg::Configure(), lar_cluster3d::StandardHit3DBuilder::configure(), rndm::details::PerEventPolicy< SEED >::configure(), detinfo::LArPropertiesStandard::Configure(), detinfo::DetectorClocksStandard::Configure(), evgen::CosmicsGen::CosmicsGen(), rndm::details::AutoIncrementPolicy< SEED >::createSeed(), rndm::details::LinearMappingPolicy< SEED >::createSeed(), rndm::details::PredefinedOffsetPolicy< SEED >::createSeed(), evgb::CRYHelper::CRYHelper(), fhicl::decompose_parameterset(), opdet::MicrobooneOpDetResponse::doReconfigure(), shower::EMShowerAlg::EMShowerAlg(), art::EventProcessor::EventProcessor(), art::EventSelector::EventSelector(), evwgh::EventWeight::EventWeight(), art::TrivialFileDelivery::extractFileListFromPset(), opdet::FIFOHistogramAna::FIFOHistogramAna(), art::PathManager::fillAllModules_(), opdet::SimPhotonCounterAlg::FillRanges(), opdet::FlashPurityCheckAna::FlashPurityCheckAna(), cluster::FuzzyClusterMerger::FuzzyClusterMerger(), evgen::GENIEGen::GENIEGen(), geo::Geometry::Geometry(), evd::DrawingPad::GeometryDraw(), fhicl::DelegatedParameter::get(), art::detail::get_failureToPut_flag(), art::EngineCreator::get_seed_value(), rndm::details::PerInstancePolicy< SEED >::getInstanceParameter(), rndm::details::PerInstancePolicy< SEED >::getInstanceSeed(), art::TriggerNamesService::getTrigPaths(), art::EventProcessor::initSchedules_(), art::EventProcessor::initServices_(), art::ActionTable::install_(), detinfo::DetectorPropertiesServiceStandard::isDetectorPropertiesServiceStandard(), lar_pandora::LArPandora::LArPandora(), lar_pandora::LArPandoraEventDump::LArPandoraEventDump(), detinfo::LArPropertiesStandard::LArPropertiesStandard(), opdet::LEDCalibrationAna::LEDCalibrationAna(), evgen::LightSource::LightSource(), art::InputSourceFactory::make(), art::make_tool(), art::detail::ServiceCacheEntry::makeAndCacheService(), art::EmptyEvent::makePlugin_(), art::RPManager::makeRPs_(), art::detail::ModuleFactory::makeWorker(), art::PathsInfo::makeWorker_(), hit::MCHitAnaExample::MCHitAnaExample(), hit::MCHitFinder::MCHitFinder(), MCReco::MCReco(), sim::MCRecoEdep::MCRecoEdep(), sim::MCRecoPart::MCRecoPart(), sim::MCShowerRecoPart::MCShowerRecoPart(), sim::MCTrackRecoAlg::MCTrackRecoAlg(), mvapid::MVAAlg::MVAAlg(), evgen::NeutronOsc::NeutronOsc(), evgen::NucleonDecay::NucleonDecay(), evgen::NueAr40CCGenerator::NueAr40CCGenerator(), opdet::OpDigiAna::OpDigiAna(), opdet::OpFlashAna::OpFlashAna(), opdet::OpFlashMCTruthAna::OpFlashMCTruthAna(), opdet::OpHitAna::OpHitAna(), opdet::OpHitFinder::OpHitFinder(), opdet::OpMCDigi::OpMCDigi(), opdet::OptDetDigitizer::OptDetDigitizer(), opreco::OpticalRecoAna::OpticalRecoAna(), testing::BasicTesterEnvironment< ConfigurationClass >::ParseEnvironmentOptions(), cheat::ParticleInventoryService::ParticleInventoryService(), pmtana::PedAlgoEdges::PedAlgoEdges(), pmtana::PedAlgoRmsSlider::PedAlgoRmsSlider(), pmtana::PedAlgoRollingMean::PedAlgoRollingMean(), pmtana::PedAlgoUB::PedAlgoUB(), phot::PhotonLibraryPropagation::PhotonLibraryPropagation(), pmtana::PMTAna::PMTAna(), detinfo::DetectorPropertiesServiceStandard::postOpenFile(), detinfo::DetectorClocksServiceStandard::postOpenFile(), util::DetectorPropertiesServiceArgoNeuT::postOpenFile(), art::PathManager::processPathConfigs_(), art::ProvenanceDumper< DETAIL, Enable >::ProvenanceDumper(), evd::AnalysisDrawingOptions::reconfigure(), wcls::WireCellToolkit::reconfigure(), hit::HitFilterAlg::reconfigure(), evd::ColorDrawingOptions::reconfigure(), event::EventMaker::reconfigure(), evdb::Colors::reconfigure(), evd::EvdLayoutOptions::reconfigure(), evd::SimulationDrawingOptions::reconfigure(), evd::RecoDrawingOptions::reconfigure(), evdb::EventDisplay::reconfigure(), tss::Segmentation2D::reconfigure(), filt::LArG4ParticleFilter::reconfigure(), phot::PhotonVisibilityService::reconfigure(), nutools::dbi::DBIService::reconfigure(), cluster::ClusterMatchTQ::reconfigure(), trkf::CosmicTrackerAlg::reconfigure(), cluster::fuzzyClusterAlg::reconfigure(), pid::Chi2PIDAlg::reconfigure(), sim::LArG4Parameters::reconfigure(), opdet::OpDigiProperties::reconfigure(), cluster::EndPointAlg::reconfigure(), trkf::StitchAlg::reconfigure(), opdet::FlashClusterMatch::reconfigure(), hit::HitFinder::reconfigure(), corner::CornerFinderAlg::reconfigure(), trkf::SeedFinderAlgorithm::reconfigure(), trkf::SeedFinderModule::reconfigure(), lar_pandora::PFParticleTrackAna::reconfigure(), hit::DisambigCheater::reconfigure(), sppt::SpacePointAlg_TimeSort::reconfigure(), lar_pandora::PFParticleValidation::reconfigure(), calo::TrackCalorimetryAlg::reconfigure(), pid::PIDAAnalyzer::reconfigure(), cluster::DBScanAlg::reconfigure(), filter::EventFilter::reconfigure(), vertex::CornerFinder::reconfigure(), lar_pandora::PFParticleCosmicAna::reconfigure(), cheat::CheckBackTracking::reconfigure(), opdet::OpFlashSimpleAna::reconfigure(), lar_pandora::PFParticleAnalysis::reconfigure(), lar_pandora::PFParticleHitDumper::reconfigure(), phot::PhotonLibraryAnalyzer::reconfigure(), sim::LArVoxelCalculator::reconfigure(), lar_pandora::PFParticleMonitoring::reconfigure(), trkf::TCTrack::reconfigure(), calo::PrintCalorimetry::reconfigure(), hit::TTHitFinder::reconfigure(), vertex::VertexCheater::reconfigure(), lar_pandora::ConsolidatedPFParticleAnalysisTemplate::reconfigure(), filt::FinalStateParticleFilter::reconfigure(), trk::TrackContainmentTagger::reconfigure(), trkf::SpacePointFinder::reconfigure(), trkf::SpacePointCheater::reconfigure(), tss::TrackShowerHits::reconfigure(), cosmic::BeamFlashTrackMatchTaggerAlg::reconfigure(), evd::RawDrawingOptions::reconfigure(), lariov::DatabaseRetrievalAlg::Reconfigure(), lariov::SIOVPmtGainProvider::Reconfigure(), filter::ADCFilter::reconfigure(), cluster::SmallClusterFilter::reconfigure(), trk::TrackContainmentAnalyzer::reconfigure(), cluster::LineCluster::reconfigure(), util::DetectorPropertiesServiceArgoNeuT::reconfigure(), apa::DisambigAlg::reconfigure(), trkf::BezierTrackerModule::reconfigure(), opdet::OpticalRawDigitReformatter::reconfigure(), opdet::TrackTimeAssoc::reconfigure(), event::EventCheater::reconfigure(), shwf::ShowerCheater::reconfigure(), filt::FinalStateSelectFilter::reconfigure(), pid::PIDAAlg::reconfigure(), opdet::BeamFlashCompatabilityCheck::reconfigure(), cheat::RecoCheckAna::reconfigure(), evd::InfoTransfer::reconfigure(), pid::Chi2ParticleID::reconfigure(), apa::APAHitFinder::reconfigure(), lariov::SIOVElectronicsCalibProvider::Reconfigure(), calo::BezierCalorimetry::reconfigure(), noisefilteralg::WireCellNoiseFilter::reconfigure(), opdet::OpFlashFinder::reconfigure(), lar_cluster3d::HoughSeedFinderAlg::reconfigure(), lar_cluster3d::SkeletonAlg::reconfigure(), t0::IndirectHitParticleAssns::reconfigure(), mag::MagneticField::reconfigure(), cosmic::BeamFlashTrackMatchTagger::reconfigure(), sppt::TTSpacePointFinder::reconfigure(), trkf::FeatureTracker::reconfigure(), larg4::ISCalculationAna::reconfigure(), calo::GeneralCalorimetry::reconfigure(), hit::HitCheater::reconfigure(), t0::DirectHitParticleAssns::reconfigure(), filt::EmptyFilter::reconfigure(), trkf::TrackCheater::reconfigure(), CRHitRemoval::reconfigure(), cluster::TrajCluster::reconfigure(), cluster::SmallClusterFinderAlg::reconfigure(), lar_cluster3d::PCASeedFinderAlg::reconfigure(), cluster::ClusterCheater::reconfigure(), hit::HitAnaModule::reconfigure(), lar_cluster3d::ParallelHitsSeedFinderAlg::reconfigure(), filter::EventTimeFilter::reconfigure(), calo::TrackCalorimetry::reconfigure(), hit::FFTHitFinder::reconfigure(), shower::TCShowerElectronLikelihood::reconfigure(), util::DatabaseUtil::reconfigure(), simfilter::FilterPrimaryPDG::reconfigure(), lar_cluster3d::PrincipalComponentsAlg::reconfigure(), caldata::CalWire::reconfigure(), tca::TrajClusterAlg::reconfigure(), cluster::DBcluster::reconfigure(), DUNE::NeutrinoShowerEff::reconfigure(), cluster::ClusterCrawler::reconfigure(), caldata::CalWireT962::reconfigure(), cosmic::TrackPFParticleMatch::reconfigure(), t0::MCParticleHitMatching::reconfigure(), trkf::SpacePts::reconfigure(), rwgt::ReweightAna::reconfigure(), cluster::fuzzyCluster::reconfigure(), filter::MuonFilter::reconfigure(), detsim::SimWireAna::reconfigure(), trkf::TrackKalmanCheater::reconfigure(), trkf::Track3Dreco::reconfigure(), shower::EMShower::reconfigure(), larg4::LArG4Ana::reconfigure(), util::LArPropertiesServiceArgoNeuT::reconfigure(), opdet::OpHitFinder::reconfigure(), shwf::ShowerFinder::reconfigure(), cosmic::CosmicPFParticleTagger::reconfigure(), evgen::NUANCEGen::reconfigure(), lariov::DetPedestalRetrievalAlg::Reconfigure(), larg::LArSimChannelAna::reconfigure(), trkf::KalmanFilterAlg::reconfigure(), vertex::PrimaryVertexFinder::reconfigure(), cosmic::CosmicTrackTagger::reconfigure(), trkf::CCTrackMaker::reconfigure(), cosmic::CosmicPCAxisTagger::reconfigure(), cosmic::CosmicClusterTagger::reconfigure(), DUNE::NeutrinoTrackingEff::reconfigure(), t0::MCParticleTrackMatching::reconfigure(), hit::RawHitFinder::reconfigure(), cluster::SmallClusterFinder::reconfigure(), trkf::Track3DKalmanHitAlg::reconfigure(), hit::MagDriftAna::reconfigure(), t0::MCParticleShowerMatching::reconfigure(), cluster::MergeClusterAlg::reconfigure(), cluster::EndPointModule::reconfigure(), evgen::NDKGen::reconfigure(), DUNE::MuonTrackingEff::reconfigure(), trkf::Track3DKalmanHit::reconfigure(), hit::GausHitFinderAna::reconfigure(), hit::HitFinderAna::reconfigure(), hit::GausHitFinder::reconfigure(), CRHitRemovalByPCA::reconfigure(), cluster::HoughLineFinder::reconfigure(), trkf::TrackStitcher::reconfigure(), ems::EMShower3D::reconfigure(), trkf::BezierTrackerAlgorithm::reconfigure(), vertex::VertexFinder2D::reconfigure(), evgen::GaisserParam::reconfigure(), wc::CellTree::reconfigure(), evgen::TextFileGen::reconfigure(), shwf::ShowerReco::reconfigure(), detsim::SimWire::reconfigure(), hit::DPRawHitFinder::reconfigure(), vertex::FeatureVertexFinderAna::reconfigure(), hit::CCHitFinderAlg::reconfigure(), trkf::Track3DKalman::reconfigure(), trkf::SpacePointAlg::reconfigure(), lbne::PhotonCounterT0Matching::reconfigure(), util::FileCatalogMetadataExtras::reconfigure(), evgen::RadioGen::reconfigure(), trkf::Track3DKalmanSPS::reconfigure(), cluster::ClusterCrawlerAlg::reconfigure(), detsim::SimDriftElectrons::reconfigure(), t0::MCTruthT0Matching::reconfigure(), vertex::FeatureVertexFinder::reconfigure(), lar_cluster3d::Cluster3D::reconfigure(), shower::TrackShowerSeparationAlg::reconfigure(), trkf::CosmicTracker::reconfigure(), evgen::MUSUN::reconfigure(), ems::MultiEMShowers::reconfigure(), ems::MergeEMShower3D::reconfigure(), ClusteringValidation::ClusteringValidation::reconfigure(), cluster::HoughBaseAlg::reconfigure(), evdb::ServiceTable::RegisterService(), hit::RFFHitFinderAlg::RFFHitFinderAlg(), art::RPManager::RPManager(), art::run_art_common_(), evdb::ScanOptions::ScanOptions(), rndm::SeedMaster< SEED >::SeedMaster(), testing::BasicTesterEnvironment< ConfigurationClass >::ServiceParameters(), lar::standalone::SetupGeometry(), lar::standalone::SetupGeometryWithChannelMapping(), lar::standalone::SetupMessageFacility(), shower::ShowerEnergyAlg::ShowerEnergyAlg(), ShowerQuality::ShowerQuality(), ShowerReco3D::ShowerReco3D(), opdet::SimPhotonCounterAlg::SimPhotonCounterAlg(), lariov::SimpleChannelStatus::SimpleChannelStatus(), cluster::SimpleClusterMerger::SimpleClusterMerger(), cluster::SimpleLineCluster::SimpleLineCluster(), detsim::SimWire::SimWire(), lariov::SIOVChannelStatusProvider::SIOVChannelStatusProvider(), rndm::details::AutoIncrementPolicy< SEED >::static_configure(), rndm::details::LinearMappingPolicy< SEED >::static_configure(), rndm::details::PredefinedOffsetPolicy< SEED >::static_configure(), testing::BasicTesterEnvironment< ConfigurationClass >::TesterParameters(), ToyOneShowerGen::ToyOneShowerGen(), TrackProducerFromPFParticle::TrackProducerFromPFParticle(), TrackProducerFromTrack::TrackProducerFromTrack(), TrackProducerFromTrackTrajectory::TrackProducerFromTrackTrajectory(), opdet::TrackTimeAssocAna::TrackTimeAssocAna(), evdb::Colors::UnpackColorScale(), evdb::ParameterSetEditRow::UnpackParameter(), and cheat::PhotonBackTracker::~PhotonBackTracker().
T fhicl::ParameterSet::get | ( | std::string const & | key, |
T | convertVia const & | ||
) | const |
Definition at line 240 of file ParameterSet.h.
References fhicl::cant_find, and get_if_present().
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().
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 get_if_present().
vector< string > ParameterSet::get_all_keys | ( | ) | const |
Definition at line 151 of file ParameterSet.cc.
References fhicl::detail::KeyAssembler::result().
bool fhicl::ParameterSet::get_if_present | ( | std::string const & | key, |
T & | value | ||
) | const |
Definition at line 208 of file ParameterSet.h.
References descend_(), fhicl::detail::get_names(), get_one_(), and fhicl::detail::atom::value().
Referenced by rndm::details::RangeCheckHelper< SEED >::configure(), rndm::details::RandomPolicy< SEED >::configure(), rndm::details::RandomPolicy< SEED >::createSeed(), rndm::details::LinearMappingPolicy< SEED >::createSeed(), mf::service::ELdestination::ELdestination(), evgen::GENIEGen::GENIEGen(), get(), fhicl::OptionalDelegatedParameter::get_if_present(), get_if_present(), rndm::details::PerInstancePolicy< SEED >::getInstanceParameter(), rndm::details::PerInstancePolicy< SEED >::getInstanceSeed(), util::DetectorPropertiesServiceArgoNeuT::isDetectorPropertiesServiceArgoNeuT(), detinfo::DetectorPropertiesServiceStandard::isDetectorPropertiesServiceStandard(), MCReco::MCReco(), art::Consumer::prepareForJob(), rndm::NuRandomService::readSeedParameter(), util::DetectorPropertiesServiceArgoNeuT::reconfigure(), tca::TrajClusterAlg::reconfigure(), trkf::Track3DKalmanSPS::reconfigure(), testing::ProviderSetupClass< detinfo::DetectorClocksStandard >::setup(), testing::ProviderSetupClass< detinfo::LArPropertiesStandard >::setup(), testing::ProviderSetupClass< detinfo::DetectorPropertiesStandard >::setup(), testing::BasicTesterEnvironment< ConfigurationClass >::SetupMessageFacility(), rndm::details::LinearMappingPolicy< SEED >::static_configure(), and want_pset().
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 get_if_present().
vector< string > ParameterSet::get_names | ( | ) | const |
Definition at line 129 of file ParameterSet.cc.
Referenced by fhicl::decompose_parameterset(), rndm::details::PerInstancePolicy< SEED >::getInstanceParameter(), evdb::ParameterSetEditFrame::ParameterSetEditFrame(), and art::PathManager::processPathConfigs_().
|
private |
Definition at line 284 of file ParameterSet.h.
References fhicl::cant_find, art::decode(), fhicl::detail::decode(), e, fhicl::detail::find_an_any(), fhicl::detail::get_sequence_indices(), put(), and fhicl::type_mismatch.
Referenced by get_if_present().
vector< string > ParameterSet::get_pset_names | ( | ) | const |
std::string ParameterSet::get_src_info | ( | std::string const & | key | ) | const |
Definition at line 199 of file ParameterSet.cc.
Referenced by fhicl::detail::PrettifierAnnotated::before_action(), fhicl::detail::PrettifierPrefixAnnotated::before_action(), and fhicl::detail::ValidateThenSet::delegated_parameter().
bool ParameterSet::has_key | ( | std::string const & | key | ) | const |
Definition at line 189 of file ParameterSet.cc.
References find_one_(), and fhicl::detail::get_names().
Referenced by fhicl::detail::ValidateThenSet::before_action(), spacecharge::SpaceChargeStandard::Configure(), rndm::details::PerInstancePolicy< SEED >::getInstanceSeed(), fhicl::OptionalDelegatedParameter::hasValue(), evd::RecoDrawingOptions::reconfigure(), cluster::TrajCluster::reconfigure(), tca::TrajClusterAlg::reconfigure(), hit::CCHitFinderAlg::reconfigure(), cluster::ClusterCrawlerAlg::reconfigure(), and art::run_art_common_().
ParameterSetID ParameterSet::id | ( | ) | const |
Definition at line 103 of file ParameterSet.cc.
References fhicl::ParameterSetID::reset().
Referenced by fhicl::decompose_parameterset(), art::EventObserverBase::EventObserverBase(), art::Schedule::makeTriggerResultsInserter_(), art::PathsInfo::makeWorker_(), operator==(), and art::RPManager::RPManager().
|
private |
Definition at line 234 of file ParameterSet.cc.
References fhicl::cant_insert.
Referenced by put().
|
private |
Definition at line 244 of file ParameterSet.cc.
References fhicl::detail::atom::value().
Referenced by put_or_replace().
|
private |
Definition at line 252 of file ParameterSet.cc.
References fhicl::cant_insert, fhicl::detail::is_nil(), fhicl::detail::is_sequence(), fhicl::detail::is_table(), and fhicl::detail::atom::value().
Referenced by put_or_replace_compatible().
bool ParameterSet::is_empty | ( | ) | const |
Definition at line 97 of file ParameterSet.cc.
|
inline |
Definition at line 161 of file ParameterSet.h.
References fhicl::detail::is_sequence(), fhicl::detail::is_table(), and key_is_type_().
Referenced by rndm::details::PerInstancePolicy< SEED >::getInstanceParameter(), and rndm::details::PerInstancePolicy< SEED >::getInstanceSeed().
|
inline |
Definition at line 155 of file ParameterSet.h.
References fhicl::detail::is_sequence(), and key_is_type_().
Referenced by fhicl::decompose_parameterset(), and fhicl::detail::ValidateThenSet::enter_sequence().
|
inline |
Definition at line 149 of file ParameterSet.h.
References fhicl::detail::is_table(), and key_is_type_().
Referenced by fhicl::decompose_parameterset(), rndm::details::PerInstancePolicy< SEED >::getInstanceParameter(), and rndm::details::PerInstancePolicy< SEED >::getInstanceSeed().
|
private |
Definition at line 290 of file ParameterSet.cc.
References fhicl::cant_find, fhicl::detail::find_an_any(), fhicl::detail::get_names(), fhicl::detail::get_sequence_indices(), and mapping_.
Referenced by is_key_to_atom(), is_key_to_sequence(), and is_key_to_table().
|
inline |
Definition at line 275 of file ParameterSet.h.
References operator==().
|
inline |
Definition at line 269 of file ParameterSet.h.
References id().
Referenced by operator!=().
void ParameterSet::put | ( | std::string const & | key | ) |
Definition at line 208 of file ParameterSet.cc.
References fhicl::detail::atom::value().
Referenced by fhicl::detail::encode(), evgen::GENIEGen::GENIEGen(), get_one_(), fhicl::make_ParameterSet(), and art::TriggerNamesService::TriggerNamesService().
void fhicl::ParameterSet::put | ( | std::string const & | key, |
T const & | value | ||
) |
Definition at line 170 of file ParameterSet.h.
References fhicl::detail::encode(), insert_(), fhicl::detail::try_insert(), and fhicl::detail::atom::value().
void fhicl::ParameterSet::put | ( | std::string const & | key, |
fhicl::extended_value const & | value | ||
) |
Definition at line 353 of file ParameterSet.cc.
References fhicl::detail::encode(), fhicl::detail::try_insert(), and fhicl::detail::atom::value().
void ParameterSet::put_or_replace | ( | std::string const & | key | ) |
Definition at line 215 of file ParameterSet.cc.
References fhicl::unimplemented, and fhicl::detail::atom::value().
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_(), fhicl::detail::try_insert(), and fhicl::detail::atom::value().
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_(), fhicl::detail::try_insert(), and fhicl::detail::atom::value().
|
private |
Definition at line 67 of file ParameterSet.cc.
References e, fhicl::ParameterSetRegistry::get(), fhicl::detail::is_sequence(), fhicl::detail::is_table(), and fhicl::ParameterSetID::max_str_size().
|
inline |
Definition at line 143 of file ParameterSet.h.
References to_string_().
Referenced by fhicl::decompose_parameterset().
string ParameterSet::to_indented_string | ( | ) | const |
Definition at line 410 of file ParameterSet.cc.
Referenced by main(), print_pset_from_file(), and testing::BasicTesterEnvironment< ConfigurationClass >::SetupMessageFacility().
string ParameterSet::to_indented_string | ( | unsigned | initial_indent_level | ) | const |
Definition at line 416 of file ParameterSet.cc.
string ParameterSet::to_indented_string | ( | unsigned | initial_indent_level, |
bool | annotate | ||
) | const |
Definition at line 422 of file ParameterSet.cc.
References fhicl::detail::annotated, and fhicl::detail::raw.
string ParameterSet::to_indented_string | ( | unsigned | initial_indent_level, |
detail::print_mode | pm | ||
) | const |
Definition at line 432 of file ParameterSet.cc.
References fhicl::detail::annotated, fhicl::detail::prefix_annotated, fhicl::detail::raw, and fhicl::detail::PrettifierPrefixAnnotated::result().
|
inline |
Definition at line 137 of file ParameterSet.h.
References to_string_().
Referenced by fhicl::ParameterSetID::reset(), and evdb::ParameterSetEditRow::UnpackParameter().
|
private |
Definition at line 112 of file ParameterSet.cc.
References e.
Referenced by to_compact_string(), and to_string().
void ParameterSet::walk | ( | ParameterSetWalker & | psw | ) | const |
Definition at line 367 of file ParameterSet.cc.
References fhicl::ParameterSetWalker::do_after_action(), fhicl::ParameterSetWalker::do_atom(), fhicl::ParameterSetWalker::do_before_action(), fhicl::ParameterSetWalker::do_enter_sequence(), fhicl::ParameterSetWalker::do_enter_table(), fhicl::ParameterSetWalker::do_exit_sequence(), fhicl::ParameterSetWalker::do_exit_table(), fhicl::detail::is_sequence(), fhicl::detail::is_table(), mapping_, s, and util::flags::to_string().
|
mutableprivate |
Definition at line 112 of file ParameterSet.h.
|
private |
Definition at line 110 of file ParameterSet.h.
Referenced by key_is_type_(), and walk().
|
private |
Definition at line 111 of file ParameterSet.h.