CMS 3D CMS Logo

Classes | Functions | Variables
beamvalidation Namespace Reference

Classes

class  IOV
 
class  ParsingError
 

Functions

def cmp_tags (a, b)
 
def dump_footer (lines)
 
def dump_header (lines)
 
def exit (msg="")
 
def get_lastIOVs (listoftags, dest, auth)
 
def get_listoftags (dest, auth)
 
def get_plots (path, output, iovs, tag)
 
def get_productionFiles (directory)
 
def get_productionIOVs (directory)
 
def nonzero (self)
 
def pack (high, low)
 
def parse (docstring, arglist=None)
 
def unpack (i)
 
def unpackLumiid (i)
 
def write_iovs (iovs, lines)
 
def write_plots (lines, plots, web)
 
def write_tags (tags, lines)
 

Variables

 args
 
 auth
 
 br
 
 dest
 Get the latest tags dest = "frontier://cmsfrontier.cern.ch:8000/Frontier/CMS_COND_31X_BEAMSPOT". More...
 
 end
 
 htmlwebsite
 
 lasttag
 
 lines
 
 list_lastIOVs
 
 list_tags
 
 option
 
 optionstring
 
 outfile
 
 pngfiles
 
 processedruns
 
 USAGE
 

Function Documentation

◆ cmp_tags()

def beamvalidation.cmp_tags (   a,
  b 
)

Definition at line 80 of file beamvalidation.py.

80 def cmp_tags(a,b):
81 
82  yeara = int(a.split('_')[1])
83  yearb = int(b.split('_')[1])
84 
85  if yeara < yearb: return -1
86  if yeara > yearb: return 1
87 
88  suffix = "_offline"
89  if a.find("_express") != -1:
90  suffix = "_express"
91  if a.find("_prompt") != -1:
92  suffix = "_prompt"
93 
94  tmpa = a.replace("BeamSpotObjects_2009_v","")
95  tmpa = tmpa.replace(suffix,"")
96 
97  tmpb = b.replace("BeamSpotObjects_2009_v","")
98  tmpb = tmpb.replace(suffix,"")
99 
100  na = int(tmpa)
101  nb = int(tmpb)
102  if na < nb: return -1
103  if na == nb: return 0
104  if na > nb: return 1
105 
106 #___
107 

References createfilelist.int.

◆ dump_footer()

def beamvalidation.dump_footer (   lines)

Definition at line 128 of file beamvalidation.py.

128 def dump_footer(lines):
129 
130  lines.append('</body>\n</html>\n')
131 
132 #______________

◆ dump_header()

def beamvalidation.dump_header (   lines)

Definition at line 108 of file beamvalidation.py.

108 def dump_header(lines):
109 
110  lines.append('''
111 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>
112 <head><title>Beam Spot Calibration Status</title></head>
113 
114 <body>
115 
116 <H1>Status of the Beam Spot Calibration</H1>
117 <BR>
118 <BR>
119 This page is updated every 10 minutes:
120 <BR>
121 <strong><script src="datemod.js"
122 type="text/javascript"></script></strong>
123 
124 ''')
125 
126 #____
127 

◆ exit()

def beamvalidation.exit (   msg = "")

Definition at line 53 of file beamvalidation.py.

53 def exit(msg=""):
54  raise SystemExit(msg or optionstring.replace("%prog",sys.argv[0]))
55 

