CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
profilereader.ProfileData Class Reference
Inheritance diagram for profilereader.ProfileData:

Public Member Functions

def __init__
 

Public Attributes

 functionNameToId
 
 idToFunctionInfo
 
 paths
 

Detailed Description

Definition at line 42 of file profilereader.py.

Constructor & Destructor Documentation

def profilereader.ProfileData.__init__ (   self,
  filesToUseInfo,
  feedBackStream = None 
)

Definition at line 43 of file profilereader.py.

References mergeVDriftHistosByStation.file.

43 
44  def __init__(self,filesToUseInfo,feedBackStream=None):
45  #try to determine the filePrefix from the value given
46  # since caller may have given us just one of the files
47  # instead of the prefix to the files
48  (dir,base) = os.path.split(filesToUseInfo)
49  uniqueID = base.split('_')[1]
50  filePrefix = os.path.join(dir,"profdata_"+uniqueID+"_")
51  if feedBackStream:
52  feedBackStream.write('reading file: '+filePrefix+'names')
53  nameFile = file(filePrefix+'names','r')
55  self.functionNameToId = dict()
56  feedbackIndex = 0
57  for line in nameFile:
58  if feedBackStream and (0 == feedbackIndex % 100):
59  feedBackStream.write('.')
60  feedbackIndex +=1
61  infoList = line.split('\t')
62  self.idToFunctionInfo.setdefault( int(infoList[0]), FunctionInfo(infoList[1:]))
63  self.functionNameToId.setdefault(self.idToFunctionInfo[int(infoList[0])].name, int(infoList[0]))
64  if feedBackStream:
65  feedBackStream.write('\nreading file: '+filePrefix+'paths')
66  pathFile = file(filePrefix+'paths','r')
67  self.paths = list()
68  feedbackIndex = 0
69  for line in pathFile:
70  if feedBackStream and (0 == feedbackIndex % 100):
71  feedBackStream.write('.')
72  feedbackIndex +=1
73  line.strip()
74  path = Path( line.split(' ')[1:])
75  self.paths.append(path)
76  caller = None
77  for funcId in path.functionIds:
78  func = self.idToFunctionInfo[funcId]
79  if caller:
80  func.addCaller(caller,path.count)
81  caller.addCallee(func,path.count)
82  caller = func
83  feedbackIndex = 0
84  if feedBackStream:
85  feedBackStream.write('\nprocessing data:')
86  for x in self.idToFunctionInfo.items():
87  if feedBackStream and (0 == feedbackIndex % 100):
88  feedBackStream.write('.')
89  feedbackIndex +=1
90  x[1].normalize()
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run

Member Data Documentation

profilereader.ProfileData.functionNameToId

Definition at line 54 of file profilereader.py.

profilereader.ProfileData.idToFunctionInfo

Definition at line 53 of file profilereader.py.

profilereader.ProfileData.paths

Definition at line 66 of file profilereader.py.