Registry Class Reference

#include <Registry.h>

Inheritance diagram for Registry:
AlgConfig NuEvtKin RecJobRecord

List of all members.

Classes

class  RegistryKey

Public Types

typedef std::map< std::string,
RegistryItem * > 
tRegMap
typedef void(* ErrorHandler )(void)

Public Member Functions

 Registry (bool readonly=true)
 Registry (const Registry &rhs)
 Deep copy constructor.
virtual ~Registry ()
Registryoperator= (const Registry &rhs)
 Deep assignment.
void Merge (const Registry &rhs)
 Copy rhs into this, respects this's locks.
unsigned int Size () const
 Return number of entries.
bool KeyExists (const char *key) const
 Check if key exists.
void RemoveKey (const char *key)
void Clear (Option_t *option="")
 Clear Registry - deletes all items.
void Dump (void) const
 Dump to cerr.
virtual std::ostream & PrintStream (std::ostream &os) const
 Print to cout (without extraneous bits of Dump()).
virtual std::istream & ReadStream (std::istream &is)
virtual void Print (Option_t *option="") const
virtual std::ostream & PrettyPrint (std::ostream &os) const
virtual void Browse (TBrowser *)
virtual bool ValuesLocked (void) const
 Control if an existing value can be set.
virtual void LockValues (void)
virtual void UnLockValues (void)
virtual bool KeysLocked (void) const
 Control if new key/value pairs can be added.
virtual void LockKeys (void)
virtual void UnLockKeys (void)
void SetDirty (bool is_dirty=true)
bool IsDirty ()
void SetErrorHandler (ErrorHandler eh)
bool Get (const char *key, char &c) const
bool Get (const char *key, const char *&s) const
bool Get (const char *key, int &i) const
bool Get (const char *key, double &d) const
bool Get (const char *key, Registry &r) const
const std::type_info & GetType (const char *key) const
std::string GetTypeAsString (const char *key) const
 Return "int", "double", "char", "string", "Registry" or "void".
std::string GetValueAsString (const char *key) const
 see format.txt
char GetChar (const char *key) const
const char * GetCharString (const char *key) const
int GetInt (const char *key) const
double GetDouble (const char *key) const
Registry GetRegistry (const char *key) const
bool Set (const char *key, char c)
bool Set (const char *key, const char *s)
bool Set (const char *key, int i)
bool Set (const char *key, double d)
bool Set (const char *key, Registry r)
RegistryKey Key (void) const

Private Attributes

bool fValuesLocked
bool fKeysLocked
ErrorHandler fErrorHandler
tRegMap fMap
bool fDirty

Friends

class RegistryKey
 not written out

Detailed Description

Id
Registry.h,v 1.38 2013/09/17 21:49:59 rhatcher Exp

Definition at line 31 of file Registry.h.


Member Typedef Documentation

typedef void(* Registry::ErrorHandler)(void)

Definition at line 35 of file Registry.h.

typedef std::map<std::string,RegistryItem*> Registry::tRegMap

Definition at line 34 of file Registry.h.


Constructor & Destructor Documentation

Registry::Registry ( bool  readonly = true  )  [explicit]

Create a Registry. If readonly is false, any key's value can be set multiple times, o.w. only the first setting is allowed. See methods below regarding locking of keys and values.

Definition at line 28 of file Registry.cxx.

References Msg::kVerbose, and MSG.

00029     : fValuesLocked(readonly), 
00030       fKeysLocked(false),
00031       fErrorHandler(0)
00032 {
00033     MSG("Registry",Msg::kVerbose) << "Creating Registry at " << (void * ) this << endl;
00034     this->SetDirty();
00035 }

Registry::Registry ( const Registry rhs  ) 

Deep copy constructor.

Definition at line 38 of file Registry.cxx.

References fKeysLocked, fMap, fValuesLocked, Key(), Msg::kVerbose, MSG, and SetDirty().

00038                                       : TNamed(rhs)
00039 {
00040     MSG("Registry",Msg::kVerbose) << "Creating Registry at " << (void * ) this << endl;
00041     RegistryKey rk = rhs.Key();
00042     const char* s;
00043 
00044     while ( (s = rk()) ) fMap[s] = rhs.fMap.find(s)->second->Dup();
00045 
00046     fValuesLocked = rhs.fValuesLocked;
00047     fKeysLocked   = rhs.fKeysLocked;
00048     this->SetDirty();
00049     this->SetName(rhs.GetName());
00050 }

Registry::~Registry (  )  [virtual]

Definition at line 190 of file Registry.cxx.

References fMap.

00191 {
00192     tRegMap::iterator mit = fMap.begin();
00193     while (mit != fMap.end()) {
00194         delete mit->second;
00195         ++mit;
00196     }
00197 }


Member Function Documentation

virtual void Registry::Browse ( TBrowser *   )  [inline, virtual]

Definition at line 76 of file Registry.h.

00076 {}

void Registry::Clear ( Option_t *  option = ""  ) 

Clear Registry - deletes all items.

Definition at line 120 of file Registry.cxx.

References fKeysLocked, fMap, fValuesLocked, Nav::GetName(), Msg::kWarning, MSG, and SetDirty().

Referenced by SKZPWeightCalculator::Config(), NuZBeamReweight::CreateNeugenRegistry(), DbuDaqFileSummary::FillMapFromString(), BeamMonCuts::FillRegistry(), MiniPlotMaker::GetReweight(), CfgPromptConfigurable::InitializeConfig(), NueModule::NueModule(), operator=(), DbiConfigStream::operator>>(), NueReweight::Reset(), and RegistryValidate::RunAllTests().

00121 {
00122     if (fValuesLocked || fKeysLocked) {
00123         MSG("Registry",Msg::kWarning) 
00124             << "Clear: can't, there are locks in \""
00125             << this->GetName() << "\"\n";
00126         return;
00127     }
00128 
00129     tRegMap::iterator mit = fMap.begin();
00130     while (mit != fMap.end()) {
00131         delete mit->second;
00132         ++mit;
00133     }
00134     fMap.clear();
00135     this->SetDirty();
00136 }

void Registry::Dump ( void   )  const

Dump to cerr.

Definition at line 138 of file Registry.cxx.

References fKeysLocked, fMap, fValuesLocked, Nav::GetName(), Msg::kInfo, MSG, and Size().

00139 {
00140     this->TNamed::Dump();
00141     tRegMap::const_iterator mit = fMap.begin();
00142     MSG("Registry",Msg::kInfo) 
00143         << "Registry: `" << this->GetName() << "', "
00144         << this->Size() << " entries."
00145         << " (Locks: [Keys|Values] `key', `value'):\n";
00146     while (mit != fMap.end()) {
00147         MSG("Registry",Msg::kInfo) 
00148             << " [" << (fKeysLocked ? 'L' : 'U') << "|"
00149             << (fValuesLocked ? 'L' : 'U') << "] "
00150             << "`" << mit->first << "', `";
00151         mit->second->Dump();
00152         MSG("Registry",Msg::kInfo) << "'\n";
00153         ++mit;
00154     }
00155 
00156 }

bool Registry::Get ( const char *  key,
Registry r 
) const
bool Registry::Get ( const char *  key,
double &  d 
) const

Definition at line 334 of file Registry.cxx.

References RegistryItemXxx< T >::Get(), Msg::kError, and MSG.

00335 {                                                               
00336     tRegMap::const_iterator mit = fMap.find(key);
00337     if (mit == fMap.end()) return false;
00338     // try correct type
00339     RegistryItemXxx<double>* rixd =
00340         dynamic_cast<RegistryItemXxx<double>*>(mit->second);
00341     if (rixd) {
00342         val = *(rixd->Get());
00343         return true;
00344     }
00345     // try int
00346     RegistryItemXxx<int>* rixi =
00347         dynamic_cast<RegistryItemXxx<int>*>(mit->second);
00348     if (rixi) {
00349         val = *(rixi->Get());
00350         return true;
00351     }
00352     MSG("Registry", Msg::kError) << "Key " << key
00353                                  << " does not have type double or int"
00354                                  << " as required" << endl;
00355     return false;
00356 }

bool Registry::Get ( const char *  key,
int &  i 
) const
bool Registry::Get ( const char *  key,
const char *&  s 
) const
bool Registry::Get ( const char *  key,
char &  c 
) const

Access a value. Return true and set second argument if key is found, else returns false.

