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.

Referenced by SiStripDetCabling::addActiveDetectorsRawIds(), SiStripDetCabling::addAllDetectorsRawIds(), SiStripFEDErrorsDQM::addErrors(), SiStripDetCabling::addFromSpecificConnection(), HcalLutManager::addLutMap(), CSCMap1Read::analyze(), SiStripMonitorCluster::analyze(), SiStripMonitorHLT::analyze(), EcalCosmicsHists::analyze(), SiStripMonitorDigi::analyze(), EcalBarrelSimHitsValidation::analyze(), SimplePi0DiscAnalyzer::analyze(), EcalEndcapSimHitsValidation::analyze(), DTCompactMapWriter::appendROS(), VertexAssociatorByTracks::associateRecoToSim(), VertexAssociatorByTracks::associateSimToReco(), QTestHandle::attachTests(), EEDcsInfoTask::beginLuminosityBlock(), EEDaqInfoTask::beginLuminosityBlock(), MonitorTrackResiduals::beginRun(), RPCGeometryBuilderFromCondDB::build(), ConvertedPhotonProducer::buildCollections(), SiStripDetVOffBuilder::BuildDetVOffObj(), RPCGeometryBuilderFromDDD::buildGeometry(), DTCompactMapWriter::buildSteering(), TagProbeFitTreeAnalyzer::calculateEfficiency(), PFClusterAlgo::cleanRBXAndHPD(), ora::TransactionCache::cleanUpNamedRefCache(), ora::TransactionCache::clear(), DTCompactMapWriter::cloneROS(), MuonMillepedeAlgorithm::collect(), GlobalRecHitsAnalyzer::compute(), GlobalRecHitsProducer::compute(), PhysicsTools::MVATrainer::connectProcessors(), ora::Database::containers(), PFElecTkProducer::createGsfPFRecTrackRef(), OnDemandMeasurementTracker::define(), ora::Database::drop(), RPCLinkSynchroStat::dumpDelays(), EEDaqInfoTask::endLuminosityBlock(), EEDataCertificationTask::endLuminosityBlock(), EEDcsInfoTask::endLuminosityBlock(), EEDataCertificationTask::endRun(), EEDaqInfoTask::endRun(), EEDcsInfoTask::endRun(), ora::DatabaseUtilitySession::existsContainer(), fwlite::RecordWriter::fill(), CSCChamberIndexValues::fillChamberIndex(), CSCChamberMapValues::fillChamberMap(), CSCCrateMapValues::fillCrateMap(), CSCDDUMapValues::fillDDUMap(), MuonAlignment::fillGapsInSurvey(), DTCompactMapWriter::fillReadOutMap(), HLTCSCOverlapFilter::filter(), RPCRecHitFilter::filter(), HLTCSCRing2or3Filter::filter(), CSCDigiValidator::filter(), SiPixelInformationExtractor::findNoisyPixels(), BeamMonitor::FitAndFill(), ora::Database::flush(), EMap::get_map(), HcalEmap::get_map(), HcalLutManager::get_xml_files_from_db(), getCentralityFromFile(), HBHEHitMapOrganizer::getHPDs(), SimpleMTFHitCollector::getMeasurements(), pos::PixelPortcardMap::getName(), popcon::EcalTPGWeightGroupHandler::getNewObjects(), RPCDBPerformanceHandler::getNewObjects(), PVFitter::getNPVsperBX(), HBHEHitMapOrganizer::getRBXs(), FWViewCombo::HandleButton(), trigger::HLTPrescaleTable::HLTPrescaleTable(), HcalChannelIterator::init(), SiStripDetCabling::IsInMap(), CSCDigitizer::layersMissing(), RPCFakeCalibration::makeCls(), XMLDocument::makeMaps(), RPCFakeCalibration::makeNoise(), CosmicMuonLinksProducer::mapTracks(), pos::PixelPortcardMap::modules(), edm::operator||(), RPCMonitorDigi::performSourceOperation(), QualityTester::performTests(), cond::PayLoadInspector< DataT >::plot(), SiStripInformationExtractor::plotHistosFromLayout(), pos::PixelPortcardMap::PortCardAndAOHs(), pos::PixelPortcardMap::portcards(), L1GtBoard::print(), edm::service::RandomNumberGeneratorService::print(), EcalTPCondAnalyzer::printEcalTPGFineGrainEBIdMap(), EcalTPCondAnalyzer::printEcalTPGLutIdMap(), SiStripActionExecutor::printShiftHistoParameters(), CkfDebugger::printSimHits(), SiPixelGainCalibrationAnalysis::printSummary(), EcalTPCondAnalyzer::printTOWEREE(), EcalTPCondAnalyzer::printWEIGHT(), HLTTrackClusterRemover::produce(), magneticfield::AutoMagneticFieldESProducer::produce(), sistrip::FEDEmulatorModule::produce(), DTDigiToRawModule::produce(), TrackClusterRemover::produce(), SecondaryVertexProducer::produce(), SiStripInformationExtractor::readLayoutNames(), SiStripDaqInfo::readSubdetFedFractions(), CSCOverlapsAlignmentAlgorithm::run(), ConversionTrackPairFinder::run(), PVFitter::runBXFitter(), Selections::Selections(), EcalSelectiveReadout::setElecMap(), HcalBaseSignalGenerator::setParameterMap(), EcalSelectiveReadoutSuppressor::setTriggerMap(), EcalSelectiveReadout::setTriggerMap(), edm::detail::CachedProducts::setup(), AlignmentMonitorBase::startingNewLoop(), evf::FUEventProcessor::subWeb(), cond::PayLoadInspector< DataT >::summary(), EMap_test::test_read_map(), HcalEmap_test::test_read_map(), ZdcTestAnalysis::update(), FWLiteESRecordWriterAnalyzer::update(), and HcalLutManager::writeLutXmlFiles().

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(), 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' 
)

