ATLAS Offline Software
Loading...
Searching...
No Matches
CBNT_TBInfo.py
Go to the documentation of this file.
1if not 'doSim' in dir():
2 doSim = False
3
4if not 'ComputeBeamEnergy' in dir() :
5 ComputeBeamEnergy = True
6
7theApp.Dlls += [ "TBRec" ]
8
9from TBCondRunPar.TBCondRunParConf import TBCondRunParTool
10ToolSvc += TBCondRunParTool()
11include ("TBCondRunPar/TBCondRunParTool.py")
12include ("TBCaloGeometry/TBCaloGeometry_H8_joboptions.py")
13
14if ( ComputeBeamEnergy ):
15 include ("TBRec/TBBeamEnergyCondDBFolders.py")
16
17#CBNT_Athena.Members += [ "CBNT_TBInfo" ]
18#CBNT_TBInfo = Algorithm( "CBNT_TBInfo" )
19from TBRec.TBRecConf import CBNTAA_TBInfo
20CBNT_TBInfo = CBNTAA_TBInfo("CBNT_TBInfo")
21
22#CBNT_TBInfo.OutputLevel = DEBUG
23
24if ( doSim ) :
25 CBNT_TBInfo.DBRead = False
26 if not 'BeamEnergy' in dir() :
27 BeamEnergy = -999
28 if not 'BeamType' in dir() :
29 BeamType = - 999
30 CBNT_TBInfo.BeamEnergy = BeamEnergy
31 CBNT_TBInfo.BeamType = BeamType
32
33if ( (not doSim) and ComputeBeamEnergy ) :
34 CBNT_TBInfo.DBRead = True
35 CBNT_TBInfo.ComputeBeamEnergy = True
36 CBNT_TBInfo.DumpBeamLine = True
37
38CBNT_AthenaAware += CBNT_TBInfo