Referenced by evf.__attribute__(), presentation.ValidationPlots.__init__(), authentication.X509CertAuth.__init__(), optutl::CommandLineParser._finishDefaultOptions(), optutl::CommandLineParser._setVariablesFromFile(), abConnect(), addFilesWithFork(), trklet::Sector.addMem(), trklet::Sector.addProc(), EnergyScaleCorrection_class.AddScale(), EnergyScaleCorrection_class.AddSmearing(), SiStripGainRandomCalculator.algoAnalyze(), SiStripGainCosmicCalculator.algoBeginJob(), SiStripGainFromData.algoBeginJob(), SiStripGainFromCalibTree.algoBeginRun(), SiStripGainFromData.algoBeginRun(), MonitorElementsDb.analyze(), SiStripApvGainBuilderFromTag.analyze(), cmsswVersionTools.PickRelValInputFiles.apply(), BeamSpotWorkflow.aselectFilesToProcess(), utils_v2.auth_wget(), backgroundFunctionService(), hcalCalib.Begin(), PhysicsPerformanceDBWriterFromFile_WPandPayload.beginJob(), SiStripGainsPCLHarvester.beginRun(), HLTHiggsSubAnalysis.beginRun(), FWSimpleProxyBuilderTemplate< TrajectorySeed >.build(), CocoaDaqReaderRoot.BuildMeasurementsFromOptAlign(), Measurement.buildOptOList(), MeasurementDiffEntry.buildOptONamesList(), Measurement.buildOptONamesList(), SiStripDetVOffBuilder.buildPSUdetIdMap(), ALIUtils.CalculateAngleDimensionFactorFromInt(), ALIUtils.CalculateAngleDimensionFactorFromString(), TagProbeFitTreeAnalyzer.calculateEfficiency(), ALIUtils.CalculateLengthDimensionFactorFromInt(), ALIUtils.CalculateLengthDimensionFactorFromString(), MeasurementSensor2D.calculateSimulatedValue(), MeasurementCOPS.calculateSimulatedValue(), MeasurementTiltmeter.calculateSimulatedValue(), condbon.cdbon_write(), combineBTagCalibrationData.check_csv_data(), errors.check_response(), uploads.uploader.check_response_for_error_key(), edmStreamStallGrapher.chooseParser(), gen.cms_hwwarn_(), CmsShowMain.CmsShowMain(), ValidationMatrix_v2.ReleaseComparison.compare(), ConfigurableAnnealing.ConfigurableAnnealing(), BaseFunction.convertToArrays(), heppy::MuScleFitCorrector.convertToArrays(), createPayload.copyToWorkflowdir(), OpticalObject.createComponentOptOs(), fastsim::TrackerSimHitProducer.createHitOnDetector(), web.dbfile2html.dbfile2html(), DBWriter.DBWriter(), LzmaFile.DecodeBuffer(), OpticalObject.defaultBehaviour(), Measurement.DerivativeRespectEntry(), OpticalObject.detailedDeviatesLightRay(), OpticalObject.detailedTraversesLightRay(), OpticalObject.displaceRmGlobOriginal(), OpticalObject.displaceRmGlobOriginalOriginal(), SiStripGainsPCLWorker.dqmBeginRun(), Measurement.DumpBadOrderOptOs(), ALIUtils.dumpDimensions(), EcalEleCalibLooper.EcalEleCalibLooper(), EmulateCPPF.EmulateCPPF(), FWModelChangeManager.endChanges(), TotemRPSD.EndOfEvent(), PPSDiamondSD.EndOfEvent(), EnergyScaleCorrection_class.EnergyScaleCorrection_class(), ErrorsAnalyzer.ErrorsAnalyzer(), ErrorsPropagationAnalyzer.ErrorsPropagationAnalyzer(), dqmd_manager.exec_func(), uploads.uploader.exit_upload(), OpticalObject.fastDeviatesLightRay(), OpticalObject.fastTraversesLightRay(), Entry.fill(), OpticalObject.fillCoordinateEntry(), Measurement.fillData(), FittedEntriesSet.FillEntriesAveragingSets(), OpticalObject.fillExtraEntry(), Entry.fillFromInputFileQuality(), Entry.fillFromInputFileSigma(), Entry.fillFromInputFileValue(), HSCPHLTFilter.filter(), Fit.findEntryFitPosition(), OpticalObject.findExtraEntryValue(), OpticalObject.findExtraEntryValueMustExist(), OpticalObjectMgr.findOptO(), OpticalObjectMgr.findOptOs(), Fit.fitParameters(), FittedEntry.FittedEntry(), FullModelReactionDynamics.GenerateXandPt(), LutXml.get_checksum(), ValidationMatrix.get_clean_fileanames(), uploadConditions.get_directory_to_pull_to(), uploadConditions.get_local_commit_hash(), ZdcLut.get_lut(), ALIUtils.getBool(), getCompressedBuffer(), ErrorCorrelationMgr.getCorrelation(), Pythia8::PowhegHooksBB4L.getdechardness(), DeviationsFromFileSensor2D.getDevis(), OpticalObject.getDisplacementInLocalCoordinates(), Model.getEntryByName(), getFlagStream(), ALIUtils.getFloat(), getHLTConfigData(), ALIFileOut.getInstance(), ALIFileIn.getInstanceOpened(), ALIUtils.getInt(), BeamSpotWorkflow.getLastUploadedIOV(), BeamSpotWorkflow.getListOfRunsAndLumiFromDBS(), HcalLutManager.getLutFromXml_old(), popcon::EcalLaser_weekly_Linearization_Check.getNewObjects(), popcon::EcalLaser_weekly_Handler.getNewObjects(), popcon::EcalPedestalsHandler.getNewObjects(), HCALConfigDB.getOnlineLUT(), Model.getOptOByName(), Model.getOptOByType(), Model.getParamFittedSigmaVectorItem(), Measurement.getPreviousOptO(), makeHLTPrescaleTable.getProcessObjectFromConfDB(), OpticalObject.getRotationAnglesInOptOFrame(), heppy::MuScleFitCorrector.getSmearedPt(), ZIterativeAlgorithmWithFit.getStatWeights(), checkPayloads.getUploadedIOVs(), ALIFileIn.getWordsInLine(), HCovarianceVSxy.HCovarianceVSxy(), optutl::CommandLineParser.help(), HLTHiggsSubAnalysis.HLTHiggsSubAnalysis(), gen::EvtGenInterface.init(), SiStripDetVOffFakeBuilder.initialize(), DBReader.initialize(), SiStripCoralIface.initialize(), Herwig7Hadronizer.initializeForInternalPartons(), ZeroSuppressFP420.initParams(), ALILine.intersect(), LightRay.intersect(), InvRingCalib.InvRingCalib(), L1RCTSaveInput.L1RCTSaveInput(), command_line.list_object(), CmsShowMainBase.loadGeometry(), copyFromCastor.main(), copyAndRename.main(), copyFiles.main(), buildHistoTypes.main(), uploader.main(), combineBTagCalibrationData.main(), splitter.main(), main(), generateFlavCfromFlavB.main(), checkRuns.main(), checkPayloads.main(), BeamSpotWorkflow.main(), validateAlignments.main(), utils_v2.make_file_pairs(), utils.make_files_pairs(), OptOCOPS.makeMeasurement(), OpticalObject.makeMeasurement(), GeometryComparisonPlotter.MakePlots(), TrajectoryManager.makeSinglePSimHit(), MatcherUsingTracksAlgorithm.match(), Pythia8::PowhegHooksBB4L.match_decay(), ResidualRefitting.MatchTrackWithRecHits(), MonitorXMLParser.MonitorXMLParser(), MuonErrorMatrix.MuonErrorMatrix(), MuScleFit.MuScleFit(), electronCompare.mysystem(), electronStore.mysystem(), LzmaFile.Open(), edm.openFileHdl(), ALIFileIn.openNewFile(), uploadConditions.parse_arguments(), optutl::CommandLineParser.parseArguments(), OptOLens.participateInMeasurement(), OptORisleyPrism.participateInMeasurement(), OptOCameraDetector.participateInMeasurement(), CSCBadChambersConditions.prefillBadChambers(), CSCBadStripsConditions.prefillBadStrips(), CSCBadWiresConditions.prefillBadWires(), CSCCrosstalkConditions.prefillCrosstalk(), CSCCrosstalkDBConditions.prefillDBCrosstalk(), CSCGainsDBConditions.prefillDBGains(), CSCNoiseMatrixDBConditions.prefillDBNoiseMatrix(), CSCPedestalsDBConditions.prefillDBPedestals(), CSCGainsConditions.prefillGains(), CSCNoiseMatrixConditions.prefillNoiseMatrix(), das_client.print_from_cache(), edm::RandomtXiGunProducer.produce(), SiStripApvGainFakeESSource.produce(), MuonSimHitProducer.produce(), Fit.PropagateErrors(), CSCTFPtMethods.Pt2StnChiSq(), CSCTFPtMethods.Pt3StnChiSq(), gen::Py8InterfaceBase.Py8InterfaceBase(), PDRates.RateInPD(), BuildTrackerMapPlugin.read(), OpticalObject.readCoordinates(), StoreESCondition.readESChannelStatusFromFile(), DeviationsFromFileSensor2D.readFile(), EnergyScaleCorrection_class.ReadFromFile(), Model.readMeasurementsFromFile(), CocoaDaqReaderText.ReadNextEvent(), AsciiNeutronReader.readNextEvent(), popcon::EcalPedestalsHandler.readPedestal2017(), popcon::EcalPedestalsHandler.readPedestalFile(), popcon::EcalPedestalsHandler.readPedestalMC(), popcon::EcalPedestalsHandler.readPedestalTimestamp(), popcon::EcalPedestalsHandler.readPedestalTree(), MuScleFitBase.readProbabilityDistributionsFromFile(), EnergyScaleCorrection_class.ReadSmearingFromFile(), readSRF(), Model.readSystemDescription(), RootTreeHandler.readTree(), readTTF(), popcon::EcalIntercalibHandler.readTXT(), popcon::EcalTPGWeightIdMapHandler.readtxtFile(), popcon::EcalTPGWeightGroupHandler.readtxtFile(), EcalFloatCondObjectContainerXMLTranslator.readXML(), popcon::EcalIntercalibHandler.readXML(), popcon::EcalTPGWeightIdMapHandler.readxmlFile(), popcon::EcalTPGWeightGroupHandler.readxmlFile(), LightRay.refract(), edm::ESProxyFactoryProducer.registerFactoryWithKey(), cms::cudatest.requireDevices(), scaleFunctionBase< std::vector< double > >.resetParameters(), resolutionFunctionService(), resolutionFunctionVecService(), cmsswPreprocessor.CmsswPreprocessor.run(), checkBTagCalibrationConsistency.run_check_data(), uploadConditions.run_upload(), scaleFunctionType64< T >.scale(), scaleFunctionService(), scaleFunctionVecService(), utils_v2.search_on_disk(), BeamSpotWorkflow.selectFilesToProcess(), MeasurementSensor2D.setConversionFactor(), MeasurementCOPS.setConversionFactor(), MeasurementTiltmeter.setConversionFactor(), Measurement.setConversionFactor(), Measurement.setCurrentDate(), Comparator.SetDirs(), UpdatablePSimHit.setExitPoint(), FWGeometryTableViewManager.setGeoManagerFromFile(), GlobalOptionMgr.setGlobalOption(), Measurement.setName(), scaleFunctionBase< std::vector< double > >.setPar(), resolutionFunctionBase< double * >.setPar(), scaleFunctionBase< std::vector< double > >.setParameters(), scaleFunctionType50< T >.setParameters(), scaleFunctionType64< T >.setParameters(), resolutionFunctionBase< double * >.setParameters(), resolutionFunctionType45< T >.setParameters(), resolutionFunctionType46< T >.setParameters(), resolutionFunctionType47< T >.setParameters(), ClassBasedElectronID.setup(), CmsShowMainBase.setupConfiguration(), CmsShowMain.setupSocket(), ResolutionFunction.sigmaCotgTh(), ResolutionFunction.sigmaPhi(), ResolutionFunction.sigmaPt(), smearFunctionService(), ALIUtils.subQuotes(), TestPythiaDecays.TestPythiaDecays(), TotemTransport.TotemTransport(), UpdatablePSimHit.updateExitPoint(), OptOUserDefined.userDefinedBehaviour(), OpticalObject.userDefinedBehaviour(), VertexFitterManager.VertexFitterManager(), VertexRecoManager.VertexRecoManager(), pos::PixelMaxVsf.writeASCII(), pos::PixelLowVoltageMap.writeASCII(), pos::PixelDetectorConfig.writeASCII(), RootTreeHandler.writeTree(), Fit.WriteVisualisationFiles(), and EcalDccWeightBuilder.writeWeightToDB().

◆ get_lastIOVs()

def beamvalidation.get_lastIOVs (   listoftags,
  dest,
  auth 
)

Definition at line 231 of file beamvalidation.py.

231 def get_lastIOVs( listoftags, dest, auth ):
232 
233  dbtags = ['offline','express','prompt']
234 
235  results = {}
236  for itag in dbtags:
237 
238  lasttag = listoftags[itag][0]
239  #fix for the moment to read old tags
240  if itag != "offline":
241  lasttag = listoftags[itag][1]
242 
243  queryIOVs_cmd = "cmscond_list_iov -c "+dest+" -P "+auth+" -t "+ lasttag
244  print(queryIOVs_cmd)
245 
246  outcmd = commands.getstatusoutput( queryIOVs_cmd )
247 
248  tmparr = outcmd[1].split('\n')
249 
250  TimeType = tmparr[1].split()[1]
251  listIOVs = []
252 
253  # look at number of payloads
254  lastline = tmparr[len(tmparr)-1].split()
255  npayloads = int( lastline[len(lastline)-1] )
256 
257  maxIOVs = 3
258  if npayloads < 3:
259  maxIOVs = npayloads
260  # pick the last three IOVs
261  for i in range(0,maxIOVs):
262  tmpline = tmparr[len(tmparr) -2 -i]
263  aIOV = IOV()
264  aIOV.IOVfirst = tmpline.split()[0]
265  aIOV.IOVlast = tmpline.split()[1]
266  aIOV.type = TimeType
267  listIOVs.append( aIOV )
268 
269  results[lasttag] = listIOVs
270 
271  return results
272 
273 #
274 # lumi tools CondCore/Utilities/python/timeUnitHelper.py

