ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
GetLBInfoFromCOOL.Folder Class Reference
Collaboration diagram for GetLBInfoFromCOOL.Folder:

Public Member Functions

def __init__ (self, dbconnect, name)
 

Public Attributes

 name
 
 db
 
 folder
 

Detailed Description

Definition at line 9 of file GetLBInfoFromCOOL.py.

Constructor & Destructor Documentation

◆ __init__()

def GetLBInfoFromCOOL.Folder.__init__ (   self,
  dbconnect,
  name 
)

Definition at line 10 of file GetLBInfoFromCOOL.py.

10  def __init__(self, dbconnect, name):
11 
12  self.name = name
13  readonly = True
14 
15  try:
16  self.db = cool.DatabaseSvcFactory.databaseService().openDatabase(dbconnect, readonly)
17  except Exception as e:
18  print ('ERROR::Can not open DB or get chain folder because of exception: %s' ,e)
19  raise Exception(e)
20 
21  if not self.db.existsFolder(name):
22  raise Exception('Folder does not exist: "%s"' ,name)
23 
24  self.folder = self.db.getFolder(name)
25 
26 #==================================================================================================================

Member Data Documentation

◆ db

GetLBInfoFromCOOL.Folder.db

Definition at line 16 of file GetLBInfoFromCOOL.py.

◆ folder

GetLBInfoFromCOOL.Folder.folder

Definition at line 24 of file GetLBInfoFromCOOL.py.

◆ name

GetLBInfoFromCOOL.Folder.name

Definition at line 12 of file GetLBInfoFromCOOL.py.


The documentation for this class was generated from the following file:
ReadCoolUPD4.openDatabase
def openDatabase(dbstring)
Definition: ReadCoolUPD4.py:21
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18