Functions | |
def | addIndex (filename, njobs, index=None) |
def | boolfromstring (string, name) |
def | cache (function) |
def | castorDirExists (path) |
def | clean_name (s) |
def | conddb (args) |
def | cppboolstring (string, name) |
def | getCommandOutput2 (command) |
def | parsecolor (color) |
def | parsestyle (style) |
def | pythonboolstring (string, name) |
def | recursivesubclasses (cls) |
def | replaceByMap (target, the_map) |
— Helpers —############################ More... | |
def | replacelast (string, old, new, count=1) |
Variables | |
list | fileExtensions = ["_cfg.py", ".sh", ".root"] |
Definition at line 89 of file helperFunctions.py.
References replacelast(), and harvestTrackValidationPlots.str.
Referenced by genericValidation.GenericValidation.createFiles(), genericValidation.GenericValidationData.createScript(), and genericValidation.GenericValidationData.getRepMap().
def helperFunctions.boolfromstring | ( | string, | |
name | |||
) |
Takes a string from the configuration file and makes it into a bool
Definition at line 165 of file helperFunctions.py.
References electrons_cff.bool, createfilelist.int, and harvestTrackValidationPlots.str.
Referenced by pythonboolstring().
def helperFunctions.cache | ( | function | ) |
Definition at line 151 of file helperFunctions.py.
Referenced by EcalHitResponse.analogSignalAmplitude(), SiStripLAProfileBooker.analyze(), DTCalibrationMap.getConsts(), ConvBremPFTrackFinder.getConvBremPFRecTracks(), edm::RootTree.getEntry(), RectangularEtaPhiTrackingRegion.hits(), CosmicTrackingRegion.hits_(), DeepDoubleXTFJetTagsProducer.initializeGlobalCache(), DeepFlavourTFJetTagsProducer.initializeGlobalCache(), DeepBoostedJetTagsProducer.initializeGlobalCache(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >.operator()(), ClusterShapeTrackFilterProducer.produce(), HIPixelTrackFilterProducer.produce(), edm::PtrVectorBase.PtrVectorBase(), edm::RootEmbeddedFileSequence.readOneEvent(), edm::RootFile.RootFile(), edm::EmbeddedRootSource.runHelper(), ClusterShapeTrajectoryFilter.setEvent(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >.setEventSetup(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >.train(), edm::refcoreimpl.tryToSetCacheItemForFirstTime(), and reco::FlavorHistoryEvent.~FlavorHistoryEvent().
def helperFunctions.castorDirExists | ( | path | ) |
This function checks if the directory given by `path` exists. Arguments: - `path`: Path to castor directory
Definition at line 62 of file helperFunctions.py.
References getCommandOutput2().
def helperFunctions.clean_name | ( | s | ) |
Transforms a string into a valid variable or method name. Arguments: - `s`: input string
Definition at line 232 of file helperFunctions.py.
Referenced by geometryComparison.GeometryComparison.getRepMap().
def helperFunctions.conddb | ( | args | ) |
Wrapper for conddb, so that you can run conddb("--db", "myfile.db", "listTags"), like from the command line, without explicitly dealing with all the functions in CondCore/Utilities. getcommandoutput2(conddb ...) doesn't work, it imports the wrong sqlalchemy in CondCore/Utilities/python/conddblib.py
Definition at line 196 of file helperFunctions.py.
References getCommandOutput2(), and digi_MixPreMix_cfi.strip.
Referenced by alignment.Alignment.__getConditions(), and alignment.Alignment.__testDbExist().
def helperFunctions.cppboolstring | ( | string, | |
name | |||
) |
Takes a string from the configuration file and makes it into a bool string for a C++ template
Definition at line 189 of file helperFunctions.py.
References pythonboolstring().
Referenced by plottingOptions.PlottingOptionsZMuMu.__init__(), plottingOptions.PlottingOptionsOffline.__init__(), and plottingOptions.PlottingOptionsPrimaryVertex.__init__().
def helperFunctions.getCommandOutput2 | ( | command | ) |
This function executes `command` and returns it output. Arguments: - `command`: Shell command to be invoked by this function.
Definition at line 47 of file helperFunctions.py.
Referenced by castorDirExists(), conddb(), geometryComparison.GeometryComparison.createScript(), validateAlignments.main(), validateAlignments.ParallelMergeJob.runJob(), and validateAlignments.ValidationJob.runJob().
def helperFunctions.parsecolor | ( | color | ) |
Definition at line 104 of file helperFunctions.py.
References createfilelist.int, and harvestTrackValidationPlots.str.
Referenced by preexistingValidation.PreexistingValidation.getRepMap().
def helperFunctions.parsestyle | ( | style | ) |
Definition at line 131 of file helperFunctions.py.
References createfilelist.int, and harvestTrackValidationPlots.str.
Referenced by preexistingValidation.PreexistingValidation.getRepMap().
def helperFunctions.pythonboolstring | ( | string, | |
name | |||
) |
Takes a string from the configuration file and makes it into a bool string for a python template
Definition at line 182 of file helperFunctions.py.
References boolfromstring(), and harvestTrackValidationPlots.str.
Referenced by primaryVertexValidation.PrimaryVertexValidation.__init__(), offlineValidation.OfflineValidation.__init__(), cppboolstring(), and geometryComparison.GeometryComparison.createConfiguration().
def helperFunctions.recursivesubclasses | ( | cls | ) |
Definition at line 145 of file helperFunctions.py.
Referenced by presentation.ValidationPlots.validationclass().
def helperFunctions.replaceByMap | ( | target, | |
the_map | |||
) |
— Helpers —############################
This function replaces `.oO[key]Oo.` by `the_map[key]` in target. Arguments: - `target`: String which contains symbolic tags of the form `.oO[key]Oo.` - `the_map`: Dictionary which has to contain the `key`s in `target` as keys
Definition at line 8 of file helperFunctions.py.
References harvestTrackValidationPlots.str.
Referenced by zMuMuValidation.ZMuMuValidation.appendToPlots(), geometryComparison.GeometryComparison.createConfiguration(), genericValidation.GenericValidation.createFiles(), validateAlignments.createMergeScript(), genericValidation.ValidationWithPlots.createPlottingScript(), geometryComparison.GeometryComparison.createScript(), genericValidation.ValidationWithComparison.doComparison(), genericValidation.ParallelValidation.doInitMerge(), genericValidation.ParallelValidation.doMerge(), genericValidation.ValidationWithPlots.doRunPlots(), zMuMuValidation.ZMuMuValidation.filesToCompare(), alignment.Alignment.getConditions(), genericValidation.GenericValidationData.getRepMap(), offlineValidation.OfflineValidation.initMerge(), and plottingOptions.PlottingOptionsTrackSplitting.validsubdets().
def helperFunctions.replacelast | ( | string, | |
old, | |||
new, | |||
count = 1 |
|||
) |
Replace the last occurances of a string
Definition at line 83 of file helperFunctions.py.
Referenced by addIndex().
list helperFunctions.fileExtensions = ["_cfg.py", ".sh", ".root"] |
Definition at line 87 of file helperFunctions.py.