Referenced by IoInputModule::AddFile(), Jint::AddPath(), FilterRunType::Ana(), RunSummary::Ana(), FilterLIModule::Ana(), FilterStream::Ana(), RateSummary::Ana(), FarmListModule::Ana(), SleepModule::Ana(), RawRecCounts::Ana(), CheezyPage::ApplyConfig(), CDFMonitoringModule::BeginJob(), DigitListModule::BeginJob(), EvtKinNuModule::BeginJob(), UserAnalysis::BeginJob(), EvtInfoInjectorModule::BeginJob(), GenieModule::BeginRun(), AlgEventSSList::BuildEventFromUnassoc(), AlgEventSRList::BuildEventFromUnassoc(), UgliGeometry::BuildNodes(), GeoMediumMap::BuildSwimMethodMap(), BMSpillAna::ChangeCutValues(), AtNuFindModule::Config(), CompareAll::Config(), CondensedNtpModuleNC::Config(), EvtKinNuModule::Config(), FarDetTpSinglesDump::Config(), FilterStream::Config(), NtpStFilterModule::Config(), NueModule::Config(), ParticleDisplay::Config(), Anp::PlotKinem::Config(), PreFilter::Config(), RerootToTruthModule::Config(), DemoEventDump::Config(), FarDetDeadChipModule::Config(), FillSpillServerMon::Config(), IoOutputModule::Config(), LZfluk::Config(), PETrimmer::Config(), Anp::PlotSnarl::Config(), PrintStat::Config(), Anp::RunAlgStore::Config(), UserAnalysis::Config(), CustomLightInjector::Config(), Anp::FillNPlane::Config(), NC::SplitFakeDataAdder::Config(), NueAnalysisCuts::Config(), NuModule::Config(), AltDeMuxModule::Config(), CondensedNtpModule::Config(), Anp::FillShortEvent::Config(), Anp::FillShortVar::Config(), NDSgateTimeLooter::Config(), PlexLoanPool::Config(), Anp::PlotEvent::Config(), Anp::PlotShower::Config(), RunFileModule::Config(), RunSummary::Config(), DataQualityFilter::Config(), FarDetRawDigitDump::Config(), FiltSGateModule::Config(), GenieModule::Config(), LISummaryModule::Config(), NC::RealDataAdder::Config(), NtpTHModule::Config(), OltRawLI::Config(), PTSimModule::Config(), SimDetector::Config(), Anp::StudyFiducial::Config(), TrackCamListModule::Config(), TrimModule::Config(), XTalkFilter::Config(), BDSpliceModule::Config(), DbiTableProxyRegistry::Config(), DbuDaqFileModule::Config(), DemoMCFilter::Config(), Anp::FillHeader::Config(), FillPIDFromText::Config(), FixModule::Config(), OltTimeScan::Config(), ParticlePIDSaver::Config(), Anp::PlotEff::Config(), Anp::PlotTime::Config(), Anp::SelectKinem::Config(), SystematicGains::Config(), BeamEnergyCalculator::Config(), Blinder::Config(), DbuDaqMonitorModule::Config(), Anp::FillData::Config(), Anp::FillSnarl::Config(), MCAnalysis::Config(), NC::EventAdderBase::Config(), NC::FakeDataAdder::Config(), OltEnds::Config(), Anp::PlotFlux::Config(), Anp::PlotPmt::Config(), Anp::PmtHit::Config(), PulserTimingMaker::Config(), RotoClientModule::Config(), Anp::SelectNC::Config(), SetKNNModule::Config(), ShieldPlankListModule::Config(), UgliLoanPool::Config(), WriteStdHepFileModule::Config(), CalDet2003PlotsModule::Config(), FCPCFilterModule::Config(), HepevtModule::Config(), NC::MockDataAdder::Config(), OltBlockScan::Config(), Anp::PlotPur::Config(), RealCalDetPIDModule::Config(), RecoTreeModule::Config(), RemoveMuon::Config(), Anp::RunModule::Config(), SelectSpillTriggers::Config(), EvtInfoInjectorModule::Config(), FarDetSliceListModule::Config(), NtpBDLiteModule::Config(), NtpSRFilterModule::Config(), NueHandScan::Config(), SelectSpillTimes::Config(), Anp::StdHepTab::Config(), AtNuDisplayModule::Config(), AtNuTreeModule::Config(), CDPreFilterModule::Config(), DemoNPlaneCut::Config(), FillBadChannelDB::Config(), FillHvFromSingles::Config(), Anp::FillMuonId::Config(), FitTrackCamListModule::Config(), IoInputModule::Config(), MnvRawDigitSuppression::Config(), NCDataQualityModule::Config(), NCExtrapolationModule::Config(), NtpEMModule::Config(), NtpStTrimmer::Config(), NueBeamMonModule::Config(), NueReweight::Config(), ParticleFilterModule::Config(), Anp::PlotTrackGeom::Config(), ScintCalModule::Config(), Anp::SelectTrue::Config(), UberPlotsModule::Config(), ValidateRawChecksums::Config(), AtNuFitModule::Config(), AutoPIDMaker::Config(), BMPTHistoWeightCalculator::Config(), Cluster3DModule::Config(), DataQualityReader::Config(), DmxDeMuxCosmicsModule::Config(), Anp::DrawSnarl::Config(), FarDetEventModule::Config(), FarDetStripListModule::Config(), Anp::FillMadId::Config(), FillNearRunQuality::Config(), FitTrackCamAnalysisModule::Config(), NtpSRModule::Config(), Anp::PlotData::Config(), Anp::PlotShortSelect::Config(), Anp::PlotTrack::Config(), Anp::SelectNuMu::Config(), Anp::SelectReson::Config(), SimPmtM16UTTimed::Config(), ToyMCModule::Config(), Anp::FillBasic::Config(), Anp::FillEvent::Config(), Anp::FillFlux::Config(), NeugenWeightCalculator::Config(), NtpMCModule::Config(), OltDataIntegrity::Config(), PulserDDSCheck::Config(), ReadDispatcherModule::Config(), Anp::SelectShort::Config(), SimQieElectronics::Config(), FilterRunType::Config(), Anp::LocalFit::Config(), MCInitModule::Config(), ParticleFinder::Config(), RateSummary::Config(), Anp::RunAlgSnarl::Config(), SimPmtM64Full::Config(), BMPTWeightCalculator::Config(), CondensedNtpModuleAtm::Config(), DemoDataReject::Config(), DetSim::Config(), DmxDeMuxModule::Config(), MicroDSTMaker::Config(), MSTTemplate::Config(), PhotonInjector::Config(), PIDEval::Config(), Anp::RunkNN::Config(), Anp::SelectSpill::Config(), SimVaElectronics::Config(), SpillTypeFilter::Config(), Cutter::Config(), FarDetRawRateDump::Config(), Anp::Interface::Config(), MCNNMergeModule::Config(), NoiseFilterModule::Config(), NtpMaker::Config(), PhotonTransport::Config(), Anp::PlotBasic::Config(), Anp::SelectAntiNeutrino::Config(), Anp::SelectFlux::Config(), SimPmtM64Oxford::Config(), SimVaTimedElectronics::Config(), AtmosShowerListModule::Config(), EvtAddRawDigitBlockModule::Config(), FillFarRunQuality::Config(), FiltTriggerPrescale::Config(), Lfluk::Config(), LightInjector::Config(), NtpStModule::Config(), NueDisplayModule::Config(), ParticleAna::Config(), Anp::PlotTruth::Config(), RawRecCounts::Config(), Anp::SelectFiducial::Config(), SimPmt::Config(), BfldLoanPool::Config(), CompareMD::Config(), FarDetDataQualityModule::Config(), FarDetShieldPlankListModule::Config(), FarmListModule::Config(), NuePrint::Config(), NueSensitivity::Config(), Anp::PlotReson::Config(), Anp::PlotShort::Config(), Anp::PlotVtx::Config(), MuonDriftCalScheme::ConfigModified(), PmtDriftCalScheme::ConfigModified(), PEGainAggCalScheme::ConfigModified(), PulserSigLinCalScheme::ConfigModified(), PulserGainFit::ConfigModified(), PEGainCalScheme::ConfigModified(), QuadLinearityCalScheme::ConfigModified(), StripAttenCalScheme::ConfigModified(), TemperatureCalScheme::ConfigModified(), VaLinearityCalScheme::ConfigModified(), SimpleCalScheme::ConfigModified(), PulserTimeCalScheme::ConfigModified(), PulserDriftCalScheme::ConfigModified(), SpillTimeFinder::ConfigModified(), MIPCalScheme::ConfigModified(), StripToStripCalScheme::ConfigModified(), LIPatternFinderFancy::Configure(), SimDaqTrigger::Configure(), LIPatternFinderSimple::Configure(), PhotonCalibratedPeComputer::Configure(), PhotonCalibratedBlueComputer::Configure(), FluxGen_OneOverE::Configure(), PhotonCaldetNoise::Configure(), PhotonFullGreenTracker::Configure(), PhotonFullBlueTracker::Configure(), PhotonCompositeGreenTracker::Configure(), PhotonDefaultModel::Configure(), PhotonFullFibreModel::Configure(), PhotonFastBlueModel::Configure(), ScintPhoton::Configure(), InterGen_Neugen::Configure(), GeoMediumMap::ConfigureMedium(), GenieModule::CreateGeomVolSelector(), MadMKAnalysis::CreatePAN(), MadTVAnalysis::CreatePAN(), AlgEventSSList::CreatePrimaryShower(), AlgEventSRList::CreatePrimaryShower(), SimDetector::DefaultConfig(), DemoEventDump::DumpFragments(), RegistryValidate::DumpRegistry(), HistManModule::EndFile(), HistManModule::EndJob(), NC::EventAdderBuilder(), DbuDaqFileModule::ExtractRunAndFile(), RecordSetupModule::Get(), UgliLoanPool::GetAlwaysUseDbi(), Mint::GetDigits(), MomNavigator::GetFragmentByInputTag(), minos::GetFromWhiteBoard(), BeamMonBaseModule::GetHistMan(), UgliLoanPool::GetLeadStacks(), UgliLoanPool::GetMedium(), UgliLoanPool::GetMediumRegistry(), UgliLoanPool::GetMinervaVersion(), RawRecord::GetName(), GetRegistry(), UgliLoanPool::GetShieldOff(), Mint::GetShowers(), Anp::GetString(), Mint::GetStrips(), UgliLoanPool::GetSwimMethodHighField(), UgliLoanPool::GetSwimMethodLowField(), DataUtil::GetTempTagString(), Mint::GetTracks(), JobCModule::GetUniqueName(), UgliLoanPool::GetUseNewCavern(), BMPTHistoWeightCalculator::GetWeight(), NeugenWeightCalculator::GetWeight(), SKZPWeightCalculator::GetWeight(), BMPTWeightCalculator::GetWeight(), BeamEnergyCalculator::GetWeight(), MCMerge::GrabStreamEvents(), Anp::FiducialCut::Init(), PlexLoanPool::Instance(), UgliLoanPool::Instance(), AlgCalDetPID::IsAnOverlap(), RecRecordImp< T >::IsPerOwned(), RecRecordImp< T >::IsPersistedToOutputStream(), RecMinos::IsPersistedToOutputStream(), RecMinos::IsTransient(), RecRecordImp< T >::IsTransient(), main(), AlgEventSRList::MergeShowers(), NCExtraction::NCExtraction(), RecRecordImp< T >::PersistedToOutputStream(), RecMinos::PersistedToOutputStream(), Plexus::Plexus(), NC::CoordinateConverter::Prepare(), NCExtrapolationNone::Prepare(), NC::FitMaster::Prepare(), NCExtrapolation::Prepare(), NCExtrapolationBeamMatrix::Prepare(), NCExtrapolationPID::Prepare(), NCExtrapolationFarNear::Prepare(), NC::CoordinateConverter::PrepareOscillations(), MomNavigator::Print(), UgliLoanPool::PurgeDbiTableCache(), PlexLoanPool::PurgeDbiTableCache(), JobCDialog::Querry(), CfgDialog::Query(), Anp::Read(), IoInputModule::ReadHeader(), Anp::ReadList(), ClusterSRListModule::Reco(), DigitListModule::Reco(), FitShowerEMListModule::Reco(), DeMuxDigitListModule::Reco(), RecordSetupModule::Reco(), ShowerSRListModule::Reco(), FilterDigitListModule::Reco(), FitTrackSRListModule::Reco(), OltNewModule::Reco(), RemoveMuon::Reco(), FitTrackCamListModule::Reco(), StripSRListModule::Reco(), TrackSRListModule::Reco(), ShowerEMListModule::Reco(), EventSRListModule::Reco(), SliceSRListModule::Reco(), SubShowerSRListModule::Reco(), AlgEventSSList::ReConstructShowers(), AlgEventSRList::ReConstructShowers(), Cfg::RegistryToString(), AlgMuonRemoval::RunAlg(), AlgCaldetDigitList::RunAlg(), AlgFitTrackCam::RunAlg(), AlgDeMuxDigitList::RunAlg(), AlgTrackSRList::RunAlg(), AlgFitShowerEMList::RunAlg(), AlgRmMu::RunAlg(), AlgCosmicMuonRemoval::RunAlg(), AlgShowerSSList::RunAlg(), AlgMergeEvent::RunAlg(), AlgShowerSRList::RunAlg(), AlgTrackCamList::RunAlg(), AlgAltDeMux::RunAlg(), AlgFilterDigitList::RunAlg(), AlgEventSRList::RunAlg(), AlgFitTrackCamList::RunAlg(), AlgDigitList::RunAlg(), AlgEventSSList::RunAlg(), AlgPassThru::RunAlg(), AlgRmMuList::RunAlg(), AlgSubShowerSRList::RunAlg(), AlgCalDetPID::RunAlg(), AlgShowerEMList::RunAlg(), AlgFitTrackSRList::RunAlg(), AlgFilterDigitListSR::RunAlg(), AlgMCDigitList::RunAlg(), RegistryValidate::RunAllTests(), CfgPromptConfigurable::SafeMerge(), DbiRollbackDates::Set(), DbiSimFlagAssociation::Set(), UgliLoanPool::SetCut(), Anp::SetKey(), UgliLoanPool::SetMedium(), PerOutputStream::SetObject(), RegistryGui::SetPossibles(), UgliLoanPool::SetProcess(), RegistryGui::SetRegistry(), UgliLoanPool::SetTracking(), NC::CoordinateConverter::TryAddSystematic(), RegistryValidate::TypePromotionTest(), PlexLoanPool::~PlexLoanPool(), and UgliLoanPool::~UgliLoanPool().

