Definition at line 24 of file tier0.py.
References electrons_cff.bool, GetRecoTauVFromDQM_MC_cff.next, and submitPVValidationJobs.t.
Referenced by BeamHaloNavigationSchool.addInward(), edm.addToMissingDictionariesException(), SiStripLatency.allLatencies(), SiStripLatency.allModes(), SiStripLatency.allUniqueLatencyAndModes(), CTPPSProtonReconstructionEfficiencyEstimatorData.analyze(), RPCTwinMuxDigiToRaw.beginRun(), mkfit::StdSeq.clean_cms_seedtracks_iter(), TrigObjTnPHistColl::FilterSelector.cleanTrigKeys(), EMTFSubsystemCollector.cluster_rpc(), SiStripThreshold.compact(), TriggerRatesMonitor.dqmBeginRun(), trklet::TripletEngine.execute(), EMTFSubsystemCollector.extractPrimitives(), CSCSegmentValidation.fillEfficiencyPlots(), FWGeoMaterialValidator.fillOptions(), FWDetailViewManager.findViewersFor(), PixelInactiveAreaFinder.getBadPixelDets(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >.getBestCombination(), tier0.Tier0Handler.getGlobalTag(), ESElectronicsMapper.GetListofFEDs(), edm::IndexIntoFile::IndexIntoFileItrImpl.getLumisInRun(), SiStripFEDMonitorPlugin.getMajority(), TTUTrackingAlg.ghostBuster(), TTClusterAssociationMap< T >.isCombinatoric(), TTClusterAssociationMap< T >.isGenuine(), TTClusterAssociationMap< T >.isUnknown(), TSToSCAssociatorByEnergyScoreImpl.makeConnections(), MultiClusterAssociatorByEnergyScoreImpl.makeConnections(), LCToSCAssociatorByEnergyScoreImpl.makeConnections(), LCToCPAssociatorByEnergyScoreImpl.makeConnections(), TSToSimTSAssociatorByEnergyScoreImpl.makeConnections(), ticl::PatternRecognitionbyCA< TILES >.makeTracksters(), fireworks::OptionNode.options(), edm::MergeableRunProductMetadata.preWriteRun(), magneticfield.printUniqueNames(), TTUEmulator.processTtu(), TTStubAssociator< T >.produce(), TTClusterAssociator< T >.produce(), TTTrackAssociator< T >.produce(), EgammaIsoESDetIdCollectionProducer.produce(), EgammaIsoHcalDetIdCollectionProducer.produce(), ReducedRecHitCollectionProducer.produce(), HLTJetCollForElePlusJets< T >.produce(), pat::PATPhotonProducer.produce(), InterestingDetIdFromSuperClusterProducer.produce(), InterestingDetIdCollectionProducer.produce(), pat::PATElectronProducer.produce(), SiStripPsuDetIdMap.RemoveDuplicateDetIDs(), SiStripDetVOffBuilder.removeDuplicates(), edm::eventsetup::EventSetupProvider.resetRecordPlusDependentRecords(), SiStripPsuDetIdMap.retrieveDcuDeviceAddresses(), emtf::Forest.saveSplitValues(), FWExpressionValidator.setType(), ClusterTPAssociation.sortAndUnique(), edm::eventsetup::DataProxyProvider::DataProxyContainer.sortEventSetupRecordKeys(), Phase2TrackerCabling.summaryDescription(), edm.throwMissingDictionariesException(), HGVHistoProducerAlgo.tracksters_to_SimTracksters(), TritonService.TritonService(), and ProvenanceDumper.work_().
24 def unique(seq, keepstr=True):
26 if t
in (unicode, str):
27 t = (list,
t(
'').join)[
bool(keepstr)]
31 return t(c
for c
in seq
if (c
in remaining
and not remaining.remove(c)))
34 from itertools
import groupby
35 s = sorted(enumerate(seq),key=
lambda i_v1:(i_v1[1],i_v1[0]))
36 return t(
next(g)
for k,g
in groupby(s,
lambda i_v: i_v[1]))
39 return t(c
for c
in seq
if not (c
in seen
or seen.append(c)))
def unique(seq, keepstr=True)