Definition at line 155 of file multivaluedict.py.

Referenced by EtaPtBin::buildDescriptionString(), AlignmentParameterBuilder::decodeParamSel(), own_ptr< std::ifstream >::operator=(), own_ptr< std::ifstream >::reset(), gen::Pythia6Service::setSLHAFromHeader(), own_ptr< std::ifstream >::~own_ptr(), and XMLDocument::~XMLDocument().

00156                                       :
00157     if value=='...None':
00158       del self[key]
00159     else:
00160       index = self[key].index(value) 
      del self[key][index]
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(), BetaCalculatorTK::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(), PhotonValidator::analyze(), HLTAlCaMonPi0::analyze(), WValidation::analyze(), EmDQMReco::analyze(), SusyDQM< Mu, Ele, Jet, Met >::analyze(), EmDQM::analyze(), HLTMuon::analyze(), DTT0CalibrationNew::analyze(), L1TCompare::analyze(), HLTJets::analyze(), PhotonAnalyzer::analyze(), DrellYanValidation::analyze(), HLTOniaSource::analyze(), HLTAlCa::analyze(), JetTagMVATreeTrainer::analyze(), TestTrackHits::analyze(), SiStripFEDMonitorPlugin::analyze(), PatBJetTrackAnalyzer::analyze(), TestOutliers::analyze(), HeavyFlavorValidation::analyze(), HLTInfo::analyze(), HLTTauDQMCaloPlotter::analyze(), HLTTauDQML1Plotter::analyze(), CSCTFanalyzer::analyze(), QcdUeDQM::analyze(), HLTMuonValidator::analyze(), HLTEgamma::analyze(), DQMSourcePi0::analyze(), EventShape::aplanarity(), MuonAssociatorByHits::associateRecoToSimIndices(), MuonAssociatorByHits::associateSimToRecoIndices(), 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(), HcalLogicalMap::checkHashIds(), 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(), PFTauElementsOperators::computeInsideOutContents(), APVShot::computeShot(), RoadMaker::constructRoads(), 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(), 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(), HLTPi0RecHitsFilter::filter(), ProbeTreeProducer::filter(), HLTRPCTrigNoSyncFilter::filter(), HLTEgammaDoubleEtFilter::filter(), HLTEgammaDoubleEtPhiFilter::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(), 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(), SiStripPsuDetIdMap::getDetID(), dRxyCalculator::getDRxy(), L2TauModularIsolationProducer::getECALHits(), L2TauNarrowConeIsolationProducer::getECALHits(), stor::RegistrationCollection::getEventConsumers(), L2TauModularIsolationProducer::getHCALHits(), L2TauNarrowConeIsolationProducer::getHCALHits(), SiStripPsuDetIdMap::getHvDetID(), MeasurementTracker::getInactiveStrips(), ESElectronicsMapper::GetListofFEDs(), SiStripPsuDetIdMap::getLvDetID(), SiStripFEDMonitorPlugin::getMajority(), L2TauModularIsolationProducer::getPFClusters(), smproxy::DataRetrieverMonitorCollection::getStatsByEventTypesPerConnection(), HcalDDDGeometry::getValidDetIds(), ZdcGeometry::getValidDetIds(), CastorGeometry::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(), HLTHcalMETNoiseFilter::HLTHcalMETNoiseFilter(), HybridClusterAlgo::HybridClusterAlgo(), HSCPValidator::IncreasedTreshold(), HSCPHLTFilter::IncreasedTreshold(), lhef::LHERunInfo::init(), MSLayersKeeperX0AtEta::init(), SiStripHashedDetId::init(), DTMeantimerPatternReco::initHits(), DDG4ProductionCuts::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(), PFTauDiscriminants::PFTauDiscriminantManager::mainTrack(), HFClusterAlgo::makeCluster(), CosmicClusterAlgo::makeClusters(), HybridClusterAlgo::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(), 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()(), 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(), SiPixelTemplateReco::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(), WMuNuProducer::produce(), CandOneToManyDeltaRMatcher::produce(), pat::PATElectronProducer::produce(), DeDxEstimatorProducer::produce(), PixelVertexProducerMedian::produce(), InputGenJetsParticleSelector::produce(), RecoTauCleanerImpl< Prod >::produce(), pat::PATJetProducer::produce(), L2TauJetsMerger::produce(), reco::PhysObjectMatcher< C1, C2, S, D, Q >::produce(), OtherObjectVariableComputer< T >::produce(), TtFullLepKinSolutionProducer::produce(), pat::PATGenCandsFromSimTracksProducer::produce(), RecoTauProducer::produce(), cms::JetCorrectionProducer< T >::produce(), RPCTechnicalTrigger::produce(), pat::PATMuonProducer::produce(), pat::PATPhotonProducer::produce(), SeedGeneratorFromProtoTracksEDProducer::produce(), FWRecoGeometryESProducer::produce(), pat::GenPlusSimParticleProducer::produce(), pat::PATTauProducer::produce(), DeDxEstimatorProducerPixelTripplet::produce(), L3TkMuonProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATPFParticleProducer::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(), 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(), FWExpressionValidator::setType(), PhotonIsolationCalculator::setup(), 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(), CmsTrackerSubStrctBuilder::sortNS(), CmsTrackerPanelBuilder::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(), AlignmentMuonSelector::theBestMassPairCombinationMuons(), AlignmentMuonSelector::theNHighestPtMuons(), CalibrationTrackSelector::theNHighestPtTracks(), AlignmentTrackSelector::theNHighestPtTracks(), TIBLayer::TIBLayer(), TOBRod::TOBRod(), TrackerStablePhiSort(), reco::modules::TrackerTrackHitFilter::TrackerTrackHitFilter(), QcdLowPtDQM::trackletVertexUnbinned(), SETFilter::transform(), egHLT::trigTools::translateFiltersToPathNames(), HLTScalersClient::CountLSFifo_t::trim_(), SimpleCosmicBONSeeder::triplets(), SiTrivialDigitalConverter::truncate(), EcalRawToRecHitRoI::unique(), MSLayersAtAngle::update(), sistrip::RawToDigiUnpacker::update(), MeasurementTracker::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.