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

◆ __init__()

def VIDCutFlowResult.VIDCutFlowResult.__init__ (   self,
  instance 
)

Definition at line 11 of file VIDCutFlowResult.py.

11  def __init__(self, instance):
12  self.__instance = instance
13 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ cutFlowName()

def VIDCutFlowResult.VIDCutFlowResult.cutFlowName (   self)

Definition at line 14 of file VIDCutFlowResult.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance.

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

◆ cutFlowPassed()

def VIDCutFlowResult.VIDCutFlowResult.cutFlowPassed (   self)

Definition at line 17 of file VIDCutFlowResult.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance.

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

◆ cutFlowSize()

def VIDCutFlowResult.VIDCutFlowResult.cutFlowSize (   self)

Definition at line 20 of file VIDCutFlowResult.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance.

20  def cutFlowSize(self):
21  return self.__instance.cutFlowSize()
22 

◆ getCutFlowResultMasking()

def VIDCutFlowResult.VIDCutFlowResult.getCutFlowResultMasking (   self,
  things_to_mask 
)

Definition at line 38 of file VIDCutFlowResult.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance.

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 

◆ getCutResultByIndex()

def VIDCutFlowResult.VIDCutFlowResult.getCutResultByIndex (   self,
  idx 
)

Definition at line 26 of file VIDCutFlowResult.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance.

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

◆ getCutResultByName()

def VIDCutFlowResult.VIDCutFlowResult.getCutResultByName (   self,
  name 
)

Definition at line 29 of file VIDCutFlowResult.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance.

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

◆ getNameAtIndex()

def VIDCutFlowResult.VIDCutFlowResult.getNameAtIndex (   self,
  idx 
)

Definition at line 23 of file VIDCutFlowResult.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance.

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

◆ getValueCutUpon()

def VIDCutFlowResult.VIDCutFlowResult.getValueCutUpon (   self,
  idx_or_name 
)

Definition at line 35 of file VIDCutFlowResult.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance.

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

◆ isCutMasked()

def VIDCutFlowResult.VIDCutFlowResult.isCutMasked (   self,
  idx_or_name 
)

Definition at line 32 of file VIDCutFlowResult.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance.

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

Member Data Documentation

◆ __instance