CMS 3D CMS Logo

Functions | Variables
makeListRunsInFiles Namespace Reference

Functions

def check_proxy ()
 
def findInJson (jsondict, strings)
 
def getData (dasQuery, dasLimit=0)
 
def main ()
 
def parseArguments ()
 

Variables

 action
 
def commandLineArguments = parseArguments()
 
 dasData = das_client.get_data(dasQuery, dasLimit)
 
 default
 
 description
 
def error = findInJson(jsondict,["data","error"])
 
 formatter_class
 
 help
 
int i = 0
 
 inputFile = open(commandLineArguments.input,"r")
 
 inputFileList = inputFile.readlines()
 
 jsondict = json.loads( dasData )
 
string jsonfile = "das_query_output_%i.txt"
 
def jsonstr = findInJson(jsondict,"reason")
 
string msg = "The DAS query returned an error. The output is very long, and has been stored in:\n" + jsonfile
 
def myData = getData("run file={}".format(inputFile))
 
list myRunsArray = []
 
 outputFile = open(outputFileName, "w")
 
def outputFileName = commandLineArguments.output
 
 parser
 
 required
 
dictionary runDictionary = {}
 
 runNumber = jsonDictionary["run_number"]
 
 stdout = dump)
 
list strings = [ strings ]
 
 theFile = open( jsonfile, "w" )
 

Function Documentation

◆ check_proxy()

def makeListRunsInFiles.check_proxy ( )

Definition at line 23 of file makeListRunsInFiles.py.

Referenced by main().

◆ findInJson()

def makeListRunsInFiles.findInJson (   jsondict,
  strings 
)

Definition at line 36 of file makeListRunsInFiles.py.

36 def findInJson(jsondict, strings):
def findInJson(jsondict, strings)

◆ getData()

def makeListRunsInFiles.getData (   dasQuery,
  dasLimit = 0 
)

Definition at line 62 of file makeListRunsInFiles.py.

62 def getData( dasQuery, dasLimit = 0 ):
def getData(dasQuery, dasLimit=0)

◆ main()

def makeListRunsInFiles.main ( )

Definition at line 98 of file makeListRunsInFiles.py.

References check_proxy(), and print().

◆ parseArguments()

def makeListRunsInFiles.parseArguments ( )

Definition at line 11 of file makeListRunsInFiles.py.

Variable Documentation

◆ action

makeListRunsInFiles.action

Definition at line 16 of file makeListRunsInFiles.py.

◆ commandLineArguments

def makeListRunsInFiles.commandLineArguments = parseArguments()
Main program 

Definition at line 109 of file makeListRunsInFiles.py.

◆ dasData

makeListRunsInFiles.dasData = das_client.get_data(dasQuery, dasLimit)
Get data from DAS query. Code copy-pasted from dataset.py 

Definition at line 66 of file makeListRunsInFiles.py.

◆ default

makeListRunsInFiles.default

Definition at line 17 of file makeListRunsInFiles.py.

◆ description

makeListRunsInFiles.description

Definition at line 15 of file makeListRunsInFiles.py.