char Registry::GetChar ( const char *  key  )  const

Access a value. Returns value if key lookup succeeds, else prints warning message. Use above Get() methods for a safer access method.

const char* Registry::GetCharString ( const char *  key  )  const
double Registry::GetDouble ( const char *  key  )  const

Referenced by ChopModule::Ana(), CandShowerHandle::ApplyRecoTrueCCCorrection(), AlgEventSSList::BuildEventFromUnassoc(), AlgEventSRList::BuildEventFromUnassoc(), CandShowerHandle::CalibrateEnergy(), AlgFarDetEvent::CalibrateShowerEnergy(), CountPot::Config(), TrackFilterBFCalibFD::Config(), MCMerge::Config(), FitContext::Config(), FiltMBSpillModule::Config(), TrackFilterBFCalibND::Config(), FardetBeamSelect::Config(), TrackEstimatorFixed::Config(), DataFT::Config(), JobCDemoModuleA::Config(), StopMuFinderFar::Configure(), InterGen_Neugen::Configure(), PhotonNdAfterpulseModel::Configure(), ClusterKG::Create(), AlgEventSSList::CreatePrimaryShower(), AlgEventSRList::CreatePrimaryShower(), DmxUtilities::FillPlaneArray(), AlgShowerSR::FindTimingDirection(), AlgEventSRList::FindUnassociated(), AlgEventSSList::FindUnassociated(), AlgClusterSRList::GenNeighborMap(), AlgFarDetEvent::GetDeWeightFactor(), AlgFitTrackSR::InitKalmanFitParameters(), AlgEventSRList::MatchOtherTracksInEvent(), BiggestChopModule::Reco(), AlgEventSSList::ReFillDist2Map(), AlgEventSRList::ReFillDist2Map(), AlgEventSRList::RemoveTracksinShowers(), AlgFitShowerEM::RunAlg(), AlgTrackSR::RunAlg(), AlgClusterSRList::RunAlg(), AlgTrackSRList::RunAlg(), AlgEventSR::RunAlg(), AlgTrackAtNu::RunAlg(), AlgShowerAtNu::RunAlg(), AlgShowerSRList::RunAlg(), AlgDeMuxBeam::RunAlg(), AlgAtNuReco::RunAlg(), AlgEventSRList::RunAlg(), AlgSubShowerSRList::RunAlg(), AlgEventSSList::RunAlg(), AlgShowerEM::RunAlg(), AlgDeMuxGolden::RunAlg(), AlgChopListFar::RunAlg(), AlgFilterDigitListAB::RunAlg(), AlgDeMuxCosmics::RunAlg(), AlgShowerCam::RunAlg(), AlgSubShowerSR::RunAlg(), AlgFitTrackSR::RunAlg(), AlgFarDetSlice::RunAlg(), AlgStripSRList::RunAlgFar(), AlgStripSRList::RunAlgMixed(), AlgStripSRList::RunAlgNear(), RegistryValidate::RunAllTests(), AlgEventSRList::SetPrimaryShowers(), AlgEventSSList::SetPrimaryShowers(), AlgFitTrackMS::SetupAlg(), AlgSliceSRList::SlicetheSnarl(), AlgSliceSRList::SlicetheSnarl_ASAP(), AlgSliceSRList::SlicetheSnarl_MST(), StripKG::TimePos(), and StripKG::XTalk().

int Registry::GetInt ( const char *  key  )  const

Referenced by ChopModule::Ana(), CandShowerHandle::BelongsWithShower(), CandTrackHandle::BelongsWithShower(), CandShowerSRHandle::BelongsWithTrack(), CandShowerHandle::BelongsWithTrack(), CandTrackHandle::BelongsWithTrack(), AlgEventSSList::BuildEventFromUnassoc(), AlgEventSRList::BuildEventFromUnassoc(), MNtpModule::Config(), TrackFilterBFCalibFD::Config(), DbuDaqFileModule::Config(), FitContext::Config(), MCMerge::Config(), FiltMBSpillModule::Config(), FardetBeamSelect::Config(), MergeEvent::Config(), TrackFilterBFCalibND::Config(), GetFidModule::Config(), DataFT::Config(), TrackEstimatorFixed::Config(), JobCDemoModuleA::Config(), PhotonStatSummarizer::ConfigModified(), PulserGainFit::ConfigModified(), StopMuFinderFar::Configure(), InterGen_Neugen::Configure(), ClusterKG::Create(), CellListKG::CreateCells(), ClusterListKG::CreateClusters(), StripListKG::CreateStrips(), DmxShowerPlane::DmxShowerPlane(), DbuDaqFileSummary::FillMapFromString(), DmxUtilities::FillPlaneArray(), AlgShowerSR::FindTimingDirection(), AlgClusterSRList::GenNeighborMap(), AlgFitTrackSR::InitKalmanFitParameters(), main(), DDSClient::Next(), NCExtrapolationPID::Prepare(), DbuDaqMonitorModule::ProcessRawRecord(), DbuDaqFileModule::ProcessRawRecord(), BiggestChopModule::Reco(), AlgFitShowerEM::RunAlg(), AlgClusterSRList::RunAlg(), AlgTrackSR::RunAlg(), AlgEventSR::RunAlg(), AlgTrackSRList::RunAlg(), AlgShowerAtNu::RunAlg(), AlgTrackAtNu::RunAlg(), AlgAtNuReco::RunAlg(), AlgDeMuxBeam::RunAlg(), AlgFarDetSliceList::RunAlg(), AlgShowerSRList::RunAlg(), AlgTrackCamList::RunAlg(), AlgShowerSR::RunAlg(), AlgSliceSRList::RunAlg(), AlgEventSSList::RunAlg(), AlgSubShowerSRList::RunAlg(), AlgDeMuxGolden::RunAlg(), AlgFarDetStripList::RunAlg(), AlgShowerEM::RunAlg(), AlgChopListFar::RunAlg(), AlgTrackCam::RunAlg(), AlgDeMuxCosmics::RunAlg(), AlgFilterDigitListAB::RunAlg(), AlgStripSR::RunAlg(), AlgShowerCam::RunAlg(), AlgFarDetSlice::RunAlg(), AlgFitTrackAtNu::RunAlg(), AlgFitTrackSR::RunAlg(), AlgSubShowerSR::RunAlg(), AlgStripSRList::RunAlgFar(), AlgStripSRList::RunAlgMixed(), AlgStripSRList::RunAlgNear(), RegistryValidate::RunAllTests(), AlgFitTrackMS::SetupAlg(), AlgSliceSRList::SlicetheSnarl_ASAP(), AlgSliceSRList::SlicetheSnarl_MST(), PerValidate::StreamMgrFileChangeSeq(), PerValidate::StreamMgrParallelFileSeq(), PerValidate::StreamMgrSelectionSeq(), PerValidate::StreamMgrSkipByThreeSeq(), PerValidate::StreamMgrSkipByTwoSeq(), PerValidate::StreamMgrTagsSeq(), PerValidate::StreamMgrTagsSeqZigZag(), StripSRKeyFromTime(), and DbuDaqFileModule::WritePythonFile().

Registry Registry::GetRegistry ( const char *  key  )  const

Definition at line 382 of file Registry.cxx.

References fErrorHandler, Get(), Nav::GetName(), Msg::kWarning, and MSG.

Referenced by Calibrator::ConfigScheme(), and RegistryValidate::RunAllTests().

00383 {
00384     Registry retval;
00385     if (Get(key,retval)) return retval;
00386     if (fErrorHandler) { fErrorHandler(); return retval; }
00387     else {
00388         MSG("Registry",Msg::kWarning)
00389             << "\nRegistry::GetTYPE: failed to get value for key \""
00390             << key << "\" from Registry \"" << this->GetName()
00391             << "\".  Aborting\n\n";
00392         bool must_get_a_value = false;
00393         assert(must_get_a_value);
00394         return retval;
00395     }
00396 }

const std::type_info & Registry::GetType ( const char *  key  )  const

Return the type_info of the value corresponding to the given key. If key doesn't exist, type_info for type void is returned.

Definition at line 398 of file Registry.cxx.

References fMap.

Referenced by TrackFilterBFCalibFD::Config(), StopMuFinderFar::Configure(), InterGen_Neugen::Configure(), dump_keys(), DbuDaqFileSummary::FillMapFromString(), and CfgPromptConfigurable::SafeMerge().

00399 {
00400     tRegMap::const_iterator mit = fMap.find(key);
00401     if (mit == fMap.end()) return typeid(void);
00402     return mit->second->GetType();
00403 }

string Registry::GetTypeAsString ( const char *  key  )  const

Return "int", "double", "char", "string", "Registry" or "void".

Definition at line 404 of file Registry.cxx.

References fMap.

Referenced by CfgPromptConfigurable::SafeMerge(), Anp::SetKey(), and RegistryGui::SetRegistry().

00405 {
00406     tRegMap::const_iterator mit = fMap.find(key);
00407     if (mit == fMap.end()) return "void";
00408     return mit->second->GetTypeAsString();
00409 }

