CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
VIDCutFlowResult.VIDCutFlowResult Class Reference

Public Member Functions

def __init__
 
def cutFlowName
 
def cutFlowPassed
 
def cutFlowSize
 
def getCutFlowResultMasking
 
def getCutResultByIndex
 
def getCutResultByName
 
def getNameAtIndex
 
def getValueCutUpon
 
def isCutMasked
 

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 
12  def __init__(self, instance):
13  self.__instance = instance

Member Function Documentation

def VIDCutFlowResult.VIDCutFlowResult.cutFlowName (   self)

Definition at line 14 of file VIDCutFlowResult.py.

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

Definition at line 17 of file VIDCutFlowResult.py.

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

Definition at line 20 of file VIDCutFlowResult.py.

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

Definition at line 38 of file VIDCutFlowResult.py.

38 
39  def getCutFlowResultMasking(self,things_to_mask):
40  if type(things_to_mask) == str or type(things_to_mask) == int:
41  return VIDCutFlowResult(self.__instance.getCutFlowResultMasking(things_to_mask))
42  elif type(things_to_mask) != list:
43  raise Exception('InvalidType','getCutFlowResultMasking only accepts (lists of) strings or ints!')
44 
45  if type(things_to_mask) == list:
46  vect = None
47  if len(things_to_mask) <= 0:
48  raise Exception('NothingToMask')
49  if type(things_to_mask[0]) == str:
50  vect = ROOT.std.vector('std::string')()
51  elif type(things_to_mask[0]) == int:
52  vect = ROOT.std.vector('unsigned int')()
53  else:
54  raise Exception('InvalidType','getCutFlowResultMasking only accepts (lists of) strings or ints!')
55 
56  for item in things_to_mask:
57  vect.push_back(item)
58 
59  result = VIDCutFlowResult(self.__instance.getCutFlowResultMasking(vect))
60  del vect
61 
62  return result
63 
64 
65 
def VIDCutFlowResult.VIDCutFlowResult.getCutResultByIndex (   self,
  idx 
)

Definition at line 26 of file VIDCutFlowResult.py.

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

Definition at line 29 of file VIDCutFlowResult.py.

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

Definition at line 23 of file VIDCutFlowResult.py.

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

Definition at line 35 of file VIDCutFlowResult.py.

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

Definition at line 32 of file VIDCutFlowResult.py.

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

Member Data Documentation

VIDCutFlowResult.VIDCutFlowResult.__instance
private

Definition at line 12 of file VIDCutFlowResult.py.

Referenced by VIDSelectorBase.VIDSelectorBase.__call__(), VIDSelectorBase.VIDSelectorBase.__repr__(), and VIDSelectorBase.VIDSelectorBase.initialize().