References createfilelist.int, edm.print(), FastTimerService_cff.range, and cms::dd.split().

◆ get_listoftags()

def beamvalidation.get_listoftags (   dest,
  auth 
)

Definition at line 187 of file beamvalidation.py.

187 def get_listoftags(dest, auth,):
188 
189  queryTags_cmd = "cmscond_list_iov -c "+dest+" -P "+auth+" -a | grep BeamSpotObjects"
190  print(queryTags_cmd)
191  outcmd = commands.getstatusoutput( queryTags_cmd )
192  print(outcmd[1])
193 
194  listtags = outcmd[1].split()
195 
196  listtags_offline = []
197  for itag in listtags:
198  if itag[len(itag)-7:len(itag)] == "offline":
199  listtags_offline.append(itag)
200  listtags_express = []
201  for itag in listtags:
202  if itag[len(itag)-7:len(itag)] == "express":
203  listtags_express.append(itag)
204  listtags_prompt = []
205  for itag in listtags:
206  if itag[len(itag)-6:len(itag)] == "prompt":
207  listtags_prompt.append(itag)
208 
209  listtags_offline.sort( cmp = cmp_tags )
210  listtags_offline.reverse()
211  listtags_express.sort( cmp = cmp_tags )
212  listtags_express.reverse()
213  listtags_prompt.sort( cmp = cmp_tags )
214  listtags_prompt.reverse()
215 
216  result = {}
217  result['offline'] = listtags_offline
218  result['express'] = listtags_express
219  result['prompt'] = listtags_prompt
220 
221  return result
222 
223 #______________________