string Registry::GetValueAsString ( const char *  key  )  const

see format.txt

Definition at line 411 of file Registry.cxx.

References fMap.

Referenced by CfgPromptConfigurable::SafeMerge(), RegistryGui::SetPossiblesMenu(), and RegistryGui::SetRegistry().

00412 {
00413     ostringstream os;
00414     tRegMap::const_iterator mit = fMap.find(key);
00415     if (mit == fMap.end()) return "";
00416     mit->second->PrintStream(os);
00417     return os.str();
00418 }

bool Registry::IsDirty (  )  [inline]

Definition at line 93 of file Registry.h.

References fDirty.

Referenced by CfgConfigurable::Update().

00093 { return fDirty; }

Registry::RegistryKey Registry::Key ( void   )  const
bool Registry::KeyExists ( const char *  key  )  const

Check if key exists.

Definition at line 106 of file Registry.cxx.

References fMap.

Referenced by AlgFarDetEvent::CalibrateShowerEnergy(), Anp::PlotKinem::Config(), Anp::FillTrack::Config(), Anp::PlotSnarl::Config(), Anp::FillNPlane::Config(), Anp::FillShortEvent::Config(), Anp::FillShortVar::Config(), Anp::PlotEvent::Config(), Anp::PlotShower::Config(), Anp::SelectCount::Config(), TrackFilterBFCalibFD::Config(), Anp::FillHeader::Config(), Anp::FillTruth::Config(), FitContext::Config(), Anp::PlotEff::Config(), Anp::PlotTime::Config(), Anp::SelectKinem::Config(), Anp::FillData::Config(), Anp::FillSnarl::Config(), Anp::PlotFlux::Config(), Anp::PlotPmt::Config(), Anp::PmtHit::Config(), Anp::SelectNC::Config(), Anp::PlotPur::Config(), Anp::RunModule::Config(), Anp::FillMuonId::Config(), Anp::PlotTrackGeom::Config(), Anp::SelectTrue::Config(), TrackFilterBFCalibND::Config(), Anp::DrawSnarl::Config(), Anp::FillMadId::Config(), Anp::PlotData::Config(), Anp::PlotShortSelect::Config(), Anp::PlotTrack::Config(), Anp::SelectNuMu::Config(), Anp::SelectReson::Config(), Anp::FillBasic::Config(), Anp::FillEvent::Config(), Anp::FillFlux::Config(), Anp::FillMRCC::Config(), Anp::SelectShort::Config(), Anp::RunAlgSnarl::Config(), Anp::FillShower::Config(), Anp::RunkNN::Config(), Anp::SelectSpill::Config(), DataFT::Config(), Anp::Interface::Config(), Anp::PlotBasic::Config(), Anp::SelectAntiNeutrino::Config(), Anp::SelectFlux::Config(), TrackEstimatorFixed::Config(), JobCDemoModuleA::Config(), Anp::PlotTruth::Config(), Anp::SelectFiducial::Config(), Anp::PlotReson::Config(), Anp::PlotVtx::Config(), StopMuFinderFar::Configure(), AlgFarDetEvent::GetDeWeightFactor(), PlexLoanPool::Instance(), UgliLoanPool::Instance(), Anp::ReadRegistry(), AlgFitTrackCam::RunAlg(), AlgTrackCamList::RunAlg(), AlgTrackCam::RunAlg(), AlgShowerCam::RunAlg(), RegistryValidate::RunAllTests(), CfgPromptConfigurable::SafeMerge(), JobCModule::SetUniqueName(), PlexLoanPool::~PlexLoanPool(), and UgliLoanPool::~UgliLoanPool().

00107 {
00108     return fMap.find(key) != fMap.end();
00109 }

virtual bool Registry::KeysLocked ( void   )  const [inline, virtual]

Control if new key/value pairs can be added.

Definition at line 84 of file Registry.h.

References fKeysLocked.

Referenced by BeamMonCuts::FillRegistry(), DbiConfigStream::operator>>(), CfgPromptConfigurable::SafeMerge(), Anp::SetKey(), and JobCModule::SetUniqueName().

00084 { return fKeysLocked; }

virtual void Registry::LockKeys ( void   )  [inline, virtual]
virtual void Registry::LockValues ( void   )  [inline, virtual]

Definition at line 80 of file Registry.h.

References fValuesLocked.

Referenced by AltDeMuxModule::AltDeMuxModule(), atmo_configure_common(), ReweightHelpers::BeamRegistryFilla(), DmxDeMuxFilterModule::BeginJob(), XTalkFilter::Config(), TestDataModule::Config(), SystematicGains::Config(), Anp::StdHepTab::Config(), Anp::SnarlTimeTab::Config(), SKZPWeightCalculator::Config(), SetKNNModule::Config(), PETrimmer::Config(), JobCModule::Config(), FitTrackMSListModule::Config(), FillDataModule::Config(), FarDetStripListModule::Config(), FarDetSliceListModule::Config(), FarDetShieldPlankListModule::Config(), Anp::EventHitTab::Config(), Anp::EventAdcTab::Config(), Cluster3DModule::Config(), AtNuFitModule::Config(), AtNuFindModule::Config(), AlignmentModule::Config(), NuZBeamReweight::CreateNeugenRegistry(), MadTVAnalysis::CreatePAN(), XTalkFilter::DefaultConfig(), WriteStdHepFileModule::DefaultConfig(), VtxModule::DefaultConfig(), ValidateRawChecksums::DefaultConfig(), UserAnalysis::DefaultConfig(), UgliLoanPool::DefaultConfig(), UberPlotsModule::DefaultConfig(), TrimModule::DefaultConfig(), TrackCamListModule::DefaultConfig(), ToyMCModule::DefaultConfig(), SystematicGains::DefaultConfig(), StripCands::DefaultConfig(), StopMuFilterModule::DefaultConfig(), SpillTypeFilter::DefaultConfig(), SliceFromChopModule::DefaultConfig(), SimCheck::DefaultConfig(), ShieldPlankListModule::DefaultConfig(), ScintHitTruthModule::DefaultConfig(), ScintCalModule::DefaultConfig(), RunSummary::DefaultConfig(), RunFileModule::DefaultConfig(), RotoClientModule::DefaultConfig(), RerootToTruthModule::DefaultConfig(), RemoveMuon::DefaultConfig(), RecoTreeModule::DefaultConfig(), RecordSetupModule::DefaultConfig(), RealCalDetPIDModule::DefaultConfig(), ReadDispatcherModule::DefaultConfig(), RawRecCounts::DefaultConfig(), RateSummary::DefaultConfig(), PurgeCandidateModule::DefaultConfig(), PulserTimingMaker::DefaultConfig(), PulserDDSCheck::DefaultConfig(), PTSimModule::DefaultConfig(), PrintStat::DefaultConfig(), PreFilter::DefaultConfig(), PlexLoanPool::DefaultConfig(), PIDEval::DefaultConfig(), PETrimmer::DefaultConfig(), ParticleTruthMaker::DefaultConfig(), ParticleReport::DefaultConfig(), ParticlePIDSaver::DefaultConfig(), ParticleFinder::DefaultConfig(), ParticleFilterModule::DefaultConfig(), ParticleDisplay::DefaultConfig(), ParticleAna::DefaultConfig(), OltTimeScan::DefaultConfig(), OltTimePlot::DefaultConfig(), OltRawLI::DefaultConfig(), OltNewModule::DefaultConfig(), OltEnds::DefaultConfig(), OltDataIntegrity::DefaultConfig(), OltBlockScan::DefaultConfig(), NuModule::DefaultConfig(), NueSensitivity::DefaultConfig(), NueReweight::DefaultConfig(), NuePrint::DefaultConfig(), NueModule::DefaultConfig(), NueHandScan::DefaultConfig(), NueDisplayModule::DefaultConfig(), NueBeamMonModule::DefaultConfig(), NueAnalysisCuts::DefaultConfig(), NuDemoModule::DefaultConfig(), NtpTHModule::DefaultConfig(), NtpStTrimmer::DefaultConfig(), NtpStModule::DefaultConfig(), NtpStFilterModule::DefaultConfig(), NtpSRModule::DefaultConfig(), NtpSRFilterModule::DefaultConfig(), NtpMRModule::DefaultConfig(), NtpMCModule::DefaultConfig(), NtpMaker::DefaultConfig(), NtpFitSAModule::DefaultConfig(), NtpEMModule::DefaultConfig(), NtpBDLiteModule::DefaultConfig(), NoiseFilterModule::DefaultConfig(), NeardetBeamSelect::DefaultConfig(), NDSgateTimeLooter::DefaultConfig(), NC::FitMaster::DefaultConfig(), NCExtrapolationPID::DefaultConfig(), NCExtrapolationNone::DefaultConfig(), NCExtrapolationModule::DefaultConfig(), NCExtrapolationFarNear::DefaultConfig(), NCExtrapolationBeamMatrix::DefaultConfig(), NCExtrapolation::DefaultConfig(), NCDataQualityModule::DefaultConfig(), NC::CoordinateConverter::DefaultConfig(), MSTTemplate::DefaultConfig(), MnvRawDigitSuppression::DefaultConfig(), MNtpModule::DefaultConfig(), MicroDSTMaker::DefaultConfig(), MeuCalModule::DefaultConfig(), MergeEvent::DefaultConfig(), MCNNMergeModule::DefaultConfig(), MCMonitorCosmic::DefaultConfig(), MCMonitorBeam::DefaultConfig(), MCMerge::DefaultConfig(), MCInitModule::DefaultConfig(), MCAnalysis::DefaultConfig(), LISummaryModule::DefaultConfig(), LightInjector::DefaultConfig(), JobCDemoModuleA::DefaultConfig(), IoOutputModule::DefaultConfig(), IoInputModule::DefaultConfig(), HepevtModule::DefaultConfig(), GetFidModule::DefaultConfig(), GenieModule::DefaultConfig(), FixModule::DefaultConfig(), FitTrackMSListModule::DefaultConfig(), FitTrackCamListModule::DefaultConfig(), FitTrackCamAnalysisModule::DefaultConfig(), FiltTriggerPrescale::DefaultConfig(), FiltSGateModule::DefaultConfig(), FiltMBSpillModule::DefaultConfig(), FilterStream::DefaultConfig(), FilterRunType::DefaultConfig(), FilterLIModule::DefaultConfig(), FilterDigitListModule::DefaultConfig(), FillSpillServerMon::DefaultConfig(), FillPIDFromText::DefaultConfig(), FillNearRunQuality::DefaultConfig(), FillHvFromSingles::DefaultConfig(), FillFarRunQuality::DefaultConfig(), FillBadChannelDB::DefaultConfig(), FCPCFilterModule::DefaultConfig(), FarmListModule::DefaultConfig(), FarDetTpSinglesDump::DefaultConfig(), FarDetStripListModule::DefaultConfig(), FarDetSliceListModule::DefaultConfig(), FarDetShieldPlankListModule::DefaultConfig(), FarDetRawRateDump::DefaultConfig(), FarDetRawDigitDump::DefaultConfig(), FarDetEventModule::DefaultConfig(), FarDetDeadChipModule::DefaultConfig(), FarDetDataQualityModule::DefaultConfig(), FardetBeamSelect::DefaultConfig(), EvtKinNuModule::DefaultConfig(), EvtAddRawDigitBlockModule::DefaultConfig(), DumpBadElectronics::DefaultConfig(), DummyModule::DefaultConfig(), DmxDeMuxModule::DefaultConfig(), DmxDeMuxCosmicsModule::DefaultConfig(), DigitListModule::DefaultConfig(), DeMuxDigitListModule::DefaultConfig(), DemoRecordModule::DefaultConfig(), DemoNPlaneCut::DefaultConfig(), DemoMCFilter::DefaultConfig(), DemoEventDump::DefaultConfig(), DemoDataReject::DefaultConfig(), DemoCandNtpModule::DefaultConfig(), DDSPaceModule::DefaultConfig(), DbuDaqMonitorModule::DefaultConfig(), DbuDaqFileModule::DefaultConfig(), DataQualityReader::DefaultConfig(), DataQualityFilter::DefaultConfig(), Cutter::DefaultConfig(), CustomLightInjector::DefaultConfig(), CountPot::DefaultConfig(), CondensedNtpModuleNC::DefaultConfig(), CondensedNtpModuleAtm::DefaultConfig(), CondensedNtpModule::DefaultConfig(), CompareMD::DefaultConfig(), CompareAll::DefaultConfig(), Cluster3DModule::DefaultConfig(), ChopModule::DefaultConfig(), CheckND::DefaultConfig(), CDPreFilterModule::DefaultConfig(), CalDet2003PlotsModule::DefaultConfig(), BMSpillAna::DefaultConfig(), Blinder::DefaultConfig(), BiggestChopModule::DefaultConfig(), BfldLoanPool::DefaultConfig(), AutoPIDMaker::DefaultConfig(), AtNuTreeModule::DefaultConfig(), AtNuFitModule::DefaultConfig(), AtNuFindModule::DefaultConfig(), AtNuDisplayModule::DefaultConfig(), AtmosShowerListModule::DefaultConfig(), AnaTrim::DefaultConfig(), AltDeMuxModule::DefaultConfig(), DmxDeMuxCosmicsModule::DmxDeMuxCosmicsModule(), DmxDeMuxModule::DmxDeMuxModule(), NueSystematic::DoNeugenCalc(), NC::EventAdderDefaultConfig(), ReweightHelpers::EventRegistryFilla(), DbuDaqFileSummary::FillMapFromString(), NuParent::FillRegistry(), BeamMonCuts::FillRegistry(), MeuCuts::GetBDSelectSpillInfo(), MiniPlotMaker::GetReweight(), DbuDaqFileSummary::GetStringFromMap(), AlignmentModule::Init(), NuPIDInterface::InitialiseRoID2007(), NuPIDInterface::InitialiseRoIDNuMuBar(), NuBeam::IsGoodSpillAndFillPot(), PerInputStreamManager::LoadRecordWithTag(), CfgPromptConfigurable::LockValues(), main(), PANAnalysis::MakeReweightTree(), NueModule::NueModule(), DbiConfigStream::operator>>(), NtpTools::PassBeamCuts(), RecRecordImp< T >::PersistedToOutputStream(), RecMinos::PersistedToOutputStream(), PhotonConfiguration(), Anp::ReadRegistry(), RealCalDetPIDModule::Reco(), NueReweight::Reco(), FitTrackCamListModule::Reco(), NueReweight::Reset(), AlgRmMuList::RunAlg(), AlgMuonRemoval::RunAlg(), AlgCosmicMuonRemoval::RunAlg(), RegistryValidate::RunAllTests(), TestBMCutsFiller::RunIt(), StndBmsSpin::Scan(), JobCModule::Set(), CfgConfigurable::Set(), CfgDialog::SetCurrent(), UgliLoanPool::SetCut(), CfgDialog::SetDefault(), Anp::SetKey(), UgliLoanPool::SetMedium(), RecRecordImp< T >::SetPerOwned(), UgliLoanPool::SetProcess(), UgliLoanPool::SetTracking(), RecRecordImp< T >::SetTransient(), RecMinos::SetTransient(), and JobCommand::StringToRegistry().

