Keep Tile folders taking into account whether it is online/offline and MC/Data
Definition at line 5 of file TileFolders.py.
◆ __init__()
def python.TileFolders.TileFolders.__init__ |
( |
|
self, |
|
|
|
isMC, |
|
|
|
isOnline |
|
) |
| |
Initialize taking into account whether it is online/offline and MC/Data
Definition at line 8 of file TileFolders.py.
9 """Initialize taking into account whether it is online/offline and MC/Data"""
12 self._isOnlineAndNotMC = isOnline
and not isMC
◆ add()
def python.TileFolders.TileFolders.add |
( |
|
self, |
|
|
|
folder, |
|
|
|
db |
|
) |
| |
Add and return Tile folder using given db Tile schema
Definition at line 14 of file TileFolders.py.
14 def add(self, folder, db):
15 """Add and return Tile folder using given db Tile schema"""
16 self._folders.
append((folder +
'<key>' + folder +
'</key>', db,
'CondAttrListCollection'))
◆ addSplitMC()
def python.TileFolders.TileFolders.addSplitMC |
( |
|
self, |
|
|
|
folder, |
|
|
|
folderMC |
|
) |
| |
Add and return Tile folder, using folder (online) for real data, folderMC (offline) for MC
Definition at line 19 of file TileFolders.py.
19 def addSplitMC(self, folder, folderMC):
20 """Add and return Tile folder, using folder (online) for real data, folderMC (offline) for MC"""
21 actualFolder, db = (folderMC,
'TILE_OFL')
if self._isMC
else (folder,
'TILE')
22 return self.add(actualFolder, db)
◆ addSplitOnline()
def python.TileFolders.TileFolders.addSplitOnline |
( |
|
self, |
|
|
|
onlineFolder, |
|
|
|
oflineFolder |
|
) |
| |
Add and return Tile folder, using onlineFolder online, oflineFolder offline
Definition at line 24 of file TileFolders.py.
24 def addSplitOnline(self, onlineFolder, oflineFolder):
25 """Add and return Tile folder, using onlineFolder online, oflineFolder offline"""
26 actualFolder, db = (onlineFolder,
'TILE')
if self._isOnlineAndNotMC
else (oflineFolder,
'TILE_OFL')
27 return self.add(actualFolder, db)
◆ get()
def python.TileFolders.TileFolders.get |
( |
|
self | ) |
|
Return Tile folders as list of (folder, DB, 'CondAttrListCollection')
Definition at line 29 of file TileFolders.py.
30 """Return Tile folders as list of (folder, DB, 'CondAttrListCollection')"""
◆ _folders
python.TileFolders.TileFolders._folders |
|
private |
◆ _isMC
python.TileFolders.TileFolders._isMC |
|
private |
◆ _isOnlineAndNotMC
python.TileFolders.TileFolders._isOnlineAndNotMC |
|
private |
The documentation for this class was generated from the following file: