ATLAS Offline Software
Loading...
Searching...
No Matches
python.LArCalib_ToCoolInlineConfig Namespace Reference

Functions

 LArToCoolInlineCfg (flags, inputFolders, singleV=True)

Variables

 parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 dest
 default
 help
 type
 False
 action
 args = parser.parse_args()
 flags = initConfigFlags()
 Database
 DBConnection
 GlobalTag
 AtlasVersion
 Files
 IOVStart
 RunNumbers
 DumpDetStore
 DumpCondStore
 DumpEvtStore
 OutputLevel
 to_import = args.infold
 mypath = os.getcwd()
 path = Path(mypath)
 module = importlib.import_module(to_import)
 cfg = MainServicesCfg(flags)
 WriteCatalog
 SortReplicas
 debugLimit

Function Documentation

◆ LArToCoolInlineCfg()

python.LArCalib_ToCoolInlineConfig.LArToCoolInlineCfg ( flags,
inputFolders,
singleV = True )

Definition at line 6 of file LArCalib_ToCoolInlineConfig.py.

6def LArToCoolInlineCfg(flags,inputFolders,singleV=True):
7
8 from LArCalibProcessing.LArCalibBaseConfig import LArCalibBaseCfg
9 result=LArCalibBaseCfg(flags)
10 from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
11 result.merge(LArOnOffIdMappingCfg(flags))
12 if flags.LArCalib.isSC:
13 from LArCabling.LArCablingConfig import LArOnOffIdMappingSCCfg
14 result.merge(LArOnOffIdMappingSCCfg(flags))
15
16 theLArCompleteToFlat = CompFactory.LArCompleteToFlat(FakeEMBPSLowGain = not flags.LArCalib.isSC, isSC=flags.LArCalib.isSC)
17 theLArCompleteToFlat.OutputLevel = 2
18
19 outTypes = []
20 overrides = []
21 outTags=[]
22 for (fldr,ftag,key,classtype) in inputFolders:
23 if "Pedestal" in fldr:
24 outTypes.append("Pedestal")
25 theLArCompleteToFlat.PedestalInput=key
26 overrides.extend(["Pedestal", "PedestalRMS"])
27 elif "Ramp" in fldr:
28 outTypes.append("Ramp")
29 theLArCompleteToFlat.RampInput=key
30 overrides.extend(["RampVec"])
31 elif "OFC" in fldr:
32 if 'CaliWave' in fldr:
33 outTypes.append("OFCCali")
34 theLArCompleteToFlat.OFCCaliInput=key
35 else:
36 outTypes.append("OFC")
37 theLArCompleteToFlat.OFCInput=key
38 overrides.extend(["OFCa", "OFCb","TimeOffset"])
39 elif "MphysOverMcal" in fldr:
40 outTypes.append("MphysOverMcal")
41 theLArCompleteToFlat.MphysOverMcalInput=key
42 overrides.extend(["MphysOverMcal"])
43 elif "Shape" in fldr:
44 outTypes.append("Shape")
45 theLArCompleteToFlat.ShapeInput=key
46 overrides.extend(["Shape","ShapeDer"])
47
48 from IOVDbSvc.IOVDbSvcConfig import addFolders
49 if len(ftag):
50 result.merge(addFolders(flags,fldr,detDb=flags.LArCalib.Input.Database,tag=ftag))
51 if not singleV:
52 outTags.append(ftag)
53 else:
54 outTags.append("")
55 else:
56 result.merge(addFolders(flags,fldr,detDb=flags.LArCalib.Input.Database))
57 outTags.append("")
58 pass
59
60 result.addEventAlgo(theLArCompleteToFlat)
61
62 flatName="ElecCalibFlat"
63 if flags.LArCalib.isSC:
64 flatName+="SC"
65 if "outObjects" not in dir():
66 outObjects=["CondAttrListCollection#/LAR/"+flatName+"/"+ot for ot in outTypes]
67
68 print("outObjects are: ",outObjects)
69
70 from RegistrationServices.OutputConditionsAlgConfig import OutputConditionsAlgCfg
71 result.merge(OutputConditionsAlgCfg(flags,
72 outputFile="dummy.root",
73 ObjectList=outObjects,
74 IOVTagList=outTags,
75 Run1=flags.LArCalib.IOVStart,
76 Run2=flags.LArCalib.IOVEnd
77 ))
78 #RegistrationSvc
79 print("OVERRIDES ARE:",overrides)
80 types=[]
81 for i in range(len(overrides)):
82 types.append("Blob16M")
83 result.addService(CompFactory.IOVRegistrationSvc(RecreateFolders = True, SVFolder=True,OverrideNames = overrides, OverrideTypes = types))
84 result.getService("IOVDbSvc").DBInstance=""
85
86 #MC Event selector since we have no input data file
87 from McEventSelector.McEventSelectorConfig import McEventSelectorCfg
88 result.merge(McEventSelectorCfg(flags,
89 RunNumber = flags.LArCalib.Input.RunNumbers[0],
90 EventsPerRun = 1,
91 FirstEvent = 1,
92 InitialTimeStamp = 0,
93 TimeStampInterval = 1))
94
95
96 return result
97
void print(char *figname, TCanvas *c1)

