CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
dataLoader Namespace Reference

Classes

class  DataLoader
 

Functions

def get_data
 
def get_data_csv
 

Function Documentation

def dataLoader.get_data (   filename)

Definition at line 130 of file dataLoader.py.

References get_data_csv().

Referenced by generateFlavCfromFlavB.main(), and checkBTagCalibrationConsistency.run_check().

131 def get_data(filename):
132  with open(filename) as f:
133  csv_data = f.readlines()
134  if not (csv_data and "OperatingPoint" in csv_data[0]):
135  print "Data file does not contain typical header: %s. Exit" % filename
136  return False
137  csv_data.pop(0) # remove header
return get_data_csv(csv_data)
def get_data_csv
Definition: dataLoader.py:120
def get_data
Definition: dataLoader.py:130
def dataLoader.get_data_csv (   csv_data)

Definition at line 120 of file dataLoader.py.

References list().

Referenced by get_data(), and checkBTagCalibrationConsistency.run_check_csv().

121 def get_data_csv(csv_data):
122  # grab measurement types
123  meas_types = set(
124  l.split(',')[1].strip()
125  for l in csv_data
126  if len(l.split()) == 11
127  )
128  return list(DataLoader(csv_data, mt) for mt in meas_types)
129 
def get_data_csv
Definition: dataLoader.py:120
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