Keep Tile folders taking into account whether it is online/offline and MC/Data
Definition at line 5 of file TileFolders.py.
◆ __init__()
| 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.
8 def __init__(self, isMC, isOnline):
9 """Initialize taking into account whether it is online/offline and MC/Data"""
10 self._folders = []
11 self._isMC = isMC
12 self._isOnlineAndNotMC = isOnline and not isMC
13
◆ add()
| 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'))
17 return folder
18
bool add(const std::string &hname, TKey *tobj)
◆ addSplitMC()
| 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)
23
◆ addSplitOnline()
| 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)
28
◆ get()
| 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')"""
31 return self._folders
32
33
34
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
◆ _folders
| list python.TileFolders.TileFolders._folders = [] |
|
protected |
◆ _isMC
| python.TileFolders.TileFolders._isMC = isMC |
|
protected |
◆ _isOnlineAndNotMC
| python.TileFolders.TileFolders._isOnlineAndNotMC = isOnline and not isMC |
|
protected |
The documentation for this class was generated from the following file: