CMS 3D CMS Logo

Classes | Functions | Variables

python::multivaluedict Namespace Reference

Classes

class  mseqdict
class  MyUserList

Functions

def __delitem__
def __init__
def __repr__
def __setitem__
def __setslice__
def append
def copy
def count
def filter
def map
def pop
def remove
def sort
def swap

Variables

 dict
 list

Function Documentation

def python::multivaluedict::__delitem__ (   self,
  key 
)

Definition at line 69 of file multivaluedict.py.

00070                             :
00071     del self.dict[key]
00072     self.list.remove(key)      

def python::multivaluedict::__init__ (   self,
  List = [],
  Dict = {} 
)

Definition at line 23 of file multivaluedict.py.

00023                                  {}):
00024     self.list = []
00025     self.dict = {}
00026     if not List:
00027       pass     
00028     elif type(List)==type({}):
00029       for key,value in List.items():
00030         self.__setitem__(key,value)
00031     elif List and not Dict: #dict.items()
00032       for key,value in List:
00033         if isinstance(value,MyUserList):
00034           for v in value:
00035             self.__setitem__(key,v)
00036         else:
00037           self.__setitem__(key,value)     
00038     elif type(List)==type(Dict)==type([]):
00039       for key,value in map(None,List,Dict):
00040         self.__setitem__(key,value)
00041     else:
00042       if isinstance(Dict.values()[0],MyUserList):
00043         self.dict = Dict
00044         self.list = List
00045       else:
00046         for key in List:
00047           value = Dict[key]
00048           if type(value)==type([]):
00049             for v in value:
00050               self.__setitem__(key,v)
00051           else:
00052             self.__setitem__(key,value)     
def python::multivaluedict::__repr__ (   self)

Definition at line 178 of file multivaluedict.py.

00178                     :return 'mseqdict(\n%s,\n%s)'%(self.list,self.dict)
00179 
00180 
def python::multivaluedict::__setitem__ (   self,
  key,
  value 
)

Definition at line 53 of file multivaluedict.py.

00054                                  :
00055     if not self.dict.has_key(key):
00056       self.list.append(key)
00057       if isinstance(value,MyUserList):
00058         self.dict[key] = value
00059       else:
00060         self.dict[key]=MyUserList(self,[value])
00061     else:
00062       values = self.dict[key]
00063       if isinstance(value,MyUserList):
00064         for v in value:
00065           if not v in values:
00066             values.extend(MyUserList(self,[v]))
00067       else:
00068         if not value in values:
          values.extend(MyUserList(self,[value]))
def python::multivaluedict::__setslice__ (   self,
  start,
  stop,
  newdict 
)

Definition at line 75 of file multivaluedict.py.

00076                                            :
00077     start = max(start,0); stop = max(stop,0)
00078     delindexes = []
00079     for key in newdict.keys():
00080       if self.dict.has_key(key):
00081         index = self.list.index(key)
00082         delindexes.append(index)
00083         if index < start:
00084           start = start - 1
00085           stop  = stop  - 1
00086         elif index >= stop:
00087           pass
00088         else:
00089           stop  = stop - 1
00090       else:
00091         self.dict[key]=UserList(self)
00092     delindexes.sort()
00093     delindexes.reverse()
00094     for index in delindexes:
00095       key = self.list[index]
00096       #del   self.dict[key]
00097       del  self.list[index]
00098     self.list[start:stop] = newdict.list[:]
    self.update(newdict.dict)  
def python::multivaluedict::append (   self,
  key,
  value 
)
def python::multivaluedict::copy (   self)

Definition at line 99 of file multivaluedict.py.

00100                 :
00101     values = map(lambda x:x[:],self.values())
    return self.__class__(self.list,values)
def python::multivaluedict::count (   self,
  value 
)

Definition at line 102 of file multivaluedict.py.

00103                        :
00104     vallist = self.dict.values()
    return map(lambda x,y=value:x.count(y),vallist).count(1)
def python::multivaluedict::filter (   self,
  function,
  filtervalues = 0 
)

Definition at line 105 of file multivaluedict.py.

