ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
python.TileFolders.TileFolders Class Reference
Inheritance diagram for python.TileFolders.TileFolders:
Collaboration diagram for python.TileFolders.TileFolders:

Public Member Functions

def __init__ (self, isMC, isOnline)
 
def add (self, folder, db)
 
def addSplitMC (self, folder, folderMC)
 
def addSplitOnline (self, onlineFolder, oflineFolder)
 
def get (self)
 

Private Attributes

 _folders
 
 _isMC
 
 _isOnlineAndNotMC
 

Detailed Description

Keep Tile folders taking into account whether it is online/offline and MC/Data

Definition at line 5 of file TileFolders.py.

Constructor & Destructor Documentation

◆ __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.

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 

Member Function Documentation

◆ 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'))
17  return folder
18 

◆ 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)
23 

◆ 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)
28 

◆ get()

def python.TileFolders.TileFolders.get (   self)
Return Tile folders as list of (folder, DB, 'CondAttrListCollection')

Definition at line 29 of file TileFolders.py.

29  def get(self):
30  """Return Tile folders as list of (folder, DB, 'CondAttrListCollection')"""
31  return self._folders
32 
33 
34 

Member Data Documentation

◆ _folders

python.TileFolders.TileFolders._folders
private

Definition at line 10 of file TileFolders.py.

◆ _isMC

python.TileFolders.TileFolders._isMC
private

Definition at line 11 of file TileFolders.py.

◆ _isOnlineAndNotMC

python.TileFolders.TileFolders._isOnlineAndNotMC
private

Definition at line 12 of file TileFolders.py.


The documentation for this class was generated from the following file:
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
add
bool add(const std::string &hname, TKey *tobj)
Definition: fastadd.cxx:55
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition: hcg.cxx:127