CMS 3D CMS Logo

Classes | Functions
dataLoader Namespace Reference

Classes

class  DataLoader
 

Functions

def get_data (filename)
 
def get_data_csv (csv_data)
 

Function Documentation

def dataLoader.get_data (   filename)

Definition at line 190 of file dataLoader.py.

References get_data_csv().

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

190 def get_data(filename):
191  with open(filename) as f:
192  csv_data = f.readlines()
193  if not (csv_data and "OperatingPoint" in csv_data[0]):
194  print "Data file does not contain typical header: %s. Exit" % filename
195  return False
196  csv_data.pop(0) # remove header
197  return get_data_csv(csv_data)
198 
def get_data_csv(csv_data)
Definition: dataLoader.py:157
def get_data(filename)
Definition: dataLoader.py:190
def dataLoader.get_data_csv (   csv_data)

Definition at line 157 of file dataLoader.py.

References ALCARECOTkAlBeamHalo_cff.filter, createfilelist.int, list(), and digitizers_cfi.strip.

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

157 def get_data_csv(csv_data):
158  # grab measurement types
159  meas_types = set(
160  l.split(',')[1].strip()
161  for l in csv_data
162  if len(l.split()) == 11
163  )
164 
165  # grab operating points
166  ops = set(
167  int(l.split(',')[0])
168  for l in csv_data
169  if len(l.split()) == 11
170  ) if separate_by_op else ['all']
171 
172  # grab flavors
173  flavs = set(
174  int(l.split(',')[3])
175  for l in csv_data
176  if len(l.split()) == 11
177  ) if separate_by_flav else ['all']
178 
179  # make loaders and filter empty ones
180  lds = list(
181  DataLoader(csv_data, mt, op, fl)
182  for mt in meas_types
183  for op in ops
184  for fl in flavs
185  )
186  lds = filter(lambda d: d.entries, lds)
187  return lds
188 
189 
def get_data_csv(csv_data)
Definition: dataLoader.py:157
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