Variable Documentation

◆ action

python.LArCalib_ToCoolInlineConfig.action

Definition at line 109 of file LArCalib_ToCoolInlineConfig.py.

◆ args

python.LArCalib_ToCoolInlineConfig.args = parser.parse_args()

Definition at line 111 of file LArCalib_ToCoolInlineConfig.py.

◆ AtlasVersion

python.LArCalib_ToCoolInlineConfig.AtlasVersion

Definition at line 137 of file LArCalib_ToCoolInlineConfig.py.

◆ cfg

python.LArCalib_ToCoolInlineConfig.cfg = MainServicesCfg(flags)

Definition at line 174 of file LArCalib_ToCoolInlineConfig.py.

◆ Database

python.LArCalib_ToCoolInlineConfig.Database

Definition at line 129 of file LArCalib_ToCoolInlineConfig.py.

◆ DBConnection

python.LArCalib_ToCoolInlineConfig.DBConnection

Definition at line 131 of file LArCalib_ToCoolInlineConfig.py.

◆ debugLimit

python.LArCalib_ToCoolInlineConfig.debugLimit

Definition at line 181 of file LArCalib_ToCoolInlineConfig.py.

◆ default

python.LArCalib_ToCoolInlineConfig.default

Definition at line 104 of file LArCalib_ToCoolInlineConfig.py.

◆ dest

python.LArCalib_ToCoolInlineConfig.dest

Definition at line 104 of file LArCalib_ToCoolInlineConfig.py.

◆ DumpCondStore

python.LArCalib_ToCoolInlineConfig.DumpCondStore

Definition at line 147 of file LArCalib_ToCoolInlineConfig.py.

◆ DumpDetStore

python.LArCalib_ToCoolInlineConfig.DumpDetStore

Definition at line 146 of file LArCalib_ToCoolInlineConfig.py.

◆ DumpEvtStore

python.LArCalib_ToCoolInlineConfig.DumpEvtStore

Definition at line 148 of file LArCalib_ToCoolInlineConfig.py.

◆ False

python.LArCalib_ToCoolInlineConfig.False

Definition at line 109 of file LArCalib_ToCoolInlineConfig.py.

◆ Files

python.LArCalib_ToCoolInlineConfig.Files

Definition at line 139 of file LArCalib_ToCoolInlineConfig.py.

◆ flags

python.LArCalib_ToCoolInlineConfig.flags = initConfigFlags()

Definition at line 125 of file LArCalib_ToCoolInlineConfig.py.

◆ GlobalTag

python.LArCalib_ToCoolInlineConfig.GlobalTag

Definition at line 134 of file LArCalib_ToCoolInlineConfig.py.

◆ help

python.LArCalib_ToCoolInlineConfig.help

Definition at line 104 of file LArCalib_ToCoolInlineConfig.py.

◆ IOVStart

python.LArCalib_ToCoolInlineConfig.IOVStart

Definition at line 141 of file LArCalib_ToCoolInlineConfig.py.

◆ module

python.LArCalib_ToCoolInlineConfig.module = importlib.import_module(to_import)

Definition at line 167 of file LArCalib_ToCoolInlineConfig.py.

◆ mypath

python.LArCalib_ToCoolInlineConfig.mypath = os.getcwd()

Definition at line 159 of file LArCalib_ToCoolInlineConfig.py.

◆ OutputLevel

python.LArCalib_ToCoolInlineConfig.OutputLevel

Definition at line 151 of file LArCalib_ToCoolInlineConfig.py.

◆ parser

python.LArCalib_ToCoolInlineConfig.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)

Definition at line 103 of file LArCalib_ToCoolInlineConfig.py.

◆ path

python.LArCalib_ToCoolInlineConfig.path = Path(mypath)

Definition at line 160 of file LArCalib_ToCoolInlineConfig.py.

◆ RunNumbers

python.LArCalib_ToCoolInlineConfig.RunNumbers

Definition at line 143 of file LArCalib_ToCoolInlineConfig.py.

◆ SortReplicas

python.LArCalib_ToCoolInlineConfig.SortReplicas

Definition at line 179 of file LArCalib_ToCoolInlineConfig.py.

◆ to_import

python.LArCalib_ToCoolInlineConfig.to_import = args.infold

Definition at line 157 of file LArCalib_ToCoolInlineConfig.py.

◆ type

python.LArCalib_ToCoolInlineConfig.type

Definition at line 104 of file LArCalib_ToCoolInlineConfig.py.

◆ WriteCatalog

python.LArCalib_ToCoolInlineConfig.WriteCatalog

Definition at line 177 of file LArCalib_ToCoolInlineConfig.py.