References edm.print(), and cms::dd.split().

◆ get_plots()

def beamvalidation.get_plots (   path,
  output,
  iovs,
  tag 
)

Definition at line 296 of file beamvalidation.py.

296 def get_plots(path,output, iovs, tag):
297 
298  initial=iovs[len(iovs)-1].IOVfirst
299  final =iovs[0].IOVfirst
300  if iovs[0].type == "lumiid":
301  initial = str(unpack(initial)[0])+":"+str(unpack(initial)[1])
302  final = str(unpack(final)[0])+":"+str(unpack(final)[1])
303 
304  initial = str(int(initial) -100 )
305  cmd = path+"/plotBeamSpotDB.py -b -P -t "+tag+" -i "+initial +" -f "+final
306  print(cmd)
307  outcmd = commands.getstatusoutput( cmd )
308  print(outcmd[1])
309 
310  cmd = "ls *.png"
311  outcmd = commands.getstatusoutput( cmd )
312 
313  pngfiles = outcmd[1].split('\n')
314  print(pngfiles)
315 
316  cmd = "cp *.png "+os.path.dirname(output)
317  outcmd = commands.getstatusoutput( cmd )
318  cmd = "rm *.png"
319  outcmd = commands.getstatusoutput( cmd )
320 
321  pngfiles.sort()
322  return pngfiles
323 
324 #_______________________________

