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 54 of file GenObject.py.
def GenObject.GenObject.__init__ | ( | self, | |
objName | |||
) |
Member Functions ##.
Class initializer
Definition at line 1544 of file GenObject.py.
def GenObject.GenObject.__call__ | ( | self, | |
key | |||
) |
def GenObject.GenObject.__setattr__ | ( | self, | |
name, | |||
value | |||
) |
Controls setting of values.
Definition at line 1574 of file GenObject.py.
References GenObject.GenObject._localObjsDict, GenObject.GenObject._objName, objects.autophobj.float, GenObject.GenObject.getVariableProperty(), and createfilelist.int.
Referenced by GenObject.GenObject.setValue().
def GenObject.GenObject.__str__ | ( | self | ) |
String representation
Definition at line 1621 of file GenObject.py.
References GenObject.GenObject.getVariableProperty().
|
staticprivate |
Convert comma-separated string into a python list of parameters. Currently only understands strings, floats, and integers.
Definition at line 1505 of file GenObject.py.
|
staticprivate |
Returns a string containing the '.C' file necessary to generate a shared object library with dictionary.
Definition at line 243 of file GenObject.py.
References relativeConstraints.keys.
|
staticprivate |
|
staticprivate |
|
staticprivate |
Returns a stringg with the end of a class definition
Definition at line 234 of file GenObject.py.
|
staticprivate |
Definition at line 408 of file GenObject.py.
|
staticprivate |
Creates a GenObject copy of Root object
Definition at line 692 of file GenObject.py.
References reco.get().
Given a key, returns a GO 'runevent' object
Definition at line 1067 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 314 of file GenObject.py.
|
staticprivate |
|
staticprivate |
Given to GOs, it will create and fill the corresponding root diff object
Definition at line 744 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 729 of file GenObject.py.
References relativeConstraints.keys.
|
staticprivate |
Copies information from goSourse into Root Object
Definition at line 717 of file GenObject.py.
References relativeConstraints.keys.
Returns a string with the class header for a class 'classname'
Definition at line 220 of file GenObject.py.
|
staticprivate |
Makes sure that I know how to read root files I made myself
Definition at line 357 of file GenObject.py.
References relativeConstraints.keys.
|
static |
User passes in in object and variable names.
Definition at line 138 of file GenObject.py.
|
static |
|
static |
For debugging purposes only. Will deliberately change values of first tree to verify that script is correctly finding problems.
Definition at line 1280 of file GenObject.py.
References relativeConstraints.keys.
|
static |
|
static |
Updates an label for an object for a given tuple
Definition at line 990 of file GenObject.py.
|
static |
Updates the definition used to go from a Root object to a GenObject. 'tupleName' and 'objName' must already be defined.
Definition at line 655 of file GenObject.py.
|
static |
Static Member Functions ##.
Definition at line 119 of file GenObject.py.
|
static |
Returns a string of hex value of a checksum of input string.
Definition at line 194 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 1083 of file GenObject.py.
|
static |
Compares all of the variables making sure they are the same on the two objects.
Definition at line 1239 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 1309 of file GenObject.py.
References list().
|
static |
Decode lines encoded with encodeNonAlphanumerics()
Definition at line 132 of file GenObject.py.
|
static |
Use a web like encoding of characters that are non-alphanumeric
Definition at line 127 of file GenObject.py.
Evaluates function described in partsList on obj
Definition at line 676 of file GenObject.py.
|
static |
Returns a dictionary of run, event tuples to entryIndicies
Definition at line 1029 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 157 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 1566 of file GenObject.py.
References GenObject.GenObject._objName, and GenObject.GenObject.getVariableProperty().
|
static |
Returns true if object is a singleton
Definition at line 868 of file GenObject.py.
References reco.get(), and GenObject.GenObject.loadEventFromTree().
|
static |
Loads configuration file
Definition at line 419 of file GenObject.py.
References edmIntegrityCheck.group, and split.
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 875 of file GenObject.py.
References mps_setup.append, and reco.get().
Referenced by GenObject.GenObject.isSingleton().
|
static |
Finds the equivalent objects in the two vectors
Definition at line 1105 of file GenObject.py.
|
static |
Returns tofill tuple made from string
Definition at line 390 of file GenObject.py.
|
static |
Makes all necessary preparations to load root files created by GenObject.
Definition at line 382 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 1001 of file GenObject.py.
|
static |
|
static |
|
static |
Prints out all events to stdout
Definition at line 1493 of file GenObject.py.
References GenObject.warn().
|
static |
|
static |
|
static |
Returns the name of the equivalent Root diff container object
Definition at line 213 of file GenObject.py.
|
static |
|
static |
runs SetAlias on all saved aliases
Definition at line 972 of file GenObject.py.
References reco.get().
|
static |
Adds an equivalence constraint. Must have at least one to compare GO objects.
Definition at line 165 of file GenObject.py.
|
static |
|
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 812 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 778 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 1561 of file GenObject.py.
References Enumerate.Enumerate.__setattr__(), python.rootplot.core.Options.__setattr__(), config.Analyzer.__setattr__(), options.HLTProcessOptions.__setattr__(), config.Service.__setattr__(), psClasses.BuildTreeNode.__setattr__(), Mixins._Parameterizable.__setattr__(), Config.Process.__setattr__(), SequenceTypes._ModuleSequenceType.__setattr__(), VarParsing.VarParsing.__setattr__(), Config.ProcessFragment.__setattr__(), SequenceTypes.Task.__setattr__(), and GenObject.GenObject.__setattr__().
|
staticprivate |
Definition at line 102 of file GenObject.py.
|
staticprivate |
Definition at line 67 of file GenObject.py.
|
staticprivate |
Definition at line 100 of file GenObject.py.
|
staticprivate |
Definition at line 90 of file GenObject.py.
|
staticprivate |
Definition at line 97 of file GenObject.py.
|
staticprivate |
Definition at line 101 of file GenObject.py.
|
staticprivate |
Definition at line 63 of file GenObject.py.
|
staticprivate |
Definition at line 107 of file GenObject.py.
|
staticprivate |
Definition at line 69 of file GenObject.py.
Referenced by metTools.AddMETCollection.__init__(), HiCoreTools.RemoveAllPATObjectsBut.__init__(), HiCoreTools.RemoveSpecificPATObjects.__init__(), and tauTools.AddTauCollection.__init__().
|
staticprivate |
Definition at line 96 of file GenObject.py.
|
staticprivate |
Definition at line 92 of file GenObject.py.
|
staticprivate |
Definition at line 93 of file GenObject.py.
|
staticprivate |
Definition at line 99 of file GenObject.py.
|
staticprivate |
Definition at line 74 of file GenObject.py.
|
staticprivate |
Definition at line 110 of file GenObject.py.
|
staticprivate |
Definition at line 81 of file GenObject.py.
|
staticprivate |
Definition at line 103 of file GenObject.py.
|
private |
Definition at line 1551 of file GenObject.py.
Referenced by GenObject.GenObject.__setattr__().
|
staticprivate |
Definition at line 111 of file GenObject.py.
|
staticprivate |
Compile Regexs ##.
Definition at line 89 of file GenObject.py.
|
staticprivate |
Definition at line 75 of file GenObject.py.
|
staticprivate |
Definition at line 62 of file GenObject.py.
|
private |
Definition at line 1552 of file GenObject.py.
Referenced by GenObject.GenObject.__setattr__(), and GenObject.GenObject.getVariableProperty().
|
staticprivate |
Definition at line 73 of file GenObject.py.
|
staticprivate |
Definition at line 94 of file GenObject.py.
|
staticprivate |
Definition at line 112 of file GenObject.py.
|
staticprivate |
Definition at line 109 of file GenObject.py.
|
staticprivate |
Definition at line 79 of file GenObject.py.
|
staticprivate |
Definition at line 77 of file GenObject.py.
|
staticprivate |
Definition at line 82 of file GenObject.py.
|
staticprivate |
Definition at line 83 of file GenObject.py.
|
staticprivate |
Definition at line 108 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 105 of file GenObject.py.
|
staticprivate |
Definition at line 95 of file GenObject.py.
|
staticprivate |
Definition at line 76 of file GenObject.py.
|
staticprivate |
Definition at line 104 of file GenObject.py.
|
static |
Static Member Data ##.
Definition at line 61 of file GenObject.py.
Referenced by DQMIO2histo.DQMIO.print_index().
|
static |
Definition at line 84 of file GenObject.py.