CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions
edm::pset Namespace Reference

Classes

class  ProcessParameterSetIDCache
 
struct  TypeTrans
 

Typedefs

typedef
detail::ThreadSafeRegistry
< ParameterSetID, ParameterSet,
ProcessParameterSetIDCache
Registry
 
typedef std::map
< ParameterSetID,
ParameterSetBlob
regmap_type
 

Functions

void fillMap (Registry *reg, regmap_type &fillme)
 
ParameterSetID getProcessParameterSetID (Registry const *reg)
 Associated free functions. More...
 

Typedef Documentation

Definition at line 37 of file Registry.h.

Fill the given map with the persistent form of each ParameterSet in the given registry.

Definition at line 49 of file Registry.h.

Function Documentation

void edm::pset::fillMap ( Registry *  reg,
regmap_type &  fillme 
)

Definition at line 24 of file Registry.cc.

References edm::detail::ThreadSafeRegistry< KEY, T, E >::begin(), ExpressReco_HICollisions_FallBack::e, edm::detail::ThreadSafeRegistry< KEY, T, E >::end(), and i.

Referenced by EcalCondDBInterface::fetchConfigDataSet(), RunPTMTempDat::fetchData(), RunDat::fetchData(), RunCrystalErrorsDat::fetchData(), RunMemChErrorsDat::fetchData(), RunFEConfigDat::fetchData(), RunMemTTErrorsDat::fetchData(), RunPNErrorsDat::fetchData(), RunTTErrorsDat::fetchData(), RunTPGConfigDat::fetchData(), MonH4TablePositionDat::fetchData(), RunConfigDat::fetchData(), RunLaserRunDat::fetchData(), MonShapeQualityDat::fetchData(), DCUIDarkPedDat::fetchData(), RunCommentDat::fetchData(), CaliGeneralDat::fetchData(), DCUVFETempDat::fetchData(), DCUCapsuleTempDat::fetchData(), FEConfigSlidingDat::fetchData(), FEConfigSpikeDat::fetchData(), FEConfigTimingDat::fetchData(), FEConfigWeightDat::fetchData(), MODCCSFEDat::fetchData(), MODCCSTRDat::fetchData(), MODDCCOperationDat::fetchData(), FEConfigFgrDat::fetchData(), DCUIDarkDat::fetchData(), FEConfigLUTDat::fetchData(), CaliGainRatioDat::fetchData(), CaliHVScanRatioDat::fetchData(), FEConfigFgrEETowerDat::fetchData(), DCUCapsuleTempRawDat::fetchData(), FEConfigLinParamDat::fetchData(), MonDelaysTTDat::fetchData(), RunH4TablePositionDat::fetchData(), CaliTempDat::fetchData(), CaliCrystalIntercalDat::fetchData(), FEConfigLUTGroupDat::fetchData(), DCULVRBTempsDat::fetchData(), DCULVRTempsDat::fetchData(), FEConfigFgrEEStripDat::fetchData(), MonLaserStatusDat::fetchData(), MonOccupancyDat::fetchData(), MonLaserPulseDat::fetchData(), MonPedestalsOnlineDat::fetchData(), FEConfigPedDat::fetchData(), MonRunDat::fetchData(), FEConfigFgrParamDat::fetchData(), FEConfigLUTParamDat::fetchData(), MonPedestalOffsetsDat::fetchData(), RunDCSMagnetDat::fetchData(), MonCrystalConsistencyDat::fetchData(), FEConfigWeightGroupDat::fetchData(), FEConfigFgrGroupDat::fetchData(), MonLed2Dat::fetchData(), MonLaserBlueDat::fetchData(), MonLaserIRedDat::fetchData(), MonLaserRedDat::fetchData(), FEConfigLinDat::fetchData(), MonLed1Dat::fetchData(), MonPNPedDat::fetchData(), MonLaserGreenDat::fetchData(), FEConfigParamDat::fetchData(), MonMemChConsistencyDat::fetchData(), MODCCSHFDat::fetchData(), MonTTConsistencyDat::fetchData(), MonTestPulseDat::fetchData(), MonPedestalsDat::fetchData(), MonMemTTConsistencyDat::fetchData(), RunDCSLVDat::fetchData(), MonPNIRedDat::fetchData(), MonPNMGPADat::fetchData(), MonPNRedDat::fetchData(), MonPNLed1Dat::fetchData(), MonPNLed2Dat::fetchData(), MonPNBlueDat::fetchData(), MonPNGreenDat::fetchData(), MonPulseShapeDat::fetchData(), RunDCSHVDat::fetchData(), MODDCCDetailsDat::fetchData(), DCULVRVoltagesDat::fetchData(), DCUCCSDat::fetchData(), ITimingDat::fetchData(), EcalCondDBInterface::fetchDataSet(), EcalCondDBInterface::fetchDataSetWithMap(), EcalCondDBInterface::fetchDCSDataSet(), RunDCSHVDat::fetchHistoricalData(), RunDCSMagnetDat::fetchLastData(), RunDCSLVDat::fetchLastData(), RunDCSHVDat::fetchLastData(), and edm::StreamSerializer::serializeRegistry().

24  {
25  typedef Registry::const_iterator iter;
26  fillme.clear();
27  // Note: The tracked part is in the registry.
28  for (iter i = reg->begin(), e = reg->end(); i != e; ++i) {
29  fillme[i->first].pset() = i->second.toString();
30  }
31  }
int i
Definition: DBlmapReader.cc:9
ParameterSetID edm::pset::getProcessParameterSetID ( Registry const *  reg)

Associated free functions.

Return the ParameterSetID of the top-level ParameterSet stored in the given Registry. Note the the returned ParameterSetID may be invalid; this will happen if the Registry has not yet been filled.

Definition at line 11 of file Registry.cc.

References edm::hlt::Exception, edm::detail::ThreadSafeRegistry< KEY, T, E >::extra(), edm::Hash< I >::isValid(), and edm::errors::LogicError.

Referenced by edm::getProcessParameterSet(), and edm::StreamerOutputModuleBase::serializeRegistry().

11  {
12  ParameterSetID const& psetID = reg->extra().id();
13  if (!psetID.isValid()) {
15  << "Illegal attempt to access the process top level parameter set ID\n"
16  << "before that parameter set has been frozen and registered.\n"
17  << "The parameter set can be changed during module validation,\n"
18  << "which occurs concurrently with module construction.\n"
19  << "It is illegal to access the parameter set before it is frozen.\n";
20  }
21  return psetID;
22  }
Hash< ParameterSetType > ParameterSetID