References createfilelist.int, edm.print(), cms::dd.split(), str, and unpack().

◆ get_productionFiles()

def beamvalidation.get_productionFiles (   directory)

Definition at line 347 of file beamvalidation.py.

347 def get_productionFiles( directory ):
348 
349  list = commands.getstatusoutput('ls -t '+directory)
350  list = list[1].split()
351  newlist = []
352  for i in list:
353  if i.find('BeamFit_')!=-1:
354  newlist.append(i)
355 
356  return newlist
357 #_______________________________

References cms::dd.split().

Referenced by get_productionIOVs().

◆ get_productionIOVs()

def beamvalidation.get_productionIOVs (   directory)

Definition at line 358 of file beamvalidation.py.

358 def get_productionIOVs( directory ):
359 
360  files = get_productionFiles( directory )
361  listofruns = []
362  for f in files:
363  ii = f.find('Run')
364  arun = f[ii:len(f)-4]
365  listofruns.append(arun)
366  return listofruns
367 
368 #______________________________

References get_productionFiles().

◆ nonzero()

def beamvalidation.nonzero (   self)

Definition at line 41 of file beamvalidation.py.

41 def nonzero(self): # will become the nonzero method of optparse.Values
42  "True if options were given"
43  for v in six.itervalues(self.__dict__):
44  if v is not None: return True
45  return False
46 
47 optparse.Values.__nonzero__ = nonzero # dynamically fix optparse.Values
48 

Referenced by CSCDigiValidator.zeroSupStripDigis().

◆ pack()

def beamvalidation.pack (   high,
  low 
)
pack high,low 32bit unsigned int to one unsigned 64bit long long
   Note:the print value of result number may appear signed, if the sign bit is used.

Definition at line 275 of file beamvalidation.py.

275 def pack(high,low):
276  """pack high,low 32bit unsigned int to one unsigned 64bit long long
277  Note:the print value of result number may appear signed, if the sign bit is used.
278  """
279  h=high<<32
280  return (h|low)
281 

◆ parse()

def beamvalidation.parse (   docstring,
  arglist = None 
)

Definition at line 56 of file beamvalidation.py.

56 def parse(docstring, arglist=None):
57  global optionstring
58  optionstring = docstring
59  match = USAGE.search(optionstring)
60  if not match: raise ParsingError("Cannot find the option string")
61  optlines = match.group(1).splitlines()
62  try:
63  p = optparse.OptionParser(optlines[0])
64  for line in optlines[1:]:
65  opt, help=line.split(':')[:2]
66  short,long=opt.split(',')[:2]
67  if '=' in opt:
68  action='store'
69  long=long.split('=')[0]
70  else:
71  action='store_true'
72  p.add_option(short.strip(),long.strip(),
73  action = action, help = help.strip())
74  except (IndexError,ValueError):
75  raise ParsingError("Cannot parse the option string correctly")
76  return p.parse_args(arglist)
77 
78 #_______________________________
79 