00080 { fValuesLocked = true; } //*MENU*

void Registry::Merge ( const Registry rhs  ) 

Copy rhs into this, respects this's locks.

Definition at line 76 of file Registry.cxx.

References fKeysLocked, fMap, fValuesLocked, Nav::GetName(), Key(), Msg::kWarning, MSG, and SetDirty().

Referenced by TestDataModule::Config(), Anp::StdHepTab::Config(), Anp::SnarlTimeTab::Config(), SetKNNModule::Config(), Anp::SelectTrue::Config(), Anp::SelectNuMu::Config(), Anp::SelectKinem::Config(), Anp::SelectCount::Config(), Anp::RunkNN::Config(), Anp::Interface::Config(), FitTrackMSListModule::Config(), FillDataModule::Config(), Anp::EventHitTab::Config(), Anp::EventAdcTab::Config(), DetSim::Config(), AlignmentModule::Config(), NC::FitMaster::DefaultConfig(), NCExtrapolationModule::DefaultConfig(), DetSim::DefaultConfig(), Cluster3DModule::DefaultConfig(), UgliLoanPool::Instance(), PlexLoanPool::Instance(), BfldLoanPool::Instance(), run(), RegistryValidate::RunAllTests(), JobCModule::Set(), CfgConfigurable::Set(), and testConf().

00077 {
00078     if (this == &rhs) return;
00079 
00080     RegistryKey rk = rhs.Key();
00081     const char* s;
00082     while ( (s = rk()) ) {
00083         tRegMap::iterator mit = fMap.find(s);
00084         bool exists = mit != fMap.end();
00085         
00086         if (fKeysLocked && !exists) {
00087             MSG("Registry",Msg::kWarning) 
00088                 << "Merge: can't, add new key " << s <<", keys locked."
00089                 << "  merger=" << this->GetName() 
00090                 << ", mergie=" << rhs.GetName() << endl;
00091             continue;
00092         }        
00093         if (exists && fValuesLocked) {
00094             MSG("Registry",Msg::kWarning) 
00095                 << "Merge: can't, merge key " << s <<", values locked."
00096                 << "  merger=" << this->GetName() 
00097                 << ", mergie=" << rhs.GetName() << endl;
00098             continue;
00099         }
00100         if (exists) delete mit->second;
00101         fMap[s] = rhs.fMap.find(s)->second->Dup();
00102     }
00103     this->SetDirty();
00104 }

Registry & Registry::operator= ( const Registry rhs  ) 

Deep assignment.

Definition at line 52 of file Registry.cxx.

References Clear(), fKeysLocked, fMap, fValuesLocked, Key(), SetDirty(), Size(), UnLockKeys(), and UnLockValues().

00053 {
00054     if (this == &rhs) return *this;
00055 
00056     UnLockValues();
00057     UnLockKeys();
00058 
00059     // If we are already holding something - clear it.
00060     if (Size() != 0) Clear();
00061 
00062     RegistryKey rk = rhs.Key();
00063     const char* s;
00064 
00065     while ( (s = rk()) ) fMap[s] = rhs.fMap.find(s)->second->Dup();
00066 
00067     fValuesLocked = rhs.fValuesLocked;
00068     fKeysLocked   = rhs.fKeysLocked;
00069     this->SetDirty();
00070     this->SetName(rhs.GetName());
00071     
00072     // Do like copy ctor.
00073     return *this;
00074 }

virtual std::ostream& Registry::PrettyPrint ( std::ostream &  os  )  const [virtual]
void Registry::Print ( Option_t *  option = ""  )  const [virtual]
std::ostream & Registry::PrintStream ( std::ostream &  os  )  const [virtual]

Print to cout (without extraneous bits of Dump()).

Reimplemented in RecJobRecord.

Definition at line 475 of file Registry.cxx.

References done(), fMap, and Nav::GetName().

Referenced by NuEvtKin::FormatToOStream(), DbuDaqFileSummary::GetStringFromMap(), operator<<(), DbiConfigStream::operator<<(), RegistryValidate::ReadWriteTest(), BeamMonCuts::SetCutValues(), and OltNewModule::WriteConfig().

00476 {
00477     os << "['" << this->GetName() << "'";
00478     
00479     tRegMap::const_iterator mit, done = fMap.end();
00480     for (mit = fMap.begin(); mit != done; ++mit) {
00481         os << " '" << mit->first << "'=(";
00482         os << mit->second->GetTypeAsString();
00483         os << ")";
00484         mit->second->PrintStream(os);
00485     }
00486 
00487     os << "]";
00488     return os;
00489 }

std::istream & Registry::ReadStream ( std::istream &  is  )  [virtual]

Definition at line 499 of file Registry.cxx.

References bail(), fMap, Util::read_quoted_string(), RegistryItem::ReadStream(), and reg.

Referenced by DbuDaqFileSummary::FillMapFromString(), BeamMonCuts::FillRegistry(), RegistryGui::GetRegistry(), DbiConfigStream::operator>>(), and RegistryValidate::ReadWriteTest().

00500 {
00501     Registry reg;
00502 
00503     char c;
00504     if (!is.get(c)) return bail(is);
00505     if (c != '[') {
00506         is.putback(c);
00507         return bail(is);
00508     }
00509     string name = Util::read_quoted_string(is);
00510     reg.SetName(name.c_str());
00511 
00512     while (is.get(c)) {
00513         if (isspace(c)) continue;
00514         if (c == ']') {
00515             *this = reg;
00516             return is;
00517         }
00518         is.putback(c);
00519 
00520         // get the key
00521         string key = read_quoted_string(is);
00522         if (key == "") return bail(is);
00523 
00524         // skip the "="
00525         if (!is.get(c)) return bail(is);
00526 
00527         // get the "("
00528         if (!is.get(c) || c != '(') {
00529             is.putback(c);
00530             return bail(is);
00531         }
00532         
00533         // get the type
00534         string type;
00535         while (is.get(c)) {
00536             if (c == ')') break;
00537             type += c;
00538         }
00539         
00540         // factory:
00541         RegistryItem* ri = 0;
00542         if (type == "char") 
00543             ri = new RegistryItemXxx<char>();
00544         else if (type == "int")
00545             ri = new RegistryItemXxx<int>();
00546         else if (type == "double")
00547             ri = new RegistryItemXxx<double>();
00548         else if (type == "string")
00549             ri = new RegistryItemXxx<const char*>();
00550         else if (type == "Registry")
00551             ri = new RegistryItemXxx<Registry>();
00552         else return bail(is);
00553 
00554         ri->ReadStream(is);
00555         reg.fMap[key] = ri;
00556     }
00557     return is;
00558   
00559 }

