Public Member Functions | |
def | __call__ (self, key) |
def | __init__ (self, objName) |
Member Functions ##. More... | |
def | __setattr__ (self, name, value) |
def | __str__ (self) |
def | getVariableProperty (self, var, key) |
def | setValue (self, name, value) |
Static Public Member Functions | |
def | addObjectVariable (obj, var, optionsDict) |
def | ascii2char (match) |
def | blurEvent (event, value, where="") |
def | changeAlias (tupleName, name, alias) |
def | changeLabel (tupleName, objectName, label) |
def | changeVariable (tupleName, objName, varName, fillname) |
def | char2ascii (match) |
Static Member Functions ##. More... | |
def | checksum (str) |
def | compareRunEventDicts (firstDict, secondDict) |
def | compareTwoItems (item1, item2) |
def | compareTwoTrees (chain1, chain2, kwargs) |
def | decodeNonAlphanumerics (line) |
def | encodeNonAlphanumerics (line) |
def | evaluateFunction (obj, partsList, debug=False) |
def | getRunEventEntryDict (chain, tupleName, numEntries) |
def | getVariableProperty (obj, var, key) |
def | isSingleton (objName) |
def | loadConfigFile (configFile) |
def | loadEventFromTree (eventTree, eventIndex, onlyRunEvent=False) |
def | pairEquivalentObjects (vec1, vec2) |
def | parseVariableTofill (fillname) |
def | prepareToLoadGenObject () |
def | prepareTuple (tupleName, files, numEventsWanted=0) |
def | printEvent (event) |
def | printGlobal () |
def | printTuple (chain) |
def | rootClassName (objName) |
def | rootDiffClassName (objName) |
def | rootDiffContClassName (objName) |
def | saveTupleAs (chain, rootFile) |
def | setAliases (eventTree, tupleName) |
def | setEquivExpression (obj, variable, precision) |
def | setGlobalFlag (key, value) |
def | setupDiffOutputTree (outputFile, diffName, missingName, diffDescription='', missingDescription='') |
def | setupOutputTree (outputFile, treeName, treeDescription="", otherNtupleName="") |
Static Public Attributes | |
types | |
Static Member Data ##. More... | |
uselessReturnCode | |
Static Private Member Functions | |
def | _convertStringToParameters (string) |
def | _createCppClass (objName) |
def | _fillRootDiffs (event1, event2) |
def | _fillRootObjects (event) |
def | _finishClassHeader (className, datadec) |
def | _fixLostGreaterThans (handle) |
def | _genObjectClone (objName, tupleName, obj, index=-1) |
def | _key2re (key, runevent=None) |
def | _loadGoRootLibrary () |
def | _re2key (runevent) |
def | _rootDiffObject (obj1, obj2, rootObj=0) |
def | _rootObjectClone (obj) |
def | _rootObjectCopy (goSource, rootTarget) |
def | _setupClassHeader (className, noColon=False) |
def | _tofillGenObject () |
Private Attributes | |
_localObjsDict | |
_objName | |
Infrastruture to define general objects and their attributes.
Definition at line 55 of file GenObject.py.
def GenObject.GenObject.__init__ | ( | self, | |
objName | |||
) |
Member Functions ##.
Class initializer
Definition at line 1545 of file GenObject.py.
References print().
def GenObject.GenObject.__call__ | ( | self, | |
key | |||
) |
Makes object callable
Definition at line 1617 of file GenObject.py.
def GenObject.GenObject.__setattr__ | ( | self, | |
name, | |||
value | |||
) |
Controls setting of values.
Definition at line 1575 of file GenObject.py.
References GenObject.GenObject._localObjsDict, GenObject.GenObject._objName, dqmMemoryStats.float, GenObject.GenObject.getVariableProperty(), createfilelist.int, and print().
Referenced by GenObject.GenObject.setValue().
def GenObject.GenObject.__str__ | ( | self | ) |
String representation
Definition at line 1622 of file GenObject.py.
References GenObject.GenObject.getVariableProperty(), and mps_monitormerge.items.
|
staticprivate |
Convert comma-separated string into a python3 list of parameters. Currently only understands strings, floats, and integers.
Definition at line 1506 of file GenObject.py.
|
staticprivate |
Returns a string containing the '.C' file necessary to generate a shared object library with dictionary.
Definition at line 244 of file GenObject.py.
References relativeConstraints.keys, and print().
|
staticprivate |
Fills root diff containers from two GenObject 'event's
Definition at line 863 of file GenObject.py.
|
staticprivate |
|
staticprivate |
Returns a stringg with the end of a class definition
Definition at line 235 of file GenObject.py.
|
staticprivate |
Definition at line 409 of file GenObject.py.
References print().
|
staticprivate |
|
staticprivate |
Given a key, returns a GO 'runevent' object
Definition at line 1068 of file GenObject.py.
References createfilelist.int.
|
staticprivate |
Loads Root shared object library associated with all defined GenObjects. Will create library if necessary.
Definition at line 315 of file GenObject.py.
References print().
|
staticprivate |
|
staticprivate |
Given to GOs, it will create and fill the corresponding root diff object
Definition at line 745 of file GenObject.py.
References relativeConstraints.keys, and GenObject.GenObject.setupOutputTree().
|
staticprivate |
Creates the approprite type of Root object and copies the information into it from the GO object.
Definition at line 730 of file GenObject.py.
References relativeConstraints.keys.
|
staticprivate |
Copies information from goSourse into Root Object
Definition at line 718 of file GenObject.py.
References relativeConstraints.keys.
|
staticprivate |
Returns a string with the class header for a class 'classname'
Definition at line 221 of file GenObject.py.
|
staticprivate |
Makes sure that I know how to read root files I made myself
Definition at line 358 of file GenObject.py.
References relativeConstraints.keys.
|
static |
User passes in in object and variable names.
Definition at line 139 of file GenObject.py.
References print().
|
static |
|
static |
For debugging purposes only. Will deliberately change values of first tree to verify that script is correctly finding problems.
Definition at line 1281 of file GenObject.py.
References relativeConstraints.keys, and print().
|
static |
|
static |
Updates an label for an object for a given tuple
Definition at line 991 of file GenObject.py.
References mkLumiAveragedPlots.tuple.
|
static |
Updates the definition used to go from a Root object to a GenObject. 'tupleName' and 'objName' must already be defined.
Definition at line 656 of file GenObject.py.
|
static |
Static Member Functions ##.
Definition at line 120 of file GenObject.py.
|
static |
Returns a string of hex value of a checksum of input string.
Definition at line 195 of file GenObject.py.
References genParticles_cff.map.
|
static |
Compares the keys of the two dicts and returns three sets: the overlap, first but not second, and second but not first.
Definition at line 1084 of file GenObject.py.
|
static |
Compares all of the variables making sure they are the same on the two objects.
Definition at line 1240 of file GenObject.py.
References funct.abs(), and relativeConstraints.keys.
|
static |
Given all of the necessary information, this routine will go through and compare two trees making sure they are 'identical' within requested precision. If 'diffOutputName' is passed in, a root file with a diffTree and missingTree will be produced.
Definition at line 1310 of file GenObject.py.
References print().
|
static |
Decode lines encoded with encodeNonAlphanumerics()
Definition at line 133 of file GenObject.py.
|
static |
Use a web like encoding of characters that are non-alphanumeric
Definition at line 128 of file GenObject.py.
|
static |
|
static |
Returns a dictionary of run, event tuples to entryIndicies
Definition at line 1030 of file GenObject.py.
|
static |
Returns property assoicated with 'key' for variable 'var' of object 'obj'. Returns 'None' if any of the above are not defined.
Definition at line 158 of file GenObject.py.
Referenced by GenObject.GenObject.__setattr__(), GenObject.GenObject.__str__(), and GenObject.GenObject.getVariableProperty().
def GenObject.GenObject.getVariableProperty | ( | self, | |
var, | |||
key | |||
) |
Returns property assoicated with 'key' for variable 'var' of object of the same type as 'self'. Returns 'None' if 'var' or 'key' is not defined.
Definition at line 1567 of file GenObject.py.
References GenObject.GenObject._objName, and GenObject.GenObject.getVariableProperty().
|
static |
Returns true if object is a singleton
Definition at line 869 of file GenObject.py.
References GenObject.GenObject.loadEventFromTree().
|
static |
Loads configuration file
Definition at line 420 of file GenObject.py.
References watchdog.group, print(), submitPVValidationJobs.split(), and mkLumiAveragedPlots.tuple.
|
static |
Loads event information from Root file (as interfaced by 'cmstools.EventTree' or 'ROOT.TChain'). Returns a dictionary 'event' containing lists of objects or singleton object. If 'onlyRunEvent' is et to True, then only run and event number is read in from the tree.
Definition at line 876 of file GenObject.py.
References mps_setup.append, and print().
Referenced by GenObject.GenObject.isSingleton().
|
static |
Finds the equivalent objects in the two vectors
Definition at line 1106 of file GenObject.py.
References FastTimerService_cff.range.
|
static |
|
static |
Makes all necessary preparations to load root files created by GenObject.
Definition at line 383 of file GenObject.py.
|
static |
Given the tuple name and list of files, returns either a TChain or EventTree, and number of entries
Definition at line 1002 of file GenObject.py.
|
static |
Prints out event dictionary. Mostly for debugging
Definition at line 952 of file GenObject.py.
References print().
|
static |
Meant for debugging, but ok if called by user
Definition at line 178 of file GenObject.py.
References print().
|
static |
Prints out all events to stdout
Definition at line 1494 of file GenObject.py.
References GenObject.warn().
|
static |
Returns the name of the equivalent Root object
Definition at line 202 of file GenObject.py.
|
static |
Returns the name of the equivalent Root diff object
Definition at line 208 of file GenObject.py.
|
static |
Returns the name of the equivalent Root diff container object
Definition at line 214 of file GenObject.py.
|
static |
Saves a chain as a GO tree
Definition at line 1461 of file GenObject.py.
References print().
|
static |
runs SetAlias on all saved aliases
Definition at line 973 of file GenObject.py.
|
static |
Adds an equivalence constraint. Must have at least one to compare GO objects.
Definition at line 166 of file GenObject.py.
References print().
|
static |
Sets a global flag in _kitchenSinkDict
Definition at line 1488 of file GenObject.py.
|
static |
Opens the diff output file, loads all of the necessary shared object libraries, and returns the output file and tree.b
Definition at line 813 of file GenObject.py.
Referenced by GenObject.GenObject.setupOutputTree().
|
static |
Opens the output file, loads all of the necessary shared object libraries, and returns the output file and tree. If 'otherNtupleName' is given, it will check and make sure that only objects that are defined in it are written out.
Definition at line 779 of file GenObject.py.
References GenObject.GenObject.setupDiffOutputTree().
Referenced by GenObject.GenObject._rootDiffObject().
def GenObject.GenObject.setValue | ( | self, | |
name, | |||
value | |||
) |
Wrapper for __setattr___
Definition at line 1562 of file GenObject.py.
References ExternalGeneratorFilter.ExternalGeneratorFilter.__setattr__(), Enumerate.Enumerate.__setattr__(), Types._ProxyParameter.__setattr__(), python.rootplot.core.Options.__setattr__(), config.Analyzer.__setattr__(), options.HLTProcessOptions.__setattr__(), config.Service.__setattr__(), psClasses.BuildTreeNode.__setattr__(), Mixins._Parameterizable.__setattr__(), Modules.SwitchProducer.__setattr__(), Config.Process.__setattr__(), SequenceTypes._ModuleSequenceType.__setattr__(), VarParsing.VarParsing.__setattr__(), SequenceTypes._TaskBase.__setattr__(), GenObject.GenObject.__setattr__(), Config.ProcessFragment.__setattr__(), Config.FilteredStream.__setattr__, and Config.ProcessForProcessAccelerator.__setattr__().
|
staticprivate |
Definition at line 103 of file GenObject.py.
|
staticprivate |
Definition at line 68 of file GenObject.py.
|
staticprivate |
Definition at line 101 of file GenObject.py.
|
staticprivate |
Definition at line 91 of file GenObject.py.
|
staticprivate |
Definition at line 98 of file GenObject.py.
|
staticprivate |
Definition at line 102 of file GenObject.py.
|
staticprivate |
Definition at line 64 of file GenObject.py.
|
staticprivate |
Definition at line 108 of file GenObject.py.
|
staticprivate |
Definition at line 70 of file GenObject.py.
Referenced by metTools.AddMETCollection.__init__(), and tauTools.AddTauCollection.__init__().
|
staticprivate |
Definition at line 97 of file GenObject.py.
|
staticprivate |
Definition at line 93 of file GenObject.py.
|
staticprivate |
Definition at line 94 of file GenObject.py.
|
staticprivate |
Definition at line 100 of file GenObject.py.
|
staticprivate |
Definition at line 75 of file GenObject.py.
|
staticprivate |
Definition at line 111 of file GenObject.py.
|
staticprivate |
Definition at line 82 of file GenObject.py.
|
staticprivate |
Definition at line 104 of file GenObject.py.
|
private |
Definition at line 1552 of file GenObject.py.
Referenced by GenObject.GenObject.__setattr__().
|
staticprivate |
Definition at line 112 of file GenObject.py.
|
staticprivate |
Compile Regexs ##.
Definition at line 90 of file GenObject.py.
|
staticprivate |
Definition at line 76 of file GenObject.py.
|
staticprivate |
Definition at line 63 of file GenObject.py.
|
private |
Definition at line 1553 of file GenObject.py.
Referenced by GenObject.GenObject.__setattr__(), and GenObject.GenObject.getVariableProperty().
|
staticprivate |
Definition at line 74 of file GenObject.py.
|
staticprivate |
Definition at line 95 of file GenObject.py.
|
staticprivate |
Definition at line 113 of file GenObject.py.
|
staticprivate |
Definition at line 110 of file GenObject.py.
|
staticprivate |
Definition at line 80 of file GenObject.py.
|
staticprivate |
Definition at line 78 of file GenObject.py.
|
staticprivate |
Definition at line 83 of file GenObject.py.
|
staticprivate |
Definition at line 84 of file GenObject.py.
|
staticprivate |
Definition at line 109 of file GenObject.py.
|
staticprivate |
Definition at line 92 of file GenObject.py.
|
staticprivate |
Definition at line 99 of file GenObject.py.
|
staticprivate |
Definition at line 106 of file GenObject.py.
|
staticprivate |
Definition at line 96 of file GenObject.py.
|
staticprivate |
Definition at line 77 of file GenObject.py.
|
staticprivate |
Definition at line 105 of file GenObject.py.
|
static |
Static Member Data ##.
Definition at line 62 of file GenObject.py.
|
static |
Definition at line 85 of file GenObject.py.