◆ unpack()

def beamvalidation.unpack (   i)
unpack 64bit unsigned long long into 2 32bit unsigned int, return tuple (high,low)

Definition at line 282 of file beamvalidation.py.

282 def unpack(i):
283  """unpack 64bit unsigned long long into 2 32bit unsigned int, return tuple (high,low)
284  """
285  high=i>>32
286  low=i&0xFFFFFFFF
287  return(high,low)
288 

References mathSSE.return().

Referenced by get_plots(), and unpackLumiid().

◆ unpackLumiid()

def beamvalidation.unpackLumiid (   i)
unpack 64bit lumiid to dictionary {'run','lumisection'}

Definition at line 289 of file beamvalidation.py.

289 def unpackLumiid(i):
290  """unpack 64bit lumiid to dictionary {'run','lumisection'}
291  """
292  j=unpack(i)
293  return {'run':j[0],'lumisection':j[1]}
294 
295 #____________________________

References unpack().

◆ write_iovs()

def beamvalidation.write_iovs (   iovs,
  lines 
)

Definition at line 156 of file beamvalidation.py.

156 def write_iovs(iovs, lines):
157 
158  end = '\n'
159  br = '<BR>'+end
160  # hearder
161  lines.append('<tr>'+end)
162  for i in iovs.keys():
163  lines.append('<th>'+i)
164  lines.append('</th>'+end)
165  lines.append('</tr>'+end)
166  # lumi type
167  lines.append('<tr>'+end)
168  for i in iovs.keys():
169  aIOVlist = iovs[i]
170  aIOV = IOV()
171  if len(aIOVlist) > 0:
172  aIOV = aIOVlist[0]
173  lines.append('<td> '+aIOV.type+' </td>'+end)
174  lines.append('</tr>'+end)
175  # print iovs
176  for niovs in range(0,len(iovs[iovs.keys()[0]])):
177  lines.append('<tr>'+end)
178  for i in iovs.keys():
179  aIOVlist = iovs[i]
180  aIOV = IOV()
181  if len(aIOVlist) > niovs:
182  aIOV = aIOVlist[niovs]
183  lines.append('<td> '+aIOV.IOVfirst +' - '+aIOV.IOVlast+' </td>'+end)
184  lines.append('</tr>'+end)
185 
186 #______________

References FastTimerService_cff.range.

◆ write_plots()

def beamvalidation.write_plots (   lines,
  plots,
  web 
)

Definition at line 325 of file beamvalidation.py.

325 def write_plots(lines, plots,web):
326 
327  end = '\n'
328  br = '<BR>'+end
329 
330  lines.append(br)
331  lines.append('''
332 <table border="1">
333 
334 ''')
335  for i in range(0,len(plots)):
336  plot = plots[i]
337  plot = os.path.basename(plot)
338  if i%2 == 0:
339  lines.append("<tr>"+end)
340  lines.append("<td> <a href=\""+web+"/"+plot+"\"> <img src="+plot+" alt="+plot+" width='700' height='250' /> </a> </td>"+end)
341  if i%2 == 1:
342  lines.append("</tr>"+end)
343 
344  lines.append('</table>'+end)
345 
346 #________________________________

References FastTimerService_cff.range.

◆ write_tags()

def beamvalidation.write_tags (   tags,
  lines 
)

Definition at line 133 of file beamvalidation.py.

133 def write_tags(tags, lines):
134 
135  end = '\n'
136  br = '<BR>'+end
137 
138  lines.append('<tr>'+end)
139  for i in tags.keys():
140 
141  lines.append('<th>'+i)
142  lines.append('</th>'+end)
143  lines.append('</tr>'+end)
144 
145  for ntags in range(0,len(tags['offline'])):
146  lines.append('<tr>'+end)
147  for i in tags.keys():
148  alist = tags[i]
149  if ntags < len(tags[i]):
150  lines.append('<td> '+alist[ntags]+' </td>'+end)
151  else:
152  lines.append('<td> </td>')
153  lines.append('</tr>'+end)
154 
155 #______________