void Registry::RemoveKey ( const char *  key  ) 

Definition at line 111 of file Registry.cxx.

References fMap, and SetDirty().

Referenced by DbiTableProxyRegistry::Config(), Anp::Interface::Config(), RecMinos::HasBeenModified(), RecRecordImp< T >::HasBeenModified(), UgliLoanPool::ReadFromFile(), PlexLoanPool::ReadFromFile(), RegistryValidate::RunAllTests(), DbiRollbackDates::Set(), and DbiSimFlagAssociation::Set().

00112 {
00113     tRegMap::iterator dead = fMap.find(key);
00114     if (dead == fMap.end()) return;
00115     fMap.erase(dead);
00116     delete dead->second;
00117     this->SetDirty();
00118 }

bool Registry::Set ( const char *  key,
Registry  r 
)
bool Registry::Set ( const char *  key,
double  d 
)
bool Registry::Set ( const char *  key,
int  i 
)
bool Registry::Set ( const char *  key,
const char *  s 
)

Definition at line 271 of file Registry.cxx.

References fKeysLocked, fMap, fValuesLocked, Nav::GetName(), Msg::kWarning, MSG, and SetDirty().

00272 {
00273     tRegMap::iterator mit = fMap.find(key);
00274     if (mit != fMap.end()) {    // Found it
00275         if (fValuesLocked) {
00276             MSG("Registry",Msg::kWarning) 
00277                 << "Set: Values are locked - not overwriting `"
00278                 << key << "\" with \"" << val << "\" in registry \"" << this->GetName() << "\"\n";
00279             return false;
00280         }
00281         if (! dynamic_cast<RegistryItemXxx<const char*>*>(mit->second) ) {
00282             MSG("Registry",Msg::kWarning)
00283                 << "Set: attempt to overwrite old value for key \""
00284                 << key << "\" with different type value "
00285                 << val << " in registry \"" << this->GetName() << "\"\n";
00286             return false;
00287         }
00288         delete mit->second;
00289         fMap.erase(mit);
00290     }
00291     else {                      // didn't find it
00292         if (fKeysLocked) {
00293             MSG("Registry",Msg::kWarning) 
00294                 << "Registry::Set: Keys are locked - not adding `" 
00295                 << key << "' in registry \"" << this->GetName() << "\"\n";
00296             return false;
00297         }
00298     }
00299 
00300     char** cpp = new char*;
00301     (*cpp) = new char [strlen(val)+1];
00302     strcpy(*cpp,val);
00303     const char** ccpp = const_cast<const char**>(cpp);
00304     RegistryItem* ri = new RegistryItemXxx< const char* >(ccpp);
00305     fMap[key] = ri;
00306     this->SetDirty();
00307     return true;
00308 }

bool Registry::Set ( const char *  key,
char  c 
)

Set the value associated with the given key. Return false if locks prevent setting or if type mismatch.