00106                                           :
00107     if   filtervalues == 1: #consider key and all keyvalues at once
00108       dict = self.__class__()
00109       for key,values in self.items():
00110         if function(key,values):
00111           dict[key]=values
00112       return dict
00113     elif filtervalues == 2: #consider key and every keyvalue for itself
00114       dict = self.__class__()
00115       for key,values in self.items():
00116         for value in values:
00117           if function(key,value):
00118             dict[key]=value
00119       return dict
00120     else:                   #consider key only
00121       liste=filter(function,self.list)
00122       dict = {}
00123       for i in liste:
00124         dict[i]=self.dict[i]
      return self.__class__(liste,dict)
def python::multivaluedict::map (   self,
  function,
  mapvalues = 2 
)

Definition at line 125 of file multivaluedict.py.

00126                                     :
00127     if   mapvalues == 1:    #consider key and all keyvalues at once
00128       dict = self.__class__()
00129       for key,values in self.items():
00130         k,v = function(key,values)
00131         dict[k]=v
00132       return dict
00133     else: #if mapvalues!=1: #consider key and every keyvalue for itself
00134       dict = self.__class__()
00135       for key,values in self.items():
00136         for value in values:
00137           k,v = function(key,value)
00138           dict[k]=v
      return dict
def python::multivaluedict::pop (   self,
  key = '...None',
  value = '...None' 
)

Definition at line 139 of file multivaluedict.py.

Referenced by L1GtLogicParser::buildRpnVector(), EmDQMPostProcessor::endRun(), and KFFittingSmoother::fit().

00140                                              :
00141     if value=='...None':
00142       if key=='...None':
00143         pos = -1
00144         key = self.list[pos]
00145       else:
00146         pos = self.list.index(key)
00147       tmp = self.dict[key]
00148       del self.dict[key]
00149       return {self.list.pop(pos):tmp}
00150     else:
00151       val = self.dict[key]
00152       index = val.index(value)
00153       tmp = val[index]
00154       del val[index]
      return {key:tmp}
def python::multivaluedict::remove (   self,
  key,
  value = '...None' 
)
def python::multivaluedict::sort (   self,
  func1 = None,
  func2 = None 
)

Definition at line 161 of file multivaluedict.py.

