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

Public Member Functions

def __init__ (self, FolderType="T0")
 
def ResolveGlobalTag (self, tag, dbstring="COOLOFL_MDT/CONDBR2")
 
def AddToCoolInserter (self, coolInserter)
 

Public Attributes

 Tag
 
 Compress
 
 Folder
 

Private Attributes

 __is_t0
 

Detailed Description

Definition at line 12 of file CalibrationTargetFolderConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def CalibrationTargetFolderConfig.MuonCalib__CalibrationTargetConfig.__init__ (   self,
  FolderType = "T0" 
)

Definition at line 14 of file CalibrationTargetFolderConfig.py.

14  def __init__(self, FolderType="T0"):
15  if FolderType not in ["T0", "RT", "T0BLOB", "RTBLOB"]:
16  print ("FATAL Folder type must be 'T0[BLOB]' or 'RT[BLOB]'")
17  sys.exit(1)
18 
19 #set defaults
20 
21  # Default None for all FolderTypes
22  self.Tag=None
23 
24  if FolderType=="T0":
25  self.__is_t0=True
26  self.Compress=False
27  self.Folder = "/MDT/T0"
28  elif FolderType == "T0BLOB":
29  self.__is_t0=True
30  self.Compress=True
31  self.Folder = "/MDT/T0BLOB"
32  if FolderType=="RT":
33  self.__is_t0=False
34  self.Compress=False
35  self.Folder = "/MDT/RT"
36  elif FolderType == "RTBLOB":
37  self.__is_t0=False
38  self.Compress=True
39  self.Folder = "/MDT/RTBLOB"
40 
41  MuonCalib__gCalibrationTargetConfigs.append(self)
42 

Member Function Documentation

◆ AddToCoolInserter()

def CalibrationTargetFolderConfig.MuonCalib__CalibrationTargetConfig.AddToCoolInserter (   self,
  coolInserter 
)

Definition at line 59 of file CalibrationTargetFolderConfig.py.

59  def AddToCoolInserter(self, coolInserter):
60 
61  if self.__is_t0:
62  coolInserter.T0Folder.append(self.Folder)
63  coolInserter.T0Tag.append(self.Tag)
64  coolInserter.T0FolderCompress.append(self.Compress)
65  else:
66  coolInserter.RtFolder.append(self.Folder)
67  coolInserter.RtTag.append(self.Tag)
68  coolInserter.RtFolderCompress.append(self.Compress)
69 

◆ ResolveGlobalTag()

def CalibrationTargetFolderConfig.MuonCalib__CalibrationTargetConfig.ResolveGlobalTag (   self,
  tag,
  dbstring = "COOLOFL_MDT/CONDBR2" 
)

Definition at line 43 of file CalibrationTargetFolderConfig.py.

43  def ResolveGlobalTag(self, tag, dbstring="COOLOFL_MDT/CONDBR2"):
44  if self.Tag:
45  print ("INFO Tag for", self.Folder, "already set to", self.Tag)
46  print ("INFO Not resolving global tag")
47  return
48  try:
49  db=AtlCoolLib.indirectOpen(dbstring, readOnly=True, debug=True)
50  except Exception as e:
51  print ('Problem opening database',e)
52  sys.exit(-1)
53  cool_folder=db.getFolder(self.Folder)
54  self.Tag=ResolveTag(cool_folder, tag)
55  print ("INFO tag '" + tag + "' resolves to '" + self.Tag + "' for folder '" + self.Folder + "'")
56 
57 
58 

Member Data Documentation

◆ __is_t0

CalibrationTargetFolderConfig.MuonCalib__CalibrationTargetConfig.__is_t0
private

Definition at line 25 of file CalibrationTargetFolderConfig.py.

◆ Compress

CalibrationTargetFolderConfig.MuonCalib__CalibrationTargetConfig.Compress

Definition at line 26 of file CalibrationTargetFolderConfig.py.

◆ Folder

CalibrationTargetFolderConfig.MuonCalib__CalibrationTargetConfig.Folder

Definition at line 27 of file CalibrationTargetFolderConfig.py.

◆ Tag

CalibrationTargetFolderConfig.MuonCalib__CalibrationTargetConfig.Tag

Definition at line 22 of file CalibrationTargetFolderConfig.py.


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