Referenced by add_contour(), add_option_reg(), add_projection(), Jint::AddPath(), RegistryValidate::AddToRegistry(), adjust_systematic(), AltDeMuxModule::AltDeMuxModule(), atmo_configure_common(), ReweightHelpers::BeamRegistryFilla(), DmxDeMuxFilterModule::BeginJob(), Calibrator::Calibrator(), Conf::Conf(), AtNuFindModule::Config(), Anp::SelectKinem::Config(), FarDetSliceListModule::Config(), Anp::SelectTrue::Config(), AtNuFitModule::Config(), Cluster3DModule::Config(), FarDetStripListModule::Config(), Anp::SelectNuMu::Config(), SKZPWeightCalculator::Config(), MadPIDAnalysis::ConfigureRoID(), NuZBeamReweight::CreateNeugenRegistry(), MadTVAnalysis::CreatePAN(), DigitListModule::DefaultConfig(), EventSRListModule::DefaultConfig(), EvtKinNuModule::DefaultConfig(), FarDetStripListModule::DefaultConfig(), FiltSGateModule::DefaultConfig(), MCAnalysis::DefaultConfig(), MCInitModule::DefaultConfig(), NtpMaker::DefaultConfig(), NtpStTrimmer::DefaultConfig(), NueDisplayModule::DefaultConfig(), PrintStat::DefaultConfig(), RotoClientModule::DefaultConfig(), SpillTypeFilter::DefaultConfig(), BDSpliceModule::DefaultConfig(), DetSim::DefaultConfig(), FillBadChannelDB::DefaultConfig(), GenieModule::DefaultConfig(), NtpEMModule::DefaultConfig(), Blinder::DefaultConfig(), FarDetDeadChipModule::DefaultConfig(), NC::CoordinateConverter::DefaultConfig(), NtpFitSAModule::DefaultConfig(), PurgeCandidateModule::DefaultConfig(), UgliLoanPool::DefaultConfig(), ClusterSRListModule::DefaultConfig(), DemoEventDump::DefaultConfig(), EvtInfoInjectorModule::DefaultConfig(), FardetBeamSelect::DefaultConfig(), FarDetSliceListModule::DefaultConfig(), NtpStModule::DefaultConfig(), NuePrint::DefaultConfig(), StripSRListModule::DefaultConfig(), AtNuFitModule::DefaultConfig(), BfldLoanPool::DefaultConfig(), FarDetTpSinglesDump::DefaultConfig(), FCPCFilterModule::DefaultConfig(), PETrimmer::DefaultConfig(), ValidateRawChecksums::DefaultConfig(), XTalkFilter::DefaultConfig(), AtmosShowerListModule::DefaultConfig(), CDFMonitoringModule::DefaultConfig(), NtpBDLiteModule::DefaultConfig(), NuModule::DefaultConfig(), OltDataIntegrity::DefaultConfig(), OltNewModule::DefaultConfig(), StopMuFilterModule::DefaultConfig(), UberPlotsModule::DefaultConfig(), CondensedNtpModuleAtm::DefaultConfig(), DbuDaqFileModule::DefaultConfig(), EvtAddRawDigitBlockModule::DefaultConfig(), FilterRunType::DefaultConfig(), JobCDemoModuleA::DefaultConfig(), MSTTemplate::DefaultConfig(), NCExtrapolationNone::DefaultConfig(), NtpStFilterModule::DefaultConfig(), NueHandScan::DefaultConfig(), OltEnds::DefaultConfig(), ParticlePIDSaver::DefaultConfig(), SubShowerSRListModule::DefaultConfig(), TrackCamListModule::DefaultConfig(), CountPot::DefaultConfig(), CustomLightInjector::DefaultConfig(), DeMuxDigitListModule::DefaultConfig(), DmxDeMuxModule::DefaultConfig(), FillFarRunQuality::DefaultConfig(), FillNearRunQuality::DefaultConfig(), FiltTriggerPrescale::DefaultConfig(), MCMerge::DefaultConfig(), NCExtrapolationBeamMatrix::DefaultConfig(), NCExtrapolationFarNear::DefaultConfig(), NDSgateTimeLooter::DefaultConfig(), NueAnalysisCuts::DefaultConfig(), OltRawLI::DefaultConfig(), RealCalDetPIDModule::DefaultConfig(), RunFileModule::DefaultConfig(), ShowerSRListModule::DefaultConfig(), TrimModule::DefaultConfig(), CalDet2003PlotsModule::DefaultConfig(), CDPreFilterModule::DefaultConfig(), CondensedNtpModule::DefaultConfig(), DemoDataReject::DefaultConfig(), FarDetDataQualityModule::DefaultConfig(), FilterStream::DefaultConfig(), FixModule::DefaultConfig(), MergeEvent::DefaultConfig(), NtpSRModule::DefaultConfig(), ParticleAna::DefaultConfig(), ParticleFinder::DefaultConfig(), RateSummary::DefaultConfig(), RecordSetupModule::DefaultConfig(), ShieldPlankListModule::DefaultConfig(), StripCands::DefaultConfig(), UserAnalysis::DefaultConfig(), AtNuDisplayModule::DefaultConfig(), AutoPIDMaker::DefaultConfig(), ChopModule::DefaultConfig(), CompareAll::DefaultConfig(), FitTrackCamListModule::DefaultConfig(), FitTrackMSListModule::DefaultConfig(), FitTrackSRListModule::DefaultConfig(), NC::FitMaster::DefaultConfig(), NueBeamMonModule::DefaultConfig(), ParticleDisplay::DefaultConfig(), PreFilter::DefaultConfig(), PTSimModule::DefaultConfig(), ReadDispatcherModule::DefaultConfig(), WriteStdHepFileModule::DefaultConfig(), BMSpillAna::DefaultConfig(), CondensedNtpModuleNC::DefaultConfig(), IoInputModule::DefaultConfig(), LISummaryModule::DefaultConfig(), NtpMCModule::DefaultConfig(), NueReweight::DefaultConfig(), RerootToTruthModule::DefaultConfig(), TrackSRListModule::DefaultConfig(), FarDetEventModule::DefaultConfig(), FillHvFromSingles::DefaultConfig(), FillPIDFromText::DefaultConfig(), FilterLIModule::DefaultConfig(), FiltMBSpillModule::DefaultConfig(), GetFidModule::DefaultConfig(), LightInjector::DefaultConfig(), MCMonitorBeam::DefaultConfig(), MCNNMergeModule::DefaultConfig(), MnvRawDigitSuppression::DefaultConfig(), NCExtrapolationPID::DefaultConfig(), NueSensitivity::DefaultConfig(), SleepModule::DefaultConfig(), SliceSRListModule::DefaultConfig(), Cutter::DefaultConfig(), DataQualityFilter::DefaultConfig(), DmxDeMuxCosmicsModule::DefaultConfig(), FarDetShieldPlankListModule::DefaultConfig(), FarmListModule::DefaultConfig(), FitShowerEMListModule::DefaultConfig(), RunSummary::DefaultConfig(), ShowerEMListModule::DefaultConfig(), SimDetector::DefaultConfig(), AtNuFindModule::DefaultConfig(), AtNuTreeModule::DefaultConfig(), Cluster3DModule::DefaultConfig(), FitTrackCamAnalysisModule::DefaultConfig(), FitTrackSAListModule::DefaultConfig(), HepevtModule::DefaultConfig(), HistManModule::DefaultConfig(), OltTimeScan::DefaultConfig(), PhotonInjector::DefaultConfig(), RecoTreeModule::DefaultConfig(), RemoveMuon::DefaultConfig(), SelectSpillTimes::DefaultConfig(), SelectSpillTriggers::DefaultConfig(), BiggestChopModule::DefaultConfig(), DataQualityReader::DefaultConfig(), DbuDaqMonitorModule::DefaultConfig(), DemoNPlaneCut::DefaultConfig(), FarDetRawDigitDump::DefaultConfig(), FarDetRawRateDump::DefaultConfig(), MicroDSTMaker::DefaultConfig(), NtpTHModule::DefaultConfig(), DemoMCFilter::DefaultConfig(), FilterDigitListModule::DefaultConfig(), IoOutputModule::DefaultConfig(), MCMonitorCosmic::DefaultConfig(), NCDataQualityModule::DefaultConfig(), NCExtrapolation::DefaultConfig(), NCExtrapolationModule::DefaultConfig(), NoiseFilterModule::DefaultConfig(), NtpSRFilterModule::DefaultConfig(), OltBlockScan::DefaultConfig(), ParticleFilterModule::DefaultConfig(), PIDEval::DefaultConfig(), PlexLoanPool::DefaultConfig(), PulserDDSCheck::DefaultConfig(), ScintHitTruthModule::DefaultConfig(), SliceFromChopModule::DefaultConfig(), ToyMCModule::DefaultConfig(), AltDeMuxModule::DefaultConfig(), CompareMD::DefaultConfig(), FillSpillServerMon::DefaultConfig(), MNtpModule::DefaultConfig(), NueModule::DefaultConfig(), PulserTimingMaker::DefaultConfig(), RawRecCounts::DefaultConfig(), ScintCalModule::DefaultConfig(), SystematicGains::DefaultConfig(), BeamMonBaseModule::DefaultConfigWritable(), DmxDeMuxCosmicsModule::DmxDeMuxCosmicsModule(), DmxDeMuxModule::DmxDeMuxModule(), do_extractions(), do_syst_interpolation(), NCExtrapolationModule::DoMockExperiments(), NueSystematic::DoNeugenCalc(), RegistryValidate::DumpRegistry(), NC::EventAdderDefaultConfig(), ReweightHelpers::EventRegistryFilla(), farnear_smooth_width(), RegistryValidate::FillRegistry(), NuParent::FillRegistry(), NCEventInfo::FindNeugenWeight(), HepevtModule::FindOrCreateSimSnarlRecord(), fit_osc_param(), fit_systematic(), fix_osc_param(), force_best_fit_to_truth(), CustomLightInjector::Get(), RerootFlsDigitToDigiPE::Get(), MCMerge::Get(), RerootToRawDataModule::Get(), GenieModule::Get(), ToyMCModule::Get(), RerootToTruthModule::Get(), EvtKinNuModule::Get(), DetSim::Get(), PhotonInjector::Get(), LightInjector::Get(), MeuCuts::GetBDSelectSpillInfo(), NC::FitMaster::GetBestFitPointAsRegistry(), Calibrator::GetCompleteConfiguration(), RegistryGui::GetRegistry(), MiniPlotMaker::GetReweight(), DbuDaqFileSummary::GetStringFromMap(), SKZPWeightCalculator::GetWeight(), GfxDigitListCfg::GfxDigitListCfg(), GfxStripListCfg::GfxStripListCfg(), AlignmentModule::Init(), PulserGainFit::Init(), CheezyPage::InitConfig(), NuPIDInterface::InitialiseJmID(), NuPIDInterface::InitialiseRoID(), NuPIDInterface::InitialiseRoID2007(), NuPIDInterface::InitialiseRoIDNuMuBar(), ANtpInfoObjectFillerNC::InitializekNN(), NuBeam::IsGoodSpillAndFillPot(), Jint::Jint(), PerInputStreamManager::LoadRecordWithTag(), MadMKAnalysis::MadMKAnalysis(), MadTVAnalysis::MadTVAnalysis(), main(), make_shifted_beams(), PANAnalysis::MakeReweightTree(), MIPCalScheme::MIPCalScheme(), MuonDriftCalScheme::MuonDriftCalScheme(), NuSystematic::NeugenXSecShift(), DDSClient::Next(), NtpTools::PassBeamCuts(), PEGainAggCalScheme::PEGainAggCalScheme(), PEGainCalScheme::PEGainCalScheme(), RecRecordImp< T >::PersistedToOutputStream(), RecMinos::PersistedToOutputStream(), PhotonConfiguration(), PhotonStatSummarizer::PhotonStatSummarizer(), pid_binning(), pid_emulate_farnear(), pid_true_bin_factor(), PmtDriftCalScheme::PmtDriftCalScheme(), minos::PostOnWhiteBoard(), PulserDriftCalScheme::PulserDriftCalScheme(), PulserSigLinCalScheme::PulserSigLinCalScheme(), PulserTimeCalScheme::PulserTimeCalScheme(), QuadLinearityCalScheme::QuadLinearityCalScheme(), JobCDialog::Querry(), CfgDialog::Query(), Anp::ReadRegistry(), RegistryValidate::ReadWriteTest(), RecJobRecord::RecJobRecord(), FitTrackCamListModule::Reco(), NueReweight::Reco(), RealCalDetPIDModule::Reco(), SetKNNModule::Reco(), run(), AlgMuonRemoval::RunAlg(), AlgCosmicMuonRemoval::RunAlg(), AlgRmMuList::RunAlg(), RegistryValidate::RunAllTests(), TestBMCutsFiller::RunIt(), CfgPromptConfigurable::SafeMerge(), Anp::SelectCount::SelectCount(), CfgPromptConfigurable::Set(), set_ann_use_lowE(), set_beam_types(), set_beamtype(), set_cuts(), set_data_mc_path(), set_data_mc_type(), set_dir(), set_extraction(), set_far_run_limits(), set_file_limit(), set_fitter_params(), set_mc_version(), set_mda_mc_path(), set_model_to_fit(), set_near_run_limits(), set_osc_pars(), set_output(), set_pdf_training_file(), set_prediction(), set_run_to_use(), set_syst_study_params(), set_use_custom_pid_cut_and_value(), MadTVAnalysis::SetBECFile(), MadMKAnalysis::SetBECFile(), UgliLoanPool::SetCut(), Anp::SetKey(), UgliLoanPool::SetMedium(), NuSystematic::SetNeugenDefaults(), RecRecordImp< T >::SetPerOwned(), UgliLoanPool::SetProcess(), NuSystematic::SetShiftedNeugenParameters(), UgliLoanPool::SetTracking(), RecRecordImp< T >::SetTransient(), RecMinos::SetTransient(), JobCModule::SetUniqueName(), SimpleCalScheme::SimpleCalScheme(), SpillTimeFinder::SpillTimeFinder(), Cfg::StringToRegistry(), JobCommand::StringToRegistry(), StripAttenCalScheme::StripAttenCalScheme(), StripToStripCalScheme::StripToStripCalScheme(), TemperatureCalScheme::TemperatureCalScheme(), testConf(), turn_off_systematic_params(), RegistryValidate::TypePromotionTest(), use_fitter_confidence(), VaLinearityCalScheme::VaLinearityCalScheme(), and NCExtrapolationBeamMatrix::WriteResources().

void Registry::SetDirty ( bool  is_dirty = true  )  [inline]

Access an internal "dirty" flag Registry maintains (but does not use) It will be set any time a non-const method is accessed, or explicitly via SetDirty(). Initially a Registry is dirty (original sin?).

Definition at line 92 of file Registry.h.

References fDirty.

Referenced by Clear(), CfgPromptConfigurable::InitializeConfig(), Merge(), operator=(), Registry(), RemoveKey(), CfgPromptConfigurable::Set(), Set(), and CfgConfigurable::Update().

00092 { fDirty = is_dirty; }

void Registry::SetErrorHandler ( ErrorHandler  eh  )  [inline]

Definition at line 96 of file Registry.h.

References fErrorHandler.

Referenced by RegistryValidate::RunAllTests().

00096 { fErrorHandler = eh; }

unsigned int Registry::Size ( void   )  const [inline]
virtual void Registry::UnLockKeys ( void   )  [inline, virtual]
virtual void Registry::UnLockValues ( void   )  [inline, virtual]

Definition at line 81 of file Registry.h.

References fValuesLocked.

