CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
VIDCutFlowResult.VIDCutFlowResult Class Reference

Public Member Functions

def __init__ (self, instance)
 
def cutFlowName (self)
 
def cutFlowPassed (self)
 
def cutFlowSize (self)
 
def getCutFlowResultMasking (self, things_to_mask)
 
def getCutResultByIndex (self, idx)
 
def getCutResultByName (self, name)
 
def getNameAtIndex (self, idx)
 
def getValueCutUpon (self, idx_or_name)
 
def isCutMasked (self, idx_or_name)
 

Private Attributes

 __instance
 

Detailed Description

Definition at line 10 of file VIDCutFlowResult.py.

Constructor & Destructor Documentation

def VIDCutFlowResult.VIDCutFlowResult.__init__ (   self,
  instance 
)

Definition at line 11 of file VIDCutFlowResult.py.

11  def __init__(self, instance):
12  self.__instance = instance
13 

Member Function Documentation

def VIDCutFlowResult.VIDCutFlowResult.cutFlowName (   self)

Definition at line 14 of file VIDCutFlowResult.py.

14  def cutFlowName(self):
15  return self.__instance.cutFlowName()
16 
def VIDCutFlowResult.VIDCutFlowResult.cutFlowPassed (   self)

Definition at line 17 of file VIDCutFlowResult.py.

17  def cutFlowPassed(self):
18  return self.__instance.cutFlowPassed()
19 
def VIDCutFlowResult.VIDCutFlowResult.cutFlowSize (   self)

Definition at line 20 of file VIDCutFlowResult.py.

20  def cutFlowSize(self):
21  return self.__instance.cutFlowSize()
22 
def VIDCutFlowResult.VIDCutFlowResult.getCutFlowResultMasking (   self,
  things_to_mask 
)

Definition at line 38 of file VIDCutFlowResult.py.

38  def getCutFlowResultMasking(self,things_to_mask):
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!')
43 
44  if isinstance(things_to_mask, list):
45  vect = None
46  if len(things_to_mask) <= 0:
47  raise Exception('NothingToMask')
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')()
52  else:
53  raise Exception('InvalidType','getCutFlowResultMasking only accepts (lists of) strings or ints!')
54 
55  for item in things_to_mask:
56  vect.push_back(item)
57 
58  result = VIDCutFlowResult(self.__instance.getCutFlowResultMasking(vect))
59  del vect
60 
61  return result
62 
63 
64 
def VIDCutFlowResult.VIDCutFlowResult.getCutResultByIndex (   self,
  idx 
)

Definition at line 26 of file VIDCutFlowResult.py.

26  def getCutResultByIndex(self,idx):
27  return self.__instance.getCutResultByIndex(idx)
28 
def VIDCutFlowResult.VIDCutFlowResult.getCutResultByName (   self,
  name 
)

Definition at line 29 of file VIDCutFlowResult.py.

29  def getCutResultByName(self,name):
30  return self.__instance.getCutResultByName(name)
31 
def VIDCutFlowResult.VIDCutFlowResult.getNameAtIndex (   self,
  idx 
)

Definition at line 23 of file VIDCutFlowResult.py.

23  def getNameAtIndex(self,idx):
24  return self.__instance.getNameAtIndex(idx)
25 
def VIDCutFlowResult.VIDCutFlowResult.getValueCutUpon (   self,
  idx_or_name 
)

Definition at line 35 of file VIDCutFlowResult.py.

35  def getValueCutUpon(self,idx_or_name):
36  return self.__instance.getValueCutUpon(idx_or_name)
37 
def getValueCutUpon(self, idx_or_name)
def VIDCutFlowResult.VIDCutFlowResult.isCutMasked (   self,
  idx_or_name 
)

Definition at line 32 of file VIDCutFlowResult.py.

32  def isCutMasked(self,idx_or_name):
33  return self.__instance.isCutMasked(idx_or_name)
34 
def isCutMasked(self, idx_or_name)

Member Data Documentation

VIDCutFlowResult.VIDCutFlowResult.__instance
private