CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
tier0 Namespace Reference

Classes

class  ResponseError
 
class  Tier0Error
 
class  Tier0Handler
 

Functions

def _raise_http_error
 
def test
 
def unique
 

Variables

string tier0Url = 'https://cmsweb.cern.ch/t0wmadatasvc/prod/'
 

Function Documentation

def tier0._raise_http_error (   curl,
  response,
  proxy,
  timeout 
)
private

Definition at line 62 of file tier0.py.

62 
63 def _raise_http_error( curl, response, proxy, timeout ):
64  raise ResponseError( curl, response, proxy, timeout )
def _raise_http_error
Definition: tier0.py:62
def tier0.test (   url)

Definition at line 178 of file tier0.py.

References print().

179 def test( url ):
180  t0 = Tier0Handler( url, 1, 1, 1, None, debug=False)
181 
182  print(' fcsr = %s (%s)' % (t0.getFirstSafeRun(), type(t0.getFirstSafeRun()) ))
183  print(' reco_config = %s' % t0.getGlobalTag('reco_config'))
184  print(' express_config = %s' % t0.getGlobalTag('express_config'))
185  print('\n')
186 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def test
Definition: tier0.py:178
def tier0.unique (   seq,
  keepstr = True 
)

Definition at line 24 of file tier0.py.

References GetRecoTauVFromDQM_MC_cff.next, and submitPVValidationJobs.t.

Referenced by BeamHaloNavigationSchool.addInward(), edm.addToMissingDictionariesException(), SiStripLatency.allLatencies(), SiStripLatency.allModes(), SiStripLatency.allUniqueLatencyAndModes(), CTPPSProtonReconstructionEfficiencyEstimatorData.analyze(), RPCTwinMuxDigiToRaw.beginRun(), 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(), HGCalTriggerNtupleHGCDigis.HGCalTriggerNtupleHGCDigis(), 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(), TTTrackAssociator< T >.produce(), TTClusterAssociator< T >.produce(), TTStubAssociator< 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 
25 def unique(seq, keepstr=True):
26  t = type(seq)
27  if t in (unicode, str):
28  t = (list, t('').join)[bool(keepstr)]
29  try:
30  remaining = set(seq)
31  seen = set()
32  return t(c for c in seq if (c in remaining and not remaining.remove(c)))
33  except TypeError: # hashing didn't work, see if seq is sortable
34  try:
35  from itertools import groupby
36  s = sorted(enumerate(seq),key=lambda i_v1:(i_v1[1],i_v1[0]))
37  return t(next(g) for k,g in groupby(s, lambda i_v: i_v[1]))
38  except: # not sortable, use brute force
39  seen = []
40  return t(c for c in seq if not (c in seen or seen.append(c)))
def unique
Definition: tier0.py:24

Variable Documentation

string tier0.tier0Url = 'https://cmsweb.cern.ch/t0wmadatasvc/prod/'

Definition at line 14 of file tier0.py.