References FastTimerService_cff.range.

Variable Documentation

◆ args

beamvalidation.args

Definition at line 374 of file beamvalidation.py.

◆ auth

beamvalidation.auth

Definition at line 384 of file beamvalidation.py.

◆ br

beamvalidation.br

◆ dest

beamvalidation.dest

Get the latest tags dest = "frontier://cmsfrontier.cern.ch:8000/Frontier/CMS_COND_31X_BEAMSPOT".

Definition at line 383 of file beamvalidation.py.

◆ end

beamvalidation.end

Definition at line 397 of file beamvalidation.py.

◆ htmlwebsite

beamvalidation.htmlwebsite

Definition at line 378 of file beamvalidation.py.

◆ lasttag

beamvalidation.lasttag

Definition at line 425 of file beamvalidation.py.

◆ lines

beamvalidation.lines

Definition at line 396 of file beamvalidation.py.

◆ list_lastIOVs

beamvalidation.list_lastIOVs

Definition at line 390 of file beamvalidation.py.

◆ list_tags

beamvalidation.list_tags

Definition at line 387 of file beamvalidation.py.

◆ option

beamvalidation.option

Definition at line 374 of file beamvalidation.py.

◆ optionstring

beamvalidation.optionstring

Definition at line 51 of file beamvalidation.py.

◆ outfile

beamvalidation.outfile

Definition at line 434 of file beamvalidation.py.

◆ pngfiles

beamvalidation.pngfiles

Definition at line 429 of file beamvalidation.py.

◆ processedruns

beamvalidation.processedruns

Definition at line 393 of file beamvalidation.py.

◆ USAGE

beamvalidation.USAGE

Definition at line 39 of file beamvalidation.py.

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
beamvalidation.parse
def parse(docstring, arglist=None)
Definition: beamvalidation.py:56
beamvalidation.get_productionIOVs
def get_productionIOVs(directory)
Definition: beamvalidation.py:358
beamvalidation.write_iovs
def write_iovs(iovs, lines)
Definition: beamvalidation.py:156
beamvalidation.write_tags
def write_tags(tags, lines)
Definition: beamvalidation.py:133
mathSSE::return
return((rh ^ lh) &mask)
cms::dd::split
std::vector< std::string_view > split(std::string_view, const char *)
beamvalidation.dump_header
def dump_header(lines)
Definition: beamvalidation.py:108
beamvalidation.get_productionFiles
def get_productionFiles(directory)
Definition: beamvalidation.py:347
str
#define str(s)
Definition: TestProcessor.cc:48
beamvalidation.unpack
def unpack(i)
Definition: beamvalidation.py:282
beamvalidation.get_lastIOVs
def get_lastIOVs(listoftags, dest, auth)
Definition: beamvalidation.py:231
beamvalidation.dump_footer
def dump_footer(lines)
Definition: beamvalidation.py:128
beamvalidation.get_listoftags
def get_listoftags(dest, auth)
Definition: beamvalidation.py:187
beamvalidation.unpackLumiid
def unpackLumiid(i)
Definition: beamvalidation.py:289
createfilelist.int
int
Definition: createfilelist.py:10
beamvalidation.pack
def pack(high, low)
Definition: beamvalidation.py:275
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
beamvalidation.nonzero
def nonzero(self)
Definition: beamvalidation.py:41
beamvalidation.get_plots
def get_plots(path, output, iovs, tag)
Definition: beamvalidation.py:296
beamvalidation.exit
def exit(msg="")
Definition: beamvalidation.py:53
beamvalidation.cmp_tags
def cmp_tags(a, b)
Definition: beamvalidation.py:80
beamvalidation.write_plots
def write_plots(lines, plots, web)
Definition: beamvalidation.py:325