Referenced by optutl::VariableMapCont._checkKey(), TFileDirectory._mkdir(), cms::cuda.abortOnCudaError(), cms::rocm.abortOnError(), cms::cuda.abortOnNvmlError(), cms::rocm.abortOnRsmiError(), edm::eventsetup::looper.addFinderTo(), edm::eventsetup.addProviderTo(), edm::eventsetup::looper.addProviderTo(), edm::eventsetup::ComponentMaker< edm::eventsetup::LooperMakerTraits, TType >.addTo(), algorithm(), edm::EventProcessor.beginJob(), edm.checkForModuleDependencyCorrectness(), ConfFitterBuilder< O >.ConfFitterBuilder(), ConfRecoBuilder< O >.ConfRecoBuilder(), sistrip::SpyEventMatcher.constructSource(), cond::persistency.copyIov(), edm::eventsetup::ComponentMakerBaseHelper.createComponentDescription(), SiStripHistoId.createHistoId(), SiStripHistoId.createHistoLayer(), createObject(), cms::cuda.cudaCheck_(), SiStripConfigDb.deviceAddress(), FastTimerService::PlotsPerPath.fill(), FastTimerService::PlotsPerProcess.fill(), edm::RawInputSource.fillDescription(), L1GTEvaluationProducer.fillDescriptions(), l1t::L1GTProducer.fillDescriptions(), L1GTAlgoBlockProducer.fillDescriptions(), edm.fillMaxEventsDescription(), edm.fillMaxLuminosityBlocksDescription(), edm.fillMaxSecondsUntilRampdownDescription(), edm.fillOptionsDescription(), getCollection(), cond::persistency::TAG::Table.getMetadata(), L1TCorrelatorLayer1PatternFileWriter.getParameterSetDescription(), cms::rocm.hipCheck_(), cond::persistency.importIovs(), ExpressionHisto< T >.initialize(), cond::persistency::GLOBAL_TAG::Table.insert(), cond::persistency::TAG::Table.insert(), edm::SubProcess.keepOnlyConsumedUnscheduledModules(), edm.nonConsumedUnscheduledModules(), ExceptionHandler.Notify(), cms::cuda.nvmlCheck_(), edm::service::RandomNumberGeneratorService.preModuleConstruction(), edm::service::RandomNumberGeneratorService.preModuleDestruction(), p2eg::Cluster.printClusterInfo(), edm::ConfigurationDescriptions.printForLabel(), p2eg::GCTcluster_t.printGCTClusterInfo(), p2eg::GCTtower_t.printGCTTowerInfoFromGlobalIdx(), p2eg::SimpleCaloHit.printHitInfo(), p2eg.printl1tp2TowerInfo(), optutl::CommandLineParser.printOptionValues(), edm::PathsAndConsumesOfModules.removeModules(), edm::WorkerT< T >.resolvePutIndicies(), cms::rocm.rsmiCheck_(), cond::persistency::GLOBAL_TAG::Table.select(), SiStripCondObjBuilderFromDb.setValuesCabling(), TwoObjectVariable< LHS, lLHS, RHS, lRHS, Calculator >.TwoObjectVariable(), cond::persistency::GLOBAL_TAG::Table.update(), cond::persistency::TAG::Table.updateMetadata(), edm.validateTopLevelParameterSets(), l1tVertexFinder::VertexNTupler.VertexNTupler(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.write(), npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >.write(), edm::OutputModuleCommunicatorT< T >.writeLumiAsync(), edm::OutputModuleCommunicatorT< T >.writeProcessBlockAsync(), and edm::OutputModuleCommunicatorT< T >.writeRunAsync().

◆ error

makeListRunsInFiles.error = findInJson(jsondict,["data","error"])

Definition at line 73 of file makeListRunsInFiles.py.

◆ formatter_class

makeListRunsInFiles.formatter_class

Definition at line 15 of file makeListRunsInFiles.py.

◆ help

makeListRunsInFiles.help

Definition at line 16 of file makeListRunsInFiles.py.

◆ i

int makeListRunsInFiles.i = 0

Definition at line 83 of file makeListRunsInFiles.py.

◆ inputFile

makeListRunsInFiles.inputFile = open(commandLineArguments.input,"r")

Definition at line 112 of file makeListRunsInFiles.py.

Referenced by GBRForestWriter.analyze(), edm::JobReport::JobReportImpl.associateInputLumiSection(), edm::JobReport::JobReportImpl.associateInputRun(), TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >.beginEvent(), AntiElectronIDMVA6< TauType, ElectronType >.beginEvent(), PPSModifySingularModes.beginRun(), TauDQMFileLoader::cfgEntryFileSet.cfgEntryFileSet(), LaserSorter.closeOutStream(), cond::auth::DecodingKey.createFromInputFile(), EffectiveAreas.EffectiveAreas(), EmulateCPPF.EmulateCPPF(), TauDQMFileLoader.endRun(), edm::JobReport::JobReportImpl.flushFiles(), matrixSaver.getConcreteMatrixVector(), WatcherStreamFileReader.getHeader(), edm::JobReport::JobReportImpl.getInputFileForToken(), matrixSaver.getMatrix(), matrixSaver.getMatrixVector(), WatcherStreamFileReader.getNextEvent(), METCorrectorParametersCollection.getSections(), MEtXYcorrectParametersCollection.getSections(), JetCorrectorParametersCollection.getSections(), HCovarianceVSParts.HCovarianceVSParts(), HCovarianceVSxy.HCovarianceVSxy(), jetHtPlotter(), PlotAlignmentValidation.loadFileList(), PFMETAlgorithmMVA.loadMVAfromFile(), main(), makePlots(), MaterialEffects.MaterialEffects(), NuclearInteractionSimulator.NuclearInteractionSimulator(), L1GtVhdlTemplateFile.open(), DCCTBDataParser.parseFile(), PlotAlignmentValidation.PlotAlignmentValidation(), PlotAlignmentValidation.plotChi2(), cond::XMLAuthenticationService::XMLAuthenticationService.processFile(), ptHatFilesAndValues(), cond::FileReader.read(), SiStripDetInfoFileReader.read(), NuclearInteractionSimulator.read(), fastsim::NuclearInteraction.read(), StoreEcalCondition.readEcalADCToGeVConstantFromFile(), StoreEcalCondition.readEcalChannelStatusFromFile(), StoreEcalCondition.readEcalGainRatiosFromFile(), StoreEcalCondition.readEcalIntercalibConstantsFromFile(), StoreEcalCondition.readEcalIntercalibConstantsMCFromFile(), StoreEcalCondition.readEcalPFRecHitThresholdsFromFile(), StoreEcalCondition.readEcalTBWeightsFromFile(), StoreEcalCondition.readEcalWeightXtalGroupsFromFile(), StoreESCondition.readESChannelStatusFromFile(), StoreESCondition.readESEEIntercalibConstantsFromFile(), StoreESCondition.readESGainFromFile(), StoreESCondition.readESIntercalibConstantsFromFile(), StoreESCondition.readESMissingEnergyFromFile(), StoreESCondition.readESPedestalsFromFile(), StoreESCondition.readESRecHitRatioCutsFromFile(), StoreESCondition.readESThresholdsFromFile(), StoreESCondition.readESTimeSampleWeightsFromFile(), popcon::EcalTPGPhysicsConstHandler.readFromFile(), popcon::EcalTPGFineGrainEBIdMapHandler.readFromFile(), popcon::EcalTPGLinConstHandler.readFromFile(), popcon::EcalTPGLutIdMapHandler.readFromFile(), popcon::EcalTPGBadXTHandler.readFromFile(), popcon::EcalTPGFineGrainEBGroupHandler.readFromFile(), popcon::EcalTPGBadStripHandler.readFromFile(), popcon::EcalTPGBadTTHandler.readFromFile(), popcon::EcalTPGTPModeHandler.readFromFile(), popcon::EcalTPGOddWeightIdMapHandler.readFromFile(), popcon::EcalTPGWeightIdMapHandler.readFromFile(), popcon::EcalTPGSlidingWindowHandler.readFromFile(), popcon::EcalTPGFineGrainTowerEEHandler.readFromFile(), popcon::EcalTPGPedestalsHandler.readFromFile(), popcon::EcalTPGFineGrainStripEEHandler.readFromFile(), popcon::EcalTPGSpikeThresholdHandler.readFromFile(), popcon::EcalTPGWeightGroupHandler.readFromFile(), popcon::EcalTPGLutGroupHandler.readFromFile(), popcon::EcalTPGOddWeightGroupHandler.readFromFile(), jsoncollector::FileIO.readStringFromFile(), runAndLumiLists(), Herwig::HerwigUIProvider.setRunMode(), matrixSaver.touch(), popcon::EcalTPGPhysicsConstHandler.writeFile(), popcon::EcalTPGFineGrainEBIdMapHandler.writeFile(), popcon::EcalTPGLutIdMapHandler.writeFile(), popcon::EcalTPGLinConstHandler.writeFile(), popcon::EcalTPGBadXTHandler.writeFile(), popcon::EcalTPGBadTTHandler.writeFile(), popcon::EcalTPGFineGrainEBGroupHandler.writeFile(), popcon::EcalTPGBadStripHandler.writeFile(), popcon::EcalTPGOddWeightIdMapHandler.writeFile(), popcon::EcalTPGWeightIdMapHandler.writeFile(), popcon::EcalTPGTPModeHandler.writeFile(), popcon::EcalTPGSlidingWindowHandler.writeFile(), popcon::EcalTPGFineGrainTowerEEHandler.writeFile(), popcon::EcalTPGPedestalsHandler.writeFile(), popcon::EcalTPGFineGrainStripEEHandler.writeFile(), popcon::EcalTPGSpikeThresholdHandler.writeFile(), popcon::EcalTPGLutGroupHandler.writeFile(), popcon::EcalTPGWeightGroupHandler.writeFile(), and popcon::EcalTPGOddWeightGroupHandler.writeFile().

◆ inputFileList

makeListRunsInFiles.inputFileList = inputFile.readlines()

◆ jsondict

makeListRunsInFiles.jsondict = json.loads( dasData )

Definition at line 68 of file makeListRunsInFiles.py.

◆ jsonfile

string makeListRunsInFiles.jsonfile = "das_query_output_%i.txt"

Definition at line 82 of file makeListRunsInFiles.py.

◆ jsonstr

makeListRunsInFiles.jsonstr = findInJson(jsondict,"reason")

Definition at line 78 of file makeListRunsInFiles.py.

◆ msg

string makeListRunsInFiles.msg = "The DAS query returned an error. The output is very long, and has been stored in:\n" + jsonfile

Definition at line 90 of file makeListRunsInFiles.py.

◆ myData

def makeListRunsInFiles.myData = getData("run file={}".format(inputFile))

Definition at line 121 of file makeListRunsInFiles.py.

Referenced by DCCTBDataParser.parseFile().

◆ myRunsArray

list makeListRunsInFiles.myRunsArray = []

Definition at line 123 of file makeListRunsInFiles.py.

◆ outputFile

makeListRunsInFiles.outputFile = open(outputFileName, "w")

Definition at line 138 of file makeListRunsInFiles.py.

◆ outputFileName

def makeListRunsInFiles.outputFileName = commandLineArguments.output

◆ parser

makeListRunsInFiles.parser
Parse the control line arguments

Definition at line 15 of file makeListRunsInFiles.py.

◆ required

makeListRunsInFiles.required

Definition at line 16 of file makeListRunsInFiles.py.

◆ runDictionary

dictionary makeListRunsInFiles.runDictionary = {}

Definition at line 117 of file makeListRunsInFiles.py.

◆ runNumber

makeListRunsInFiles.runNumber = jsonDictionary["run_number"]

Definition at line 129 of file makeListRunsInFiles.py.

◆ stdout

makeListRunsInFiles.stdout = dump)
Check if GRID proxy has been initialized.

Definition at line 30 of file makeListRunsInFiles.py.

◆ strings

list makeListRunsInFiles.strings = [ strings ]

◆ theFile

makeListRunsInFiles.theFile = open( jsonfile, "w" )