Referenced by fastjet::BackgroundEstimator::_compute(), edm::DetSetVector< T >::_sort(), SiStripQuality::add(), CSCStripElectronicsSim::addCrosstalk(), EgHLTOfflineSource::addEleTrigPath(), SiStripDetCabling::addFromSpecificConnection(), BetaCalculatorECAL::addInfoToCandidate(), BetaCalculatorRPC::addInfoToCandidate(), BeamHaloNavigationSchool::addInward(), FastL1GlobalAlgo::addJet(), EgHLTOfflineSource::addPhoTrigPath(), stor::SMWebPageHelper::addResourceBrokerList(), RoadMaker::AddRoad(), BetaCalculatorRPC::algo(), AlignableMuon::alignmentErrors(), AlignableExtras::alignmentErrors(), AlignableDTBarrel::alignmentErrors(), AlignableCSCEndcap::alignmentErrors(), AlignableTracker::alignmentErrors(), AlignableExtras::alignments(), AlignableMuon::alignments(), AlignableTracker::alignments(), AlignableDTBarrel::alignments(), AlignableCSCEndcap::alignments(), TTUTrackingAlg::alignTracks(), ora::AllKnowTypeHandlers::AllKnowTypeHandlers(), SiStripLatency::allLatencies(), SiStripLatency::allModes(), SiStripLatency::allUniqueLatencyAndModes(), ApvTimingAlgorithm::analyse(), FastFedCablingAlgorithm::analyse(), FedTimingAlgorithm::analyse(), ApvLatencyAlgorithm::analyse(), DaqScopeModeAlgorithm::analyse(), TtSemiLepSignalSelMVATrainer::analyze(), LHEAnalyzer::analyze(), HLTAlCaMonPi0::analyze(), PhotonValidator::analyze(), EmDQMReco::analyze(), SusyDQM< Mu, Ele, Jet, Met >::analyze(), WValidation::analyze(), L1RCTTestAnalyzer::analyze(), EmDQM::analyze(), HLTMuon::analyze(), DTT0CalibrationNew::analyze(), L1TCompare::analyze(), HLTHiggsSubAnalysis::analyze(), HLTJets::analyze(), PhotonAnalyzer::analyze(), HLTOniaSource::analyze(), DrellYanValidation::analyze(), JetTagMVATreeTrainer::analyze(), HLTAlCa::analyze(), ZToMuMuGammaAnalyzer::analyze(), TestTrackHits::analyze(), PatBJetTrackAnalyzer::analyze(), SiStripFEDMonitorPlugin::analyze(), CMSDAS11DijetAnalyzer::analyze(), TestOutliers::analyze(), HLTMuonPlotter::analyze(), HeavyFlavorValidation::analyze(), HLTInfo::analyze(), HLTTauDQMCaloPlotter::analyze(), HLTTauDQML1Plotter::analyze(), CSCTFanalyzer::analyze(), PFCandidateChecker::analyze(), QcdUeDQM::analyze(), HLTEgamma::analyze(), DQMSourcePi0::analyze(), EventShape::aplanarity(), MuonAssociatorByHits::associateRecoToSimIndices(), MuonAssociatorByHits::associateSimToRecoIndices(), BigEventsDebugger::BigEventsDebugger(), NuclearVertexBuilder::build(), SiStripFedCablingBuilderFromDb::buildFecCablingFromDevices(), reco::FlavorHistoryEvent::cache(), Averages::calc(), EcalHaloAlgo::Calculate(), HcalHaloAlgo::Calculate(), JetPartonMatching::calculate(), TT6CommonModeCalculator::calculateCMSlope(), MedianCommonModeCalculator::calculateCommonMode(), TT6ApvMask::calculateMask(), HBHEPulseShapeFlagSetter::CalculateRMS8Max(), HcalNoiseMonitor::CalculateRMS8Max(), EcalHitMaker::cellLine(), HcalLogicalMap::checkElectronicsHashIds(), EmDQM::checkGeneratedParticlesRequirement(), HcalLogicalMap::checkHashIds(), AlignmentTwoBodyDecayTrackSelector::checkMass(), AlignmentTwoBodyDecayTrackSelector::checkMETMass(), reco::helper::JetIDHelper::classifyJetComponents(), reco::helper::JetIDHelper::classifyJetTowers(), TrajectorySegmentBuilder::cleanCandidates(), CaloSD::cleanHitCollection(), TrackCleaner::cleanTracks(), HFClusterAlgo::clusterize(), CombinationGenerator< T >::combinations(), CompositeTECWedge::CompositeTECWedge(), PVFitter::compressStore(), DeDxDiscriminatorProducer::ComputeDiscriminator(), MuonResidualsFitter::computeHistogramRangeAndBinning(), PFTauElementsOperators::computeInsideOutContents(), APVShot::computeShot(), RoadMaker::constructRoads(), MuonResidualsFitter::correctBField(), reco::modules::CosmicTrackSplitter::CosmicTrackSplitter(), sistrip::DetSetVectorFiller< T, dsvIsSparse >::createDetSetVector(), HCAL_HLX::ROOTFileReader::CreateFileNameList(), SiStripMonitorMuonHLT::createMEs(), TrackerGeometryCompare::createROOTGeometry(), ClusterShape::determineShape(), ESDataFormatterV4::DigiToRaw(), PFRecoTauDiscriminationByFlight::discriminate(), JetBProbabilityComputer::discriminator(), cscdqm::StripClusterFinder::DoAction(), EgammaRecHitIsolation::doFlagChecks(), CSCValidation::doTimeMonitoring(), CastorDbASCIIIO::dumpCastorSingleFloatObject(), CastorDbASCIIIO::dumpCastorSingleIntObject(), dumpHcalMatrixObject(), dumpHcalObject(), dumpHcalSingleFloatObject(), dumpHcalSingleIntObject(), pat::helper::EfficiencyLoader::EfficiencyLoader(), L1TGT::endLuminosityBlock(), EmDQM::endRun(), EcalClusterTools::energyBasketFractionEta(), EcalClusterTools::energyBasketFractionPhi(), ExpressionVariable< Object, label >::eval(), EventShape::EventShape(), HLTConfigData::extract(), pftools::SpaceManager::extractEvolution(), TkPixelMeasurementDet::fastMeasurements(), TkStripMeasurementDet::fastMeasurements(), TkGluedMeasurementDet::fastMeasurements(), MuonDetLayerMeasurements::fastMeasurements(), SimG4HcalValidation::fetchHits(), FFTJetProducer::FFTJetProducer(), FFTJetTreeDump::FFTJetTreeDump(), PedsFullNoiseTask::fill(), PedestalsTask::fill(), VpspScanTask::fill(), MuonIdProducer::fillArbitrationInfo(), HcalTB06Analysis::fillBuffer(), HcalTB04Analysis::fillBuffer(), HcalDigitizerImpl::fillCells(), HcalGeometry::fillDetIds(), CSCSegmentValidation::fillEfficiencyPlots(), FastL1GlobalAlgo::FillEgammas(), FastL1GlobalAlgo::FillEgammasTP(), HcalTestHistoClass::fillHits(), SiStripQualityDQM::fillMEsForLayer(), FWGeoMaterialValidator::fillOptions(), FWHLTValidator::fillOptions(), pat::helper::BasicOverlapTest::fillOverlapsForItem(), TkAlCaRecoMonitor::fillRawIdMap(), QcdLowPtDQM::fillTracklets(), ProbeTreeProducer::filter(), reco::tau::filterPFCandidates(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHits(), pixeltemp::DivisiveClusterizer1D< T >::findCandidates(), DivisiveClusterizer1D< T >::findCandidates(), HICTrajectoryBuilder::findCompatibleMeasurements(), MuonCkfTrajectoryBuilder::findCompatibleMeasurements(), CkfTrajectoryBuilder::findCompatibleMeasurements(), SiStripElectronAlgo::findElectron(), sistrip::SpyUtilities::findMajorityValue(), NuclearInteractionFinder::findMeasurementsFromTSOS(), reco::findMethod(), CMSMidpointAlgorithm::findStableConesFromMidPoints(), DivisiveVertexFinder::findVertexesAlt(), sistrip::MeanAndStdDev::fit(), FixedGridEnergyDensity::fixedGridRho(), MuonSlaveSD::format(), FWExpressionValidator::FWExpressionValidator(), RPCTBGhostBuster::gBEta(), RPCTBGhostBuster::gBPhi(), TrackClassifier::genPrimaryVertices(), VertexClassifier::genPrimaryVertices(), GeometricSearchDetMeasurements::get(), NonPropagatingDetMeasurements::get(), SiStripDetCabling::getActiveDetectorsContiguousIds(), egHLT::trigTools::getActiveFilters(), SiStripDetCabling::getAllDetectorsContiguousIds(), SiPixelQuality::getBadRocs(), SimG4HcalHitJetFinder::getClusters(), HcalQie::getCode(), RPCSeedrecHitFinder::getdeltaPhifromrecHits(), dRxyCalculator::getDRxy(), L2TauModularIsolationProducer::getECALHits(), L2TauNarrowConeIsolationProducer::getECALHits(), stor::RegistrationCollection::getEventConsumers(), L2TauModularIsolationProducer::getHCALHits(), L2TauNarrowConeIsolationProducer::getHCALHits(), MeasurementTrackerImpl::getInactiveStrips(), ESElectronicsMapper::GetListofFEDs(), L1TMenuHelper::getLUSOTrigger(), SiStripFEDMonitorPlugin::getMajority(), L2TauModularIsolationProducer::getPFClusters(), smproxy::DataRetrieverMonitorCollection::getStatsByEventTypesPerConnection(), HcalDDDGeometry::getValidDetIds(), CaloSubdetectorGeometry::getValidDetIds(), CaloGeometryHelper::getWindow(), TTUTrackingAlg::ghostBuster(), GroupedCkfTrajectoryBuilder::groupedLimitedCandidates(), LayerMeasurements::groupedMeasurements(), MuonDetLayerMeasurements::groupedMeasurements(), MuonSeedCleaner::GroupSeeds(), PlotMakerReco::handleObjects(), PlotMakerL1::handleObjects(), HBHEPulseShapeFlagSetter::HBHEPulseShapeFlagSetter(), HBHETimeProfileStatusBitSetter::hbheSetTimeFlagsFromDigi(), reco::HcalNoiseInfoProducer::HcalNoiseInfoProducer(), HLTRPCTrigNoSyncFilter::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTHcalMETNoiseCleaner::HLTHcalMETNoiseCleaner(), HLTHcalMETNoiseFilter::HLTHcalMETNoiseFilter(), HLTHcalTowerNoiseCleaner::HLTHcalTowerNoiseCleaner(), HybridClusterAlgo::HybridClusterAlgo(), HSCPValidator::IncreasedTreshold(), HSCPHLTFilter::IncreasedTreshold(), lhef::LHERunInfo::init(), MSLayersKeeperX0AtEta::init(), SiStripHashedDetId::init(), DTMeantimerPatternReco::initHits(), DDG4ProductionCuts::initialize(), PixelUnpackingRegions::initialize(), MuonAlignmentFromReference::initialize(), KalmanAlignmentAlgorithm::initializeAlignmentParameters(), MuonHOAcceptance::initIds(), DreamSD::initMap(), VirtualJetProducer::inputTowers(), SiPixelQuality::IsModuleBad(), SiPixelQuality::IsModuleUsable(), SiPixelQuality::IsRocBad(), SimG4HcalValidation::jetAnalysis(), JetCorrectorParameters::JetCorrectorParameters(), JetTagMVATrainer::JetTagMVATrainer(), JetTagMVATreeTrainer::JetTagMVATreeTrainer(), FWCompactVerticalLayout::Layout(), CkfTrajectoryBuilder::limitedCandidates(), PixelEndcapLinkMaker::links(), PixelBarrelLinkMaker::links(), OptoScanTask::locateTicks(), SMS::location(), EnergyLossPlain::logTruncate(), ls_cert_type(), main(), PFTauDiscriminants::PFTauDiscriminantManager::mainTrack(), HFClusterAlgo::makeCluster(), HybridClusterAlgo::makeClusters(), CosmicClusterAlgo::makeClusters(), Multi5x5ClusterAlgo::makeClusters(), IslandClusterAlgo::makeClusters(), EgammaHLTNxNClusterProducer::makeNxNClusters(), PiZeroAnalyzer::makePizero(), JetMaker::makeSpecific(), HybridClusterAlgo::makeSuperClusters(), lhef::JetMatchingMLM::match(), SiStripRecHitConverterAlgorithm::match(), lhef::Matching< Delta >::match(), btag::Matching< Delta >::match(), HLTEgammaDoubleLegCombFilter::matchCands(), JetPartonMatching::matchingMinSumDist(), JetPartonMatching::matchingPtOrderedMinDist(), JetPartonMatching::matchingTotalMinDist(), fftjetcms::matchOneToOne(), MuonDetLayerMeasurements::measurements(), MuonResidualsTwoBin::median(), merge(), PFRecoTauDecayModeDeterminator::mergePiZeroesByBestMatch(), Multi5x5ClusterAlgo::Multi5x5ClusterAlgo(), SequentialCombinationGenerator< T >::next_combi(), TtSemiLRSignalSelObservables::operator()(), MtvClusterizer1D< T >::operator()(), reco::tau::RecoTauPhotonFilter::operator()(), rpcrawtodigi::DebugDigisPrintout::operator()(), CATopJetHelper::operator()(), TtHadLRSignalSelObservables::operator()(), FsmwClusterizer1D< T >::operator()(), OutermostClusterizer1D< T >::operator()(), edm::dslv::LazyAdapter< T >::operator()(), lhef::JetInput::operator()(), EnergyLossPlain::optimal(), fireworks::OptionNode::options(), TIDLayer::orderAndMergeLevels(), PFTauDiscriminants::PFTauDiscriminantManager::outlierObjectsSortedByDR(), PFTauDiscriminants::PFTauDiscriminantManager::outlierObjectsSortedByPt(), perftools::EdmEventSize::parseFile(), reco::tau::pfCandidates(), reco::tau::pfChargedCands(), SiPixelTemplateReco::PixelTempReco2D(), SiPixelTemplateSplit::PixelTempSplit(), EventShape::planarity(), GctErrorAnalyzer::plotIntJets(), edm::SortedCollection< T, SORT >::post_insert(), edm::DetSetVector< T >::post_insert(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::post_insert(), precomputed_value_sort(), MultiTrajectoryStateAssembler::prepareCombinedState(), fireworks::prepareTrack(), SiStripConfigDb::printAnalysisDescriptions(), SiStripConfigDb::printDeviceDescriptions(), SiStripConfigDb::printFedConnections(), SiStripConfigDb::printFedDescriptions(), CkfDebugger::printSimHits(), PlotSimTracks::printSimTracks(), MagGeoBuilderFromDDD::volumeHandle::printUniqueNames(), L1GctElectronSorter::process(), L1GctElectronFinalSort::process(), helper::ClusterStorer::processClusters(), DDLSpecPar::processElement(), pat::PATElectronProducer::produce(), CandOneToManyDeltaRMatcher::produce(), WMuNuProducer::produce(), DeDxEstimatorProducer::produce(), PixelVertexProducerMedian::produce(), InputGenJetsParticleSelector::produce(), RecoTauCleanerImpl< Prod >::produce(), pat::PATJetProducer::produce(), L2TauJetsMerger::produce(), OtherObjectVariableComputer< T >::produce(), reco::PhysObjectMatcher< C1, C2, S, D, Q >::produce(), pat::PATGenCandsFromSimTracksProducer::produce(), TtFullLepKinSolutionProducer::produce(), FFTJetPileupProcessor::produce(), RecoTauProducer::produce(), cms::JetCorrectionProducer< T >::produce(), HLTJetCollForElePlusJets< T >::produce(), RPCTechnicalTrigger::produce(), pat::PATPhotonProducer::produce(), pat::PATMuonProducer::produce(), SeedGeneratorFromProtoTracksEDProducer::produce(), pat::GenPlusSimParticleProducer::produce(), FWRecoGeometryESProducer::produce(), FastPrimaryVertexProducer::produce(), ReducedRecHitCollectionProducer::produce(), pat::PATTauProducer::produce(), PrimaryVertexProducer::produce(), DeDxEstimatorProducerPixelTripplet::produce(), L3TkMuonProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATGenericParticleProducer::produce(), InterestingDetIdCollectionProducer::produce(), HIPixelMedianVtxProducer::produce(), SiStripElectronAlgo::projectPhiBand(), PixelDigiCollection::put(), SiStripClusterCollection::put(), TrackCollectionFP420::put(), ClusterCollectionFP420::put(), DigiCollectionFP420::put(), RecoCollectionFP420::put(), DigiCollectionFP420::putclear(), ClusterCollectionFP420::putclear(), RecoCollectionFP420::putclear(), TrackCollectionFP420::putclear(), BeamHaloNavigationSchool::reachableFromHorizontal(), RecHitsSortedInPhi::RecHitsSortedInPhi(), pftools::Calibratable::recompute(), SiStripPsuDetIdMap::RemoveDuplicateDetIDs(), SiStripDetVOffBuilder::removeDuplicates(), edm::TransientProductLookupMap::reorderIfNecessary(), L1MuonSeedsMerger::resolve(), SiStripPsuDetIdMap::retrieveDcuDeviceAddresses(), CSCTFMuonSorter::run(), CMSIterativeConeAlgorithm::run(), CMSInsideOutAlgorithm::run(), RPCTCGhostBusterSorter::run(), RoadSearchTrackCandidateMakerAlgorithm::run(), CSCCathodeLCTProcessor::run(), CSCStripElectronicsSim::runComparator(), RPCFinalSorter::runFinalSorter(), RPCHalfSorter::runHalf(), PATPrimaryVertexSelector::select(), SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::select(), SiStripBaseCondObjDQM::selectModules(), SequentialCombinationGenerator< T >::SequentialCombinationGenerator(), LaserAlignmentEventFilter::set_las_fed_ids(), LaserAlignmentEventFilter::set_las_signal_ids(), HDQMInspector::setBlackList(), lhef::JetInput::setExcludedFromResonances(), lhef::JetInput::setExcludedResonances(), InputGenJetsParticleSelector::setExcludeFromResonancePids(), FWTableView::setFrom(), FWTriggerTableView::setFrom(), InputGenJetsParticleSelector::setIgnoredParticles(), lhef::JetInput::setIgnoredParticles(), SimpleForwardNavigableLayer::setInwardLinks(), SimpleBarrelNavigableLayer::setInwardLinks(), DigiCollectionProfiler::setMaskedModules(), FWExpressionValidator::setType(), HDQMInspector::setWhiteList(), FWECALDetailViewBuilder::showSuperClusters(), PFTauDiscriminants::PFTauDiscriminantManager::signalObjectsSortedByDR(), PFTauDiscriminants::PFTauDiscriminantManager::signalObjectsSortedByPt(), SimpleBarrelNavigableLayer::SimpleBarrelNavigableLayer(), SimpleForwardNavigableLayer::SimpleForwardNavigableLayer(), SiStripDetWithSomething< T >::SiStripDetWithSomething(), cond::SmallWORMDict::SmallWORMDict(), edm::OwnVector< T, P >::sort(), edm::SortedCollection< T, SORT >::sort(), edm::sort_all(), perftools::EdmEventSize::sortAlpha(), reco::tau::RecoTauConstructor::sortAndCopyIntoTau(), DTOccupancyClusterBuilder::sortClusters(), DEcompare< T >::SortCollections(), evf::iDie::sorted_indices::sorted_indices(), PrimaryVertexSorter::sortedList(), PartitionGenerator::sortedPartitions(), CaloDigiCollectionSorter::sortedVector(), edm::IndexIntoFile::sortEventEntries(), edm::IndexIntoFile::sortEvents(), RecHitSorter::sortHits(), L1GlobalCaloTrigger::sortInputData(), HcalDcsValues::sortList(), cond::IOVSequence::sortMe(), CmsTrackerPetalBuilder::sortNS(), CmsTrackerLadderBuilder::sortNS(), CmsTrackerPanelBuilder::sortNS(), CmsTrackerSubStrctBuilder::sortNS(), TauTagTools::sortRefVectorByPt(), RoadMaker::SortRingsIntoLayers(), sortTrajectoryMeasurements(), DDStreamer::specs_read(), EventShape::sphericity(), CMSMidpointAlgorithm::splitAndMerge(), SimpleNavigationSchool::splitForwardLayers(), HICSimpleNavigationSchool::splitForwardLayers(), XHistogram::splitSegment(), DTDigitizer::storeDigis(), Alignable::surfaceDeformations(), TrackerGeometryCompare::surveyToTracker(), ParticleReplacerClass::testEvent(), AlignmentMuonSelector::theBestMassPairCombinationMuons(), AlignmentMuonSelector::theNHighestPtMuons(), CalibrationTrackSelector::theNHighestPtTracks(), AlignmentTrackSelector::theNHighestPtTracks(), TIBLayer::TIBLayer(), TOBRod::TOBRod(), EgammaHadTower::towersOf(), TrackerStablePhiSort(), reco::modules::TrackerTrackHitFilter::TrackerTrackHitFilter(), QcdLowPtDQM::trackletVertexUnbinned(), SETFilter::transform(), egHLT::trigTools::translateFiltersToPathNames(), HLTScalersClient::CountLSFifo_t::trim_(), SimpleCosmicBONSeeder::triplets(), SiTrivialDigitalConverter::truncate(), TtFullHadSignalSel::TtFullHadSignalSel(), EcalRawToRecHitRoI::unique(), MSLayersAtAngle::update(), sistrip::RawToDigiUnpacker::update(), MeasurementTrackerImpl::updatePixels(), ValidHitPairFilter::ValidHitPairFilter(), PFBenchmarkAlgo::vector_sort(), MuonsGrabber::writeDataForRelativeBX(), SubsystemNeutronWriter::writeHits(), LaserSorter::writeIndexTable(), writeProfileData(), and ZdcHitReconstructor::ZdcHitReconstructor().

00162                                       :
00163     if not func1:
00164       self.list.sort()
00165     else:
00166       apply(self.list.sort,[func1])
00167     if func2:
00168       for value in self.values():
00169         apply(value.sort,[func2])
      
def python::multivaluedict::swap (   self)

Definition at line 170 of file multivaluedict.py.

00171                 :
00172     tmp = self.__class__()
00173     for key,values in self.items():
00174       for value in values:
00175         tmp[value]=key
00176     self.list,self.dict = tmp.list,tmp.dict
00177     del tmp
  

Variable Documentation

Definition at line 23 of file multivaluedict.py.

Referenced by cond::Utilities::run().

Definition at line 23 of file multivaluedict.py.