Referenced by AltDeMuxModule::AltDeMuxModule(), atmo_configure_common(), ReweightHelpers::BeamRegistryFilla(), DmxDeMuxFilterModule::BeginJob(), EvtInfoInjectorModule::BeginJob(), AtNuFindModule::Config(), PETrimmer::Config(), Anp::EventHitTab::Config(), XTalkFilter::Config(), Anp::SelectKinem::Config(), Anp::SnarlTimeTab::Config(), SystematicGains::Config(), Anp::EventAdcTab::Config(), SetKNNModule::Config(), FitTrackMSListModule::Config(), FarDetSliceListModule::Config(), Anp::StdHepTab::Config(), AtNuFitModule::Config(), Cluster3DModule::Config(), FarDetStripListModule::Config(), Anp::SelectNuMu::Config(), AlignmentModule::Config(), FillDataModule::Config(), TestDataModule::Config(), Anp::Interface::Config(), FarDetShieldPlankListModule::Config(), JobCModule::Config(), SKZPWeightCalculator::Config(), MadPIDAnalysis::ConfigureRoID(), NuZBeamReweight::CreateNeugenRegistry(), DigitListModule::DefaultConfig(), DumpBadElectronics::DefaultConfig(), EvtKinNuModule::DefaultConfig(), FarDetStripListModule::DefaultConfig(), FiltSGateModule::DefaultConfig(), MCAnalysis::DefaultConfig(), MCInitModule::DefaultConfig(), NtpMaker::DefaultConfig(), NtpStTrimmer::DefaultConfig(), NueDisplayModule::DefaultConfig(), PrintStat::DefaultConfig(), RotoClientModule::DefaultConfig(), SpillTypeFilter::DefaultConfig(), DetSim::DefaultConfig(), FillBadChannelDB::DefaultConfig(), GenieModule::DefaultConfig(), NeardetBeamSelect::DefaultConfig(), NtpEMModule::DefaultConfig(), Blinder::DefaultConfig(), DemoCandNtpModule::DefaultConfig(), FarDetDeadChipModule::DefaultConfig(), NC::CoordinateConverter::DefaultConfig(), NtpFitSAModule::DefaultConfig(), NtpMRModule::DefaultConfig(), PurgeCandidateModule::DefaultConfig(), UgliLoanPool::DefaultConfig(), DDSPaceModule::DefaultConfig(), DemoEventDump::DefaultConfig(), EvtInfoInjectorModule::DefaultConfig(), FardetBeamSelect::DefaultConfig(), FarDetSliceListModule::DefaultConfig(), NtpStModule::DefaultConfig(), NuePrint::DefaultConfig(), VtxModule::DefaultConfig(), AtNuFitModule::DefaultConfig(), BfldLoanPool::DefaultConfig(), FarDetTpSinglesDump::DefaultConfig(), FCPCFilterModule::DefaultConfig(), NuDemoModule::DefaultConfig(), PETrimmer::DefaultConfig(), ValidateRawChecksums::DefaultConfig(), XTalkFilter::DefaultConfig(), AtmosShowerListModule::DefaultConfig(), DummyModule::DefaultConfig(), NtpBDLiteModule::DefaultConfig(), NuModule::DefaultConfig(), OltDataIntegrity::DefaultConfig(), OltNewModule::DefaultConfig(), ParticleTruthMaker::DefaultConfig(), StopMuFilterModule::DefaultConfig(), UberPlotsModule::DefaultConfig(), CondensedNtpModuleAtm::DefaultConfig(), DbuDaqFileModule::DefaultConfig(), EvtAddRawDigitBlockModule::DefaultConfig(), FilterRunType::DefaultConfig(), JobCDemoModuleA::DefaultConfig(), MSTTemplate::DefaultConfig(), NCExtrapolationNone::DefaultConfig(), NtpStFilterModule::DefaultConfig(), NueHandScan::DefaultConfig(), OltEnds::DefaultConfig(), ParticlePIDSaver::DefaultConfig(), TrackCamListModule::DefaultConfig(), CountPot::DefaultConfig(), CustomLightInjector::DefaultConfig(), DeMuxDigitListModule::DefaultConfig(), DmxDeMuxModule::DefaultConfig(), FillFarRunQuality::DefaultConfig(), FillNearRunQuality::DefaultConfig(), FiltTriggerPrescale::DefaultConfig(), MCMerge::DefaultConfig(), NCExtrapolationBeamMatrix::DefaultConfig(), NCExtrapolationFarNear::DefaultConfig(), NDSgateTimeLooter::DefaultConfig(), NueAnalysisCuts::DefaultConfig(), OltRawLI::DefaultConfig(), RealCalDetPIDModule::DefaultConfig(), RunFileModule::DefaultConfig(), TrimModule::DefaultConfig(), CalDet2003PlotsModule::DefaultConfig(), CDPreFilterModule::DefaultConfig(), CondensedNtpModule::DefaultConfig(), DemoDataReject::DefaultConfig(), FarDetDataQualityModule::DefaultConfig(), FilterStream::DefaultConfig(), FixModule::DefaultConfig(), MergeEvent::DefaultConfig(), NtpSRModule::DefaultConfig(), ParticleAna::DefaultConfig(), ParticleFinder::DefaultConfig(), RateSummary::DefaultConfig(), RecordSetupModule::DefaultConfig(), ShieldPlankListModule::DefaultConfig(), SimCheck::DefaultConfig(), StripCands::DefaultConfig(), UserAnalysis::DefaultConfig(), AtNuDisplayModule::DefaultConfig(), AutoPIDMaker::DefaultConfig(), ChopModule::DefaultConfig(), CompareAll::DefaultConfig(), FitTrackCamListModule::DefaultConfig(), FitTrackMSListModule::DefaultConfig(), NC::FitMaster::DefaultConfig(), NueBeamMonModule::DefaultConfig(), ParticleDisplay::DefaultConfig(), PreFilter::DefaultConfig(), PTSimModule::DefaultConfig(), ReadDispatcherModule::DefaultConfig(), WriteStdHepFileModule::DefaultConfig(), BMSpillAna::DefaultConfig(), CondensedNtpModuleNC::DefaultConfig(), IoInputModule::DefaultConfig(), LISummaryModule::DefaultConfig(), NtpMCModule::DefaultConfig(), NueReweight::DefaultConfig(), OltTimePlot::DefaultConfig(), RerootToTruthModule::DefaultConfig(), CheckND::DefaultConfig(), FarDetEventModule::DefaultConfig(), FillHvFromSingles::DefaultConfig(), FillPIDFromText::DefaultConfig(), FilterLIModule::DefaultConfig(), FiltMBSpillModule::DefaultConfig(), GetFidModule::DefaultConfig(), LightInjector::DefaultConfig(), MCMonitorBeam::DefaultConfig(), MCNNMergeModule::DefaultConfig(), MnvRawDigitSuppression::DefaultConfig(), NCExtrapolationPID::DefaultConfig(), NueSensitivity::DefaultConfig(), Cutter::DefaultConfig(), DataQualityFilter::DefaultConfig(), DmxDeMuxCosmicsModule::DefaultConfig(), FarDetShieldPlankListModule::DefaultConfig(), FarmListModule::DefaultConfig(), RunSummary::DefaultConfig(), SimDetector::DefaultConfig(), AtNuFindModule::DefaultConfig(), AtNuTreeModule::DefaultConfig(), FitTrackCamAnalysisModule::DefaultConfig(), HepevtModule::DefaultConfig(), OltTimeScan::DefaultConfig(), RecoTreeModule::DefaultConfig(), RemoveMuon::DefaultConfig(), SelectSpillTimes::DefaultConfig(), SelectSpillTriggers::DefaultConfig(), BiggestChopModule::DefaultConfig(), DataQualityReader::DefaultConfig(), DbuDaqMonitorModule::DefaultConfig(), DemoNPlaneCut::DefaultConfig(), FarDetRawDigitDump::DefaultConfig(), FarDetRawRateDump::DefaultConfig(), MicroDSTMaker::DefaultConfig(), NtpTHModule::DefaultConfig(), RerootFlsDigitToDigiPE::DefaultConfig(), AnaTrim::DefaultConfig(), DemoMCFilter::DefaultConfig(), FilterDigitListModule::DefaultConfig(), IoOutputModule::DefaultConfig(), MCMonitorCosmic::DefaultConfig(), NCDataQualityModule::DefaultConfig(), NCExtrapolation::DefaultConfig(), NCExtrapolationModule::DefaultConfig(), NoiseFilterModule::DefaultConfig(), NtpSRFilterModule::DefaultConfig(), OltBlockScan::DefaultConfig(), ParticleFilterModule::DefaultConfig(), ParticleReport::DefaultConfig(), PIDEval::DefaultConfig(), PlexLoanPool::DefaultConfig(), PulserDDSCheck::DefaultConfig(), ScintHitTruthModule::DefaultConfig(), SliceFromChopModule::DefaultConfig(), ToyMCModule::DefaultConfig(), AltDeMuxModule::DefaultConfig(), CompareMD::DefaultConfig(), DemoRecordModule::DefaultConfig(), FillSpillServerMon::DefaultConfig(), MeuCalModule::DefaultConfig(), MNtpModule::DefaultConfig(), NueModule::DefaultConfig(), PulserTimingMaker::DefaultConfig(), RawRecCounts::DefaultConfig(), ScintCalModule::DefaultConfig(), SystematicGains::DefaultConfig(), DmxDeMuxCosmicsModule::DmxDeMuxCosmicsModule(), DmxDeMuxModule::DmxDeMuxModule(), NueSystematic::DoNeugenCalc(), NC::EventAdderDefaultConfig(), ReweightHelpers::EventRegistryFilla(), DbuDaqFileSummary::FillMapFromString(), BeamMonCuts::FillRegistry(), NuParent::FillRegistry(), NCEventInfo::FindNeugenWeight(), MeuCuts::GetBDSelectSpillInfo(), NC::FitMaster::GetBestFitPointAsRegistry(), MiniPlotMaker::GetReweight(), JobCModule::Init(), NuPIDInterface::InitialiseRoID2007(), NuPIDInterface::InitialiseRoIDNuMuBar(), CfgPromptConfigurable::InitializeConfig(), NuBeam::IsGoodSpillAndFillPot(), PerInputStreamManager::LoadRecordWithTag(), main(), PANAnalysis::MakeReweightTree(), NueModule::NueModule(), operator=(), DbiConfigStream::operator>>(), NtpTools::PassBeamCuts(), RecRecordImp< T >::PersistedToOutputStream(), RecMinos::PersistedToOutputStream(), PhotonConfiguration(), JobCDialog::Querry(), CfgDialog::Query(), Anp::ReadRegistry(), FitTrackCamListModule::Reco(), NueReweight::Reco(), RealCalDetPIDModule::Reco(), NueReweight::Reset(), run(), AlgMuonRemoval::RunAlg(), AlgCosmicMuonRemoval::RunAlg(), AlgRmMuList::RunAlg(), RegistryValidate::RunAllTests(), TestBMCutsFiller::RunIt(), CfgPromptConfigurable::SafeMerge(), StndBmsSpin::Scan(), CfgConfigurable::Set(), JobCModule::Set(), CfgDialog::SetCurrent(), JobCDialog::SetCurrent(), UgliLoanPool::SetCut(), JobCDialog::SetDefault(), CfgDialog::SetDefault(), Anp::SetKey(), UgliLoanPool::SetMedium(), RecRecordImp< T >::SetPerOwned(), UgliLoanPool::SetProcess(), UgliLoanPool::SetTracking(), RecRecordImp< T >::SetTransient(), RecMinos::SetTransient(), JobCommand::StringToRegistry(), CfgPromptConfigurable::UnLockValues(), and NCExtrapolationBeamMatrix::WriteResources().

00081 { fValuesLocked = false; } //*MENU*

virtual bool Registry::ValuesLocked ( void   )  const [inline, virtual]

Friends And Related Function Documentation

friend class RegistryKey [friend]

not written out

Definition at line 159 of file Registry.h.

Referenced by Key().


Member Data Documentation

bool Registry::fDirty [private]

Definition at line 163 of file Registry.h.

Referenced by IsDirty(), and SetDirty().

Definition at line 157 of file Registry.h.

Referenced by GetRegistry(), and SetErrorHandler().

bool Registry::fKeysLocked [private]

Definition at line 156 of file Registry.h.

Referenced by Clear(), Dump(), KeysLocked(), LockKeys(), Merge(), operator=(), Registry(), Set(), and UnLockKeys().

bool Registry::fValuesLocked [private]

Definition at line 155 of file Registry.h.

Referenced by Clear(), Dump(), LockValues(), Merge(), operator=(), Registry(), Set(), UnLockValues(), and ValuesLocked().


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

Generated on 21 Oct 2017 for loon by  doxygen 1.6.1