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 56 of file GenObject.py.
def GenObject.GenObject.__init__ | ( | self, | |
objName | |||
) |
Member Functions ##.
Class initializer
Definition at line 1546 of file GenObject.py.
References edm.print().
def GenObject.GenObject.__call__ | ( | self, | |
key | |||
) |
def GenObject.GenObject.__setattr__ | ( | self, | |
name, | |||
value | |||
) |
Controls setting of values.
Definition at line 1576 of file GenObject.py.
References GenObject.GenObject._localObjsDict, GenObject.GenObject._objName, objects.autophobj.float, GenObject.GenObject.getVariableProperty(), createfilelist.int, and edm.print().
Referenced by GenObject.GenObject.setValue().
def GenObject.GenObject.__str__ | ( | self | ) |
String representation
Definition at line 1623 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 1507 of file GenObject.py.
|
staticprivate |
Returns a string containing the '.C' file necessary to generate a shared object library with dictionary.
Definition at line 245 of file GenObject.py.
References relativeConstraints.keys, and edm.print().
|
staticprivate |
|
staticprivate |
|
staticprivate |
Returns a stringg with the end of a class definition
Definition at line 236 of file GenObject.py.
|
staticprivate |
Definition at line 410 of file GenObject.py.
References edm.print().
|
staticprivate |
Creates a GenObject copy of Root object
Definition at line 694 of file GenObject.py.
References reco.get().
Given a key, returns a GO 'runevent' object
Definition at line 1069 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 316 of file GenObject.py.
References edm.print().
|
staticprivate |
|
staticprivate |
Given to GOs, it will create and fill the corresponding root diff object
Definition at line 746 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 731 of file GenObject.py.
References relativeConstraints.keys.
|
staticprivate |
Copies information from goSourse into Root Object
Definition at line 719 of file GenObject.py.
References relativeConstraints.keys.
Returns a string with the class header for a class 'classname'
Definition at line 222 of file GenObject.py.
|
staticprivate |
Makes sure that I know how to read root files I made myself
Definition at line 359 of file GenObject.py.
References relativeConstraints.keys.
|
static |
User passes in in object and variable names.
Definition at line 140 of file GenObject.py.
References edm.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 1282 of file GenObject.py.
References relativeConstraints.keys, and edm.print().
|
static |
|
static |
Updates an label for an object for a given tuple
Definition at line 992 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 657 of file GenObject.py.
|
static |
Static Member Functions ##.
Definition at line 121 of file GenObject.py.
|
static |
Returns a string of hex value of a checksum of input string.
Definition at line 196 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 1085 of file GenObject.py.
|
static |
Compares all of the variables making sure they are the same on the two objects.
Definition at line 1241 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 1311 of file GenObject.py.
References list(), and edm.print().
|
static |
Decode lines encoded with encodeNonAlphanumerics()
Definition at line 134 of file GenObject.py.
|
static |
Use a web like encoding of characters that are non-alphanumeric
Definition at line 129 of file GenObject.py.
Evaluates function described in partsList on obj
Definition at line 678 of file GenObject.py.
|
static |
Returns a dictionary of run, event tuples to entryIndicies
Definition at line 1031 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 159 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 1568 of file GenObject.py.
References GenObject.GenObject._objName, and GenObject.GenObject.getVariableProperty().
|
static |
Returns true if object is a singleton
Definition at line 870 of file GenObject.py.
References reco.get(), and GenObject.GenObject.loadEventFromTree().
|
static |
Loads configuration file
Definition at line 421 of file GenObject.py.
References edmIntegrityCheck.group, edm.print(), 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 877 of file GenObject.py.
References mps_setup.append, reco.get(), and edm.print().
Referenced by GenObject.GenObject.isSingleton().
|
static |
Finds the equivalent objects in the two vectors
Definition at line 1107 of file GenObject.py.
References list().
|
static |
Returns tofill tuple made from string
Definition at line 392 of file GenObject.py.
|
static |
Makes all necessary preparations to load root files created by GenObject.
Definition at line 384 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 1003 of file GenObject.py.
|
static |
Prints out event dictionary. Mostly for debugging
Definition at line 953 of file GenObject.py.
References edm.print().
|
static |
Meant for debugging, but ok if called by user
Definition at line 179 of file GenObject.py.
References edm.print().
|
static |
Prints out all events to stdout
Definition at line 1495 of file GenObject.py.
References GenObject.warn().
|
static |
|
static |
|
static |
Returns the name of the equivalent Root diff container object
Definition at line 215 of file GenObject.py.
|
static |
|
static |
runs SetAlias on all saved aliases
Definition at line 974 of file GenObject.py.
References reco.get().
|
static |
Adds an equivalence constraint. Must have at least one to compare GO objects.
Definition at line 167 of file GenObject.py.
References edm.print().
|
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 814 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 780 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 1563 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__(), Modules.SwitchProducer.__setattr__(), Config.Process.__setattr__(), SequenceTypes._ModuleSequenceType.__setattr__(), VarParsing.VarParsing.__setattr__(), Config.ProcessFragment.__setattr__(), SequenceTypes.Task.__setattr__(), and GenObject.GenObject.__setattr__().
|
staticprivate |
Definition at line 104 of file GenObject.py.
|
staticprivate |
Definition at line 69 of file GenObject.py.
|
staticprivate |
Definition at line 102 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 103 of file GenObject.py.
|
staticprivate |
Definition at line 65 of file GenObject.py.
|
staticprivate |
Definition at line 109 of file GenObject.py.
|
staticprivate |
Definition at line 71 of file GenObject.py.
Referenced by metTools.AddMETCollection.__init__(), HiCoreTools.RemoveAllPATObjectsBut.__init__(), HiCoreTools.RemoveSpecificPATObjects.__init__(), and tauTools.AddTauCollection.__init__().
|
staticprivate |
Definition at line 98 of file GenObject.py.
|
staticprivate |
Definition at line 94 of file GenObject.py.
|
staticprivate |
Definition at line 95 of file GenObject.py.
|
staticprivate |
Definition at line 101 of file GenObject.py.
|
staticprivate |
Definition at line 76 of file GenObject.py.
|
staticprivate |
Definition at line 112 of file GenObject.py.
|
staticprivate |
Definition at line 83 of file GenObject.py.
|
staticprivate |
Definition at line 105 of file GenObject.py.
|
private |
Definition at line 1553 of file GenObject.py.
Referenced by GenObject.GenObject.__setattr__().
|
staticprivate |
Definition at line 113 of file GenObject.py.
|
staticprivate |
Compile Regexs ##.
Definition at line 91 of file GenObject.py.
|
staticprivate |
Definition at line 77 of file GenObject.py.
|
staticprivate |
Definition at line 64 of file GenObject.py.
|
private |
Definition at line 1554 of file GenObject.py.
Referenced by GenObject.GenObject.__setattr__(), and GenObject.GenObject.getVariableProperty().
|
staticprivate |
Definition at line 75 of file GenObject.py.
|
staticprivate |
Definition at line 96 of file GenObject.py.
|
staticprivate |
Definition at line 114 of file GenObject.py.
|
staticprivate |
Definition at line 111 of file GenObject.py.
|
staticprivate |
Definition at line 81 of file GenObject.py.
|
staticprivate |
Definition at line 79 of file GenObject.py.
|
staticprivate |
Definition at line 84 of file GenObject.py.
|
staticprivate |
Definition at line 85 of file GenObject.py.
|
staticprivate |
Definition at line 110 of file GenObject.py.
|
staticprivate |
Definition at line 93 of file GenObject.py.
|
staticprivate |
Definition at line 100 of file GenObject.py.
|
staticprivate |
Definition at line 107 of file GenObject.py.
|
staticprivate |
Definition at line 97 of file GenObject.py.
|
staticprivate |
Definition at line 78 of file GenObject.py.
|
staticprivate |
Definition at line 106 of file GenObject.py.
|
static |
Static Member Data ##.
Definition at line 63 of file GenObject.py.
Referenced by DQMIO2histo.DQMIO.print_index().
|
static |
Definition at line 86 of file GenObject.py.