CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
extractBaryCentre.TFileContext Class Reference
Inheritance diagram for extractBaryCentre.TFileContext:

Public Member Functions

def __enter__ (self)
 
def __exit__ (self, type, value, traceback)
 
def __init__ (self, args)
 

Public Attributes

 tfile
 

Detailed Description

Definition at line 7 of file extractBaryCentre.py.

Constructor & Destructor Documentation

◆ __init__()

def extractBaryCentre.TFileContext.__init__ (   self,
  args 
)

Definition at line 8 of file extractBaryCentre.py.

8  def __init__(self, *args):
9  self.tfile = ROOT.TFile(*args)
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

◆ __enter__()

def extractBaryCentre.TFileContext.__enter__ (   self)

Definition at line 10 of file extractBaryCentre.py.

References extractBaryCentre.TFileContext.tfile, and CosmicSplitterValidation.tfile.

10  def __enter__(self):
11  return self.tfile

◆ __exit__()

def extractBaryCentre.TFileContext.__exit__ (   self,
  type,
  value,
  traceback 
)

Definition at line 12 of file extractBaryCentre.py.

References extractBaryCentre.TFileContext.tfile, and CosmicSplitterValidation.tfile.

12  def __exit__(self, type, value, traceback):
13  self.tfile.Close()
14 

Member Data Documentation

◆ tfile

extractBaryCentre.TFileContext.tfile