6 ROOT.gSystem.Load(
"libFWCoreFWLite.so");
7 ROOT.gSystem.Load(
"libDataFormatsFWLite.so");
8 ROOT.FWLiteEnabler.enable()
15 return self.__instance.cutFlowName()
18 return self.__instance.cutFlowPassed()
21 return self.__instance.cutFlowSize()
24 return self.__instance.getNameAtIndex(idx)
27 return self.__instance.getCutResultByIndex(idx)
30 return self.__instance.getCutResultByName(name)
33 return self.__instance.isCutMasked(idx_or_name)
36 return self.__instance.getValueCutUpon(idx_or_name)
39 if isinstance(things_to_mask, str)
or isinstance(things_to_mask, int):
40 return VIDCutFlowResult(self.__instance.getCutFlowResultMasking(things_to_mask))
41 elif not isinstance(things_to_mask, list):
42 raise Exception(
'InvalidType',
'getCutFlowResultMasking only accepts (lists of) strings or ints!')
44 if isinstance(things_to_mask, list):
46 if len(things_to_mask) <= 0:
48 if isinstance(things_to_mask[0], str):
49 vect = ROOT.std.vector(
'std::string')()
50 elif isinstance(things_to_mask[0], int):
51 vect = ROOT.std.vector(
'unsigned int')()
53 raise Exception(
'InvalidType',
'getCutFlowResultMasking only accepts (lists of) strings or ints!')
55 for item
in things_to_mask:
def __init__(self, instance)
def getNameAtIndex(self, idx)
def getCutResultByIndex(self, idx)
def getCutFlowResultMasking(self, things_to_mask)
def getCutResultByName(self, name)
def getValueCutUpon(self, idx_or_name)
def isCutMasked(self, idx_or_name)