Skip to content
Snippets Groups Projects
Commit 06d57112 authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (LArTBRec-00-02-27)

parent 61b15d5c
No related merge requests found
Showing
with 1776 additions and 0 deletions
################################################################################
# Package: LArTBRec
################################################################################
# Declare the package name:
atlas_subdir( LArTBRec )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PRIVATE
TestPolicy )
# Install files from the package:
atlas_install_joboptions( share/*.py )
package LArTBRec
author Claire Adam <claire.bourdarios@cern.ch>
use AtlasPolicy AtlasPolicy-*
use AtlasReconstructionRunTime AtlasReconstructionRunTime-* -no_auto_imports
private
use TestPolicy TestPolicy-*
#---------------------------------------------------------------------
# The following commands aid in the establishment of the run-time environment
# and should not be modified.
apply_pattern declare_joboptions files="*.txt *.py"
######################################################################
#
# jobOptions to define global tags for LAr CTB 2004 data
#
######################################################################
#
# CondDB NOVA/IOV server
#
#
# Tags for CondDB folders
#
if not 'LArTB04FolderTag_Calib' in dir():
LArTB04FolderTag_Calib = "TB04-Default"
if not 'LArTB04FolderTag_Pedestal' in dir():
LArTB04FolderTag_Pedestal = "TB04-Default"
if not 'LArTB04FolderTag_AutoCorr' in dir():
LArTB04FolderTag_AutoCorr = "TB04-Default"
if not 'LArTB04FolderTag_Ramp' in dir():
LArTB04FolderTag_Ramp = "TB04-Default"
if not 'LArTB04FolderTag_OFC_RTM' in dir():
LArTB04FolderTag_OFC_RTM = "TB04-XTC-01-fix"
if not 'LArTB04FolderTag_OFC_TCM' in dir():
LArTB04FolderTag_OFC_TCM = "TB04-Default"
if not 'LArTB04FolderTag_MphyMcal' in dir():
LArTB04FolderTag_MphyMcal = "TB04-XTC-01-fix2"
#
# Fix for swapped LArFEBs
#
ToolSvc = Service( "ToolSvc" )
if (RunNumber>=1000931):
if (RunNumber<=1000969):
ToolSvc.LArRodDecoder.FebExchange=True
ToolSvc.LArRodDecoder.FebId1=0x39020000
ToolSvc.LArRodDecoder.FebId2=0x39040000
#
# DB folder tags output
#
#import AthenaCommon.Logging.logging as logging
LArTBFlagsLog = logging.getLogger( "LArTBFlagsLog" )
LArTBFlagsLog.info( " ======================================================== " )
LArTBFlagsLog.info( " *** LAr DB folder tags summary (empty = HEAD) *** " )
LArTBFlagsLog.info( " ======================================================== " )
LArTBFlagsLog.info( " LArTB04FolderTag_Calib = "+LArTB04FolderTag_Calib )
LArTBFlagsLog.info( " LArTB04FolderTag_AutoCorr = "+LArTB04FolderTag_AutoCorr )
LArTBFlagsLog.info( " LArTB04FolderTag_Pedestal = "+LArTB04FolderTag_Pedestal )
LArTBFlagsLog.info( " LArTB04FolderTag_Ramp = "+LArTB04FolderTag_Ramp )
LArTBFlagsLog.info( " LArTB04FolderTag_OFC_RTM = "+LArTB04FolderTag_OFC_RTM )
LArTBFlagsLog.info( " LArTB04FolderTag_OFC_TCM = "+LArTB04FolderTag_OFC_TCM )
LArTBFlagsLog.info( " LArTB04FolderTag_MphyMcal = "+LArTB04FolderTag_MphyMcal )
LArTBFlagsLog.info( " ======================================================== " )
#*******************************************************************
#
# JobOption to analyse LAr testbeam data :
# detailed version dumping the digits, for experts
#
#*******************************************************************
ByteStreamAddressProviderSvc.TypeNames+=["LArFebHeaderContainer/LArFebHeader"]
if CBNTAthenaAware:
from LArROD.LArRODConf import CBNTAA_LArDigits
CBNT_LArDigits = CBNTAA_LArDigits("CBNT_LArDigit")
else:
CBNT_Athena.Members += [ "CBNT_LArDigits" ]
CBNT_LArDigits = Algorithm( "CBNT_LArDigits" )
CBNT_LArDigits.NtupleLocID="/FILE1/CALO/502";
CBNT_LArDigits.NEvents=100
CBNT_LArDigits.ContainerKey = "FREE"
CBNT_LArDigits.Calo = "EM" # which calo will be saved
CBNT_LArDigits.DumpGains = "MEDIUMHIGH" # which gains will be saved
CBNT_LArDigits.DumpCut = 0 # lower cut for max sample in channel
CBNT_LArDigits.SaveSCAAddress = True
if CBNTAthenaAware:
CBNT_AthenaAware += CBNT_LArDigits
#*******************************************************************
#
# JobOption to analyse LAr testbeam data : LArDigit to LArRawChannel
#
#
#*******************************************************************
include.block("LArTBRec/LArTBRec_H8_jobOptions.py")
theApp.Dlls += [ "LArByteStream" ]
# read LArDigit
ByteStreamAddressProviderSvc = Service( "ByteStreamAddressProviderSvc" )
ByteStreamAddressProviderSvc.TypeNames += ["LArDigitContainer/FREE"]
ByteStreamAddressProviderSvc.TypeNames += ["LArFebHeaderContainer/LArFebHeader"]
ToolSvc = Service( "ToolSvc" )
# read TDC
#abc ByteStreamAddressProviderSvc.TypeNames += ["TBTDC/LArTBTDC"]
#abc ToolSvc.TBByteStreamCnvTool.SubDetID = 129
theApp.Dlls += ["LArRawUtils", "LArROD", "LArTools" , "LArEventTest", "LArCalibUtils" ]
#abc LArDigit->LArRawChannel part 1 : Digit pre-processor
#abc theApp.TopAlg += [
#abc "LArDigitPreProcessor<LArDigitContainer>/LArDigitPreProcessor"]
#abc LArDigitPreprocessor = Algorithm( "LArDigitPreprocessor" )
#abc LArDigitPreprocessor.NumberOfSamples = 5
#abc LArDigitPreprocessor.FirstSample = 1
#abc LArDigitPreprocessor.InputContainers += [ "FREE" ]
#abc LArDigitPreprocessor.OutputContainer = "LArDigit"
#abc LArDigit->LArRawChannel part 2 : raw channel builder
#----- Check LAr LVL1 and BCID consistency
theApp.TopAlg += [ "CheckLArFebHeader" ]
include("LArConditionsCommon/LArConditionsCommon_H8_jobOptions.py")
theApp.TopAlg += [ "LArRawChannelSimpleBuilder" ]
LArRawChannelSimpleBuilder = Algorithm("LArRawChannelSimpleBuilder");
LArRawChannelSimpleBuilder.maxSamp = 2
LArRawChannelSimpleBuilder.RecoMode = "PARABOLA"
LArRawChannelSimpleBuilder.CubicAdcCut = 15.
LArRawChannelSimpleBuilder.UsePedestalDB=True
LArRawChannelSimpleBuilder.UseRampDB=True
ToolSvc.LArADC2MeV.BeginRunPriority = 100
ToolSvc.LArRodDecoder.FirstSample=2
ToolSvc.LArParabolaPeakrecoTool.correctBias=True;
# Turn off printing for LArRoI_Map
ToolSvc.LArRoI_Map.Print=FALSE;
# write out a list of all Storegate collection with their keys and
# lock/unlock state. Very useful for debugging purpose
#
#StoreGateSvc = Service( "StoreGateSvc" )
#StoreGateSvc.Dump = TRUE
#DetectorStore = Service( "DetectorStore" )
#DetectorStore.Dump = TRUE
#ConditionsStore = Service( "ConditionsStore" )
#ConditionsStore.Dump = TRUE
#*******************************************************************
#
# JobOption to analyse LAr testbeam data (LArDigit to LArRawChannel)
# using OFC (TCM or RTM).
#
# Last update: 06/10/2005 (Marco.Delmastro@cern.ch)
#
#*******************************************************************
# read LArDigit
#theApp.Dlls += [ "LArByteStream" ]
#ByteStreamAddressProviderSvc = Service( "ByteStreamAddressProviderSvc" )
ByteStreamAddressProviderSvc.TypeNames += ["LArDigitContainer/FREE"]
ByteStreamAddressProviderSvc.TypeNames += ["LArFebHeaderContainer/LArFebHeader"]
ToolSvc = Service( "ToolSvc" )
#theApp.Dlls += ["LArRawUtils", "LArROD", "LArTools" , "LArEventTest","LArCalibUtils" ]
# OFC folders options (should be set by top jobOptions)
if not 'useTCMOFC' in dir():
useTCMOFC = False
if not 'useRTMOFC' in dir():
useRTMOFC = True
# Prevents OFC options unconsistency...
if (useTCMOFC and useRTMOFC) or (not useTCMOFC and not useRTMOFC):
useTCMOFC = False
useRTMOFC = True
if not 'LArShapeMode' in dir():
LArShapeMode = 10
# Time Offset(s)
if useRTMOFC:
include("LArTBRec/LArTimeOffsets_OFC_RTM.py")
if useTCMOFC:
include("LArTBRec/LArTimeOffsets_OFC_TCM.py")
include("LArConditionsCommon/LArConditionsCommon_H8_jobOptions.py")
# Default CaloNoiseTool, to be used by all:
#from CaloTools.CaloNoiseToolDefault import CaloNoiseToolDefault
#theCaloNoiseTool = CaloNoiseToolDefault('tool')
#theCaloNoiseTool.NMinBias = 0
#theCaloNoiseTool.UseTile = False
#theCaloNoiseTool.IsMC = False
#theCaloNoiseTool.UseSymmetry = False
#theCaloNoiseTool.WorkMode = 1
#theCaloNoiseTool.WithOF = True
#ToolSvc += theCaloNoiseTool
include( "CaloTools/CaloNoiseTool_TB_jobOptions.py" )
#theApp.TopAlg += [ "LArRawChannelBuilder" ]
#LArRawChannelBuilder = Algorithm("LArRawChannelBuilder");
from LArROD.LArRODFlags import larRODFlags
larRODFlags.readDigits.set_On()
larRODFlags.doBuildBadChannel.set_On()
#from LArROD.LArRODConf import LArRawChannelBuilder
#LArRawChannelBuilder = LArRawChannelBuilder()
from LArROD.LArRawChannelGetter import LArRawChannelGetter
LArRawChannelGetter()
topSequence.LArRawChannelBuilder.DataLocation = "FREE"
topSequence.LArRawChannelBuilder.UseTDC = True
topSequence.LArRawChannelBuilder.BinHalfOffset = False
topSequence.LArRawChannelBuilder.AllowTimeSampleJump = True
topSequence.LArRawChannelBuilder.ADC2MeVTool = ToolSvc.LArADC2MeVTool
# skip events with al leat one saturating channel
topSequence.LArRawChannelBuilder.SkipSaturCellsMode = 2
topSequence.LArRawChannelBuilder.ADCMax = 4095
if not 'ECutQuality' in dir():
ECutQuality = 256 # correponds to hardcoded default
topSequence.LArRawChannelBuilder.Ecut = ECutQuality*MeV
if useRTMOFC:
topSequence.LArRawChannelBuilder.UseOFCPhase = False
topSequence.LArRawChannelBuilder.PhaseInversion = True
topSequence.LArRawChannelBuilder.NOFCTimeBins = 24
topSequence.LArRawChannelBuilder.NOFCPhases = 50
#topSequence.LArRawChannelBuilder.ShapeMode = 10 # special for RTM OFC 50 phases
topSequence.LArRawChannelBuilder.ShapeMode = LArShapeMode
if useTCMOFC:
topSequence.LArRawChannelBuilder.UseOFCPhase = True
topSequence.LArRawChannelBuilder.NOFCTimeBins = 25
#topSequence += LArRawChannelBuilder
# Switch this to VERBOSE to get a dmp of Ramp coefficients in log file
#ToolSvc.LArADC2MeVTool.OutputLevel = VERBOSE
#ToolSvc.LArADC2MeVToolDefault.BeginRunPriority = 100
from LArByteStream.LArByteStreamConf import LArRodDecoder
svcMgr.ToolSvc += LArRodDecoder()
ToolSvc.LArRodDecoder.FirstSample = 2
#ToolSvc.LArRoI_Map.Print = False
if not 'useLArStripsXtalkRampCorr' in dir():
useLArStripsXtalkRampCorr = True
if (useLArStripsXtalkRampCorr):
ToolSvc.LArADC2MeVTool.UseMphysOverMcal = True
#*******************************************************************
#
# JobOption to analyse LAr testbeam data : LArDigit to LArRawChannel
#
#
#*******************************************************************
#if not doSim:
theApp.Dlls += [ "LArByteStream" ]
# read LArDigit
ByteStreamAddressProviderSvc = Service( "ByteStreamAddressProviderSvc" )
ByteStreamAddressProviderSvc.TypeNames += ["LArDigitContainer/FREE"]
ByteStreamAddressProviderSvc.TypeNames += ["LArFebHeaderContainer/LArFebHeader"]
ToolSvc = Service( "ToolSvc" )
# read TDC
#abc ByteStreamAddressProviderSvc.TypeNames += ["TBTDC/LArTBTDC"]
#abc ToolSvc.TBByteStreamCnvTool.SubDetID = 129
theApp.Dlls += ["LArRawUtils", "LArROD", "LArTools" , "LArEventTest" ]
#abc LArDigit->LArRawChannel part 1 : Digit pre-processor
#abc theApp.TopAlg += [
#abc "LArDigitPreProcessor<LArDigitContainer>/LArDigitPreProcessor"]
#abc LArDigitPreprocessor = Algorithm( "LArDigitPreprocessor" )
#abc LArDigitPreprocessor.NumberOfSamples = 5
#abc LArDigitPreprocessor.FirstSample = 1
#abc LArDigitPreprocessor.InputContainers += [ "FREE" ]
#abc LArDigitPreprocessor.OutputContainer = "LArDigit"
#abc LArDigit->LArRawChannel part 2 : raw channel builder
#----- Check LAr LVL1 and BCID consistency
theApp.TopAlg += [ "CheckLArFebHeader" ]
theApp.TopAlg += [ "LArRawChannelSimpleBuilder" ]
LArRawChannelSimpleBuilder = Algorithm("LArRawChannelSimpleBuilder");
LArRawChannelSimpleBuilder.maxSamp = 2
LArRawChannelSimpleBuilder.RecoMode = "FIXED"
#abc LArRawChannelSimpleBuilder.RecoMode = "MAX"
LArRawChannelSimpleBuilder.CubicAdcCut = 50.
ToolSvc.LArADC2MeV.BeginRunPriority = 100
ToolSvc.LArRodDecoder.FirstSample=2
# Turn off printing for LArRoI_Map
ToolSvc.LArRoI_Map.Print=FALSE;
# write out a list of all Storegate collection with their keys and
# lock/unlock state. Very useful for debugging purpose
#
#StoreGateSvc = Service( "StoreGateSvc" )
#StoreGateSvc.Dump = TRUE
#DetectorStore = Service( "DetectorStore" )
#DetectorStore.Dump = TRUE
#ConditionsStore = Service( "ConditionsStore" )
#ConditionsStore.Dump = TRUE
#*******************************************************************
#
# JobOption to analyse LAr testbeam data : LArDigit to LArRawChannel
#
#
#*******************************************************************
#if not doSim:
theApp.Dlls += [ "LArByteStream" ]
# read LArDigit
ByteStreamAddressProviderSvc = Service( "ByteStreamAddressProviderSvc" )
ByteStreamAddressProviderSvc.TypeNames += ["LArDigitContainer/FREE"]
ByteStreamAddressProviderSvc.TypeNames += ["LArFebHeaderContainer/LArFebHeader"]
ToolSvc = Service( "ToolSvc" )
# read TDC
#abc ByteStreamAddressProviderSvc.TypeNames += ["TBTDC/LArTBTDC"]
#abc ToolSvc.TBByteStreamCnvTool.SubDetID = 129
theApp.Dlls += ["LArRawUtils", "LArROD", "LArTools" , "LArEventTest","LArCalibUtils" ]
#abc LArDigit->LArRawChannel part 1 : Digit pre-processor
#abc theApp.TopAlg += [
#abc "LArDigitPreProcessor<LArDigitContainer>/LArDigitPreProcessor"]
#abc LArDigitPreprocessor = Algorithm( "LArDigitPreprocessor" )
#abc LArDigitPreprocessor.NumberOfSamples = 5
#abc LArDigitPreprocessor.FirstSample = 1
#abc LArDigitPreprocessor.InputContainers += [ "FREE" ]
#abc LArDigitPreprocessor.OutputContainer = "LArDigit"
#abc LArDigit->LArRawChannel part 2 : raw channel builder
#----- Check LAr LVL1 and BCID consistency
theApp.TopAlg += [ "CheckLArFebHeader" ]
include("LArConditionsCommon/LArConditionsCommon_H8_jobOptions.py")
#abc IOVDbSvc.GlobalTag = "TB04-4"
theApp.TopAlg += [ "LArTimeChecker" ]
LArTimeChecker = Algorithm( "LArTimeChecker" )
LArTimeChecker.DataLocation = "FREE"
theApp.TopAlg += [ "LArRawChannelBuilder" ]
LArRawChannelBuilder = Algorithm("LArRawChannelBuilder");
LArRawChannelBuilder.DataLocation = "FREE"
LArRawChannelBuilder.UseTDC=True
ToolSvc.LArADC2MeV.BeginRunPriority = 100
ToolSvc.LArRodDecoder.FirstSample=2
# Turn off printing for LArRoI_Map
ToolSvc.LArRoI_Map.Print=FALSE;
# write out a list of all Storegate collection with their keys and
# lock/unlock state. Very useful for debugging purpose
#
#StoreGateSvc = Service( "StoreGateSvc" )
#StoreGateSvc.Dump = TRUE
#DetectorStore = Service( "DetectorStore" )
#DetectorStore.Dump = TRUE
#ConditionsStore = Service( "ConditionsStore" )
#ConditionsStore.Dump = TRUE
from TBRec.TBRecConf import CBNT_Timing
CBNT_Timing = CBNT_Timing()
CBNT_Timing.EnergyCut = 2.*GeV
CBNT_Timing.IncludedSamplings += ["EMB2", "EMB1", "EMB0", "EMB3"]
CBNT_AthenaAware += CBNT_Timing
#*******************************************************************
#
# JobOption to analyse LAr testbeam data : LArDigit to LArRawChannel
#
#
#*******************************************************************
include.block("LArTBRec/LArTBRec_H8_jobOptions.py")
theApp.Dlls += [ "LArByteStream" ]
# read LArDigit
ByteStreamAddressProviderSvc = Service( "ByteStreamAddressProviderSvc" )
ByteStreamAddressProviderSvc.TypeNames += ["LArDigitContainer/FREE"]
ByteStreamAddressProviderSvc.TypeNames += ["LArFebHeaderContainer/LArFebHeader"]
ToolSvc = Service( "ToolSvc" )
# read TDC
#abc ByteStreamAddressProviderSvc.TypeNames += ["TBTDC/LArTBTDC"]
#abc ToolSvc.TBByteStreamCnvTool.SubDetID = 129
theApp.Dlls += ["LArRawUtils", "LArROD", "LArTools" , "LArEventTest" ]
#abc LArDigit->LArRawChannel part 1 : Digit pre-processor
#abc theApp.TopAlg += [
#abc "LArDigitPreProcessor<LArDigitContainer>/LArDigitPreProcessor"]
#abc LArDigitPreprocessor = Algorithm( "LArDigitPreprocessor" )
#abc LArDigitPreprocessor.NumberOfSamples = 5
#abc LArDigitPreprocessor.FirstSample = 1
#abc LArDigitPreprocessor.InputContainers += [ "FREE" ]
#abc LArDigitPreprocessor.OutputContainer = "LArDigit"
#abc LArDigit->LArRawChannel part 2 : raw channel builder
#----- Check LAr LVL1 and BCID consistency
theApp.TopAlg += [ "CheckLArFebHeader" ]
include("LArConditionsCommon/LArConditionsCommon_H8_jobOptions.py")
#abc IOVDbSvc.GlobalTag = "TB04-7"
theApp.TopAlg += ["FakeLArOFCs"] #Puts 0 0 1 0 0 as OF-Coefficients, equivalent to fixed sample method
theApp.TopAlg += [ "LArRawChannelBuilder" ]
LArRawChannelBuilder = Algorithm("LArRawChannelBuilder");
ToolSvc.LArADC2MeV.BeginRunPriority = 100
ToolSvc.LArRodDecoder.FirstSample=2
# Turn off printing for LArRoI_Map
ToolSvc.LArRoI_Map.Print=FALSE;
# write out a list of all Storegate collection with their keys and
# lock/unlock state. Very useful for debugging purpose
#
#StoreGateSvc = Service( "StoreGateSvc" )
#StoreGateSvc.Dump = TRUE
#DetectorStore = Service( "DetectorStore" )
#DetectorStore.Dump = TRUE
#ConditionsStore = Service( "ConditionsStore" )
#ConditionsStore.Dump = TRUE
# Dummy global and feb time offsets for 2004 H6 TB
# 16 June 2004 Rob McPherson
TimeOffsetsLog = logging.getLogger( "TimeOffsetsLog" )
TimeOffsetsLog.info( "Dummy global and feb time offsets for 2004 H6 TB ..." )
theApp.TopAlg +=["FakeLArTimeOffset"]
FakeLArTimeOffset=Algorithm("FakeLArTimeOffset")
FakeLArTimeOffset.OutputLevel = INFO
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x3B020000, 0x3B030000, 0x3B040000, 0x3B050000, 0x3B090000, 0x3B098000, 0x3B0A0000, 0x3B0A8000]
FakeLArTimeOffset.FEbTimeOffsets += [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]
#
# OFC/Timing offsets default tag(s)
#
if not "LArTB04FolderTag_OFC_RTM" in dir():
LArTB04FolderTag_OFC_RTM = "TB04-13"
if ( LArTB04FolderTag_OFC_RTM == "TB04-Default" ) :
LArTB04FolderTag_OFC_RTM = "TB04-2"
if ( LArTB04FolderTag_OFC_RTM == "TB04-XTC-01" ) :
LArTB04FolderTag_OFC_RTM == "TB04-XTC-01-fix"
#
# Timing offsets jobOptions
#
if not 'useCustomTimeOffsets' in dir():
useCustomTimeOffsets = False
if ( useCustomTimeOffsets ):
#import AthenaCommon.Logging.logging as logging
TimeOffsetsLog = logging.getLogger( "TimeOffsetsLog" )
TimeOffsetsLog.warning( "=================================================================" )
TimeOffsetsLog.warning( "You enabled the use of CUSTOM TIME OFFSETS..." )
TimeOffsetsLog.warning( "Don't forget to include your own 'TimeOffset<XXX>.py' file!" )
TimeOffsetsLog.warning( "(and remember: you're supposed to know what you're doing... :-) )" )
TimeOffsetsLog.warning( "=================================================================" )
else:
if ( LArTB04FolderTag_OFC_RTM == "TB04-1" ) :
include( "LArTBRec/LArTimeOffsets_OFC_RTM_TB04-1.py" )
elif ( LArTB04FolderTag_OFC_RTM == "TB04-2" ) :
include( "LArTBRec/LArTimeOffsets_OFC_RTM_TB04-2.py" )
elif ( LArTB04FolderTag_OFC_RTM == "TB04-9" ) :
include( "LArTBRec/LArTimeOffsets_OFC_RTM_TB04-9.py" )
elif ( LArTB04FolderTag_OFC_RTM == "TB04-11" ) :
include( "LArTBRec/LArTimeOffsets_OFC_RTM_TB04-11.py" )
elif ( LArTB04FolderTag_OFC_RTM == "TB04-12" ) :
include( "LArTBRec/LArTimeOffsets_OFC_RTM_TB04-12.py" )
elif ( LArTB04FolderTag_OFC_RTM == "TB04-13" ) :
include( "LArTBRec/LArTimeOffsets_OFC_RTM_TB04-13.py" )
elif ( LArTB04FolderTag_OFC_RTM == "TB04-XTC-01-fix" ) :
include( "LArTBRec/LArTimeOffsets_OFC_RTM_TB04-XTC-01.py" )
useLArStripsXtalkRampCorr = True
elif ( LArTB04FolderTag_OFC_RTM == "TB04-XTC-01" ) :
include( "LArTBRec/LArTimeOffsets_OFC_RTM_TB04-XTC-02.py" )
useLArStripsXtalkRampCorr = True
elif ( LArTB04FolderTag_OFC_RTM == "TB04-XTC-01" ) :
include( "LArTBRec/LArTimeOffsets_OFC_RTM_TB04-XTC-03.py" )
useLArStripsXtalkRampCorr = True
#
# Timing Offset for OFC RTM at CTB2004
#
# Computed using OFC in /lar/LArElecCalibTB04/LArOFCPhys/RTM, tag TB04-01
# should work fine with OFC RTM tags = TB04-01, TB04-02, TB04-03, TB04-04
#
# Last update: 28/7/2005 (Marco.Delmastro@cern.ch)
#
theApp.TopAlg +=["FakeLArTimeOffset"]
FakeLArTimeOffset=Algorithm("FakeLArTimeOffset")
FakeLArTimeOffset.OutputLevel = INFO
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
# Periode 1 - july 4th to 12th - runs 1000055 to 1000460 - eta>0.8
if ( RunNumber >= 1000055 and RunNumber <= 1000460 ):
print "=================================================="
print " *** There is no TDC information for this run *** "
print " WARNING: you should NOT USE the LAr OFC! "
print "=================================================="
# Periode 2 - july 12th to 14th - runs 1000463 to 1000622 - 0.6< eta <1.2
if ( RunNumber >= 1000463 and RunNumber <= 1000622 ) :
# timing offsets still missing :-(
print "========================================================="
print " *** RTM OFC timing offsets are missing for this run *** "
print " WARNING: LAr OFC reconstruction may not be reliable! "
print "========================================================="
# Periode 3 - july 26th to aug. 4th - runs 1000623 to 1000797 - 0.6< eta <1.2
if ( RunNumber >= 1000623 and RunNumber <= 1000797 ) :
# timing offsets still missing :-(
print "========================================================="
print " *** RTM OFC timing offsets are missing for this run *** "
print " WARNING: LAr OFC reconstruction may not be reliable! "
print "========================================================="
# Periode 4 - aug. 4th to 6th - runs 1000813 to 1000918 - eta<0.8
if ( RunNumber >= 1000813 and RunNumber <= 1000918 ) :
# timing offsets still missing :-(
print "========================================================="
print " *** RTM OFC timing offsets are missing for this run *** "
print " WARNING: LAr OFC reconstruction may not be reliable! "
print "========================================================="
# Periode 5 - aug. 6th to 9th - runs 1000919 to 1001056 - eta<0.8
if ( RunNumber >= 1000919 and RunNumber <= 1001056 ) : # tested: ok
FakeLArTimeOffset.GlobalTimeOffset = 5.6
FakeLArTimeOffset.FEbTimeOffsets += [-3.9, 3.1, 0.0, 0.0,-4.5, 1.7,-1.3, 0.4, 0.0, 0.0,-0.0, 5.2, 2.2,-5.2, 2.3, 7.6]
# Periode 6 - aug. 23rd to sep. 15th - runs 1002007 to 1004234 & 2100024 to 2100482 - eta<0.8
if ( RunNumber >= 1002007 and RunNumber <= 1004234 ) : # tested: ok
FakeLArTimeOffset.GlobalTimeOffset = 1.9
FakeLArTimeOffset.FEbTimeOffsets += [-1.4, 5.2,-1.0,-0.8,-3.6,-0.8,-0.4, 7.8, 0.0, 0.0,-0.5, 4.9, 0.0, 0.0, 1.2, 1.9]
if ( RunNumber >= 2100024 and RunNumber <= 2100132 ) : # computed with a single run (2100024)
FakeLArTimeOffset.GlobalTimeOffset = -11.4
FakeLArTimeOffset.FEbTimeOffsets += [-3.2, 3.3,10.2, 8.2,-1.9, 5.4, 1.8, 4.8, 0.0, 0.0,-6.9, 0.1,-2.5,-7.2,-2.7,-2.0]
if ( RunNumber >= 2100133 and RunNumber <= 2100482 ) : # computed with a single run (2100133)
FakeLArTimeOffset.GlobalTimeOffset = 16.5
FakeLArTimeOffset.FEbTimeOffsets += [-5.6, 2.2,-3.2, 0.3,-5.0,-1.1, 0.0, 0.0, 0.0, 0.0,-3.6, 0.9, 0.0, 0.0,-1.0, 4.0]
# Periode 7 - sep. 15th to 24th - runs 2100558 to 2100975 - eta>0.8
if ( RunNumber >= 2100558 and RunNumber <= 2101021 ) : # computed with a single run (2100558)
FakeLArTimeOffset.GlobalTimeOffset = 12.5
FakeLArTimeOffset.FEbTimeOffsets += [ 0.7, 2.4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
# Periode 8 - sep. 24th to nov. 15th - runs 2101022 to 2102992 - eta<0.8
if ( RunNumber >= 2101022 and RunNumber <= 2101570 ) : # to be recomputed!!!
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEbTimeOffsets += [29.7,-25.9,10.9,-11.6, 9.5,119.9, 0.0, 0.0, 0.0, 0.0,11.1,-11.3, 0.0, 0.0, 0.0, 0.0]
if ( RunNumber >= 2101571 and RunNumber <= 2102466 ) : # computed with a single run (2101571)
FakeLArTimeOffset.GlobalTimeOffset = -4.0
FakeLArTimeOffset.FEbTimeOffsets += [-3.0, 2.7, 0.2, 2.8,-4.4, 0.2,-2.0,-0.3,-4.1, 1.9,-2.2, 4.9, 2.2,-4.6, 0.6, 6.2]
if ( RunNumber >= 2102467 and RunNumber <= 2102992 ) : # tested: ok
FakeLArTimeOffset.GlobalTimeOffset = -1.8
FakeLArTimeOffset.FEbTimeOffsets += [-3.0, 4.0,-1.4,-0.3,-4.4,-1.6,-2.3, 0.1,-4.6, 1.9,-1.2, 4.1, 3.1,-3.3, 1.1, 6.6]
#
# Timing Offset for OFC RTM at CTB2004
#
# Computed using OFC in /lar/LArElecCalibTB04/LArOFCPhys/RTM, tag TB04-11
#
# Missing periods: 6b, 7, 8-2 (25 ns)
#
# Last update: 28/11/2005 (Marco.Delmastro@cern.ch)
#
#LArTB04FolderTag_OFC_RTM = "TB04-11"
#import AthenaCommon.Logging.logging as logging
TimeOffsetsLog = logging.getLogger( "TimeOffsetsLog" )
TimeOffsetsLog.info( "Loading LAr RTM OFC Timing Offsets ..." )
theApp.TopAlg +=["FakeLArTimeOffset"]
FakeLArTimeOffset=Algorithm("FakeLArTimeOffset")
FakeLArTimeOffset.OutputLevel = INFO
#
# Period 1 - july 4th to 12th - runs 1000055 to 1000460 - eta>0.8
#
if ( RunNumber >= 1000055 and RunNumber <= 1000460 ):
TimeOffsetsLog.error( "==================================================" )
TimeOffsetsLog.error( " *** There is no TDC information for this run *** " )
TimeOffsetsLog.error( " WARNING: you should NOT USE the LAr OFC! " )
TimeOffsetsLog.error( " use LAr Parabola instead... " )
TimeOffsetsLog.error( "==================================================" )
theApp.exit()
#
# Period 2 - july 12th to 14th - runs 1000463 to 1000622 - 0.6<eta<1.2
#
if ( RunNumber >= 1000463 and RunNumber <= 1000622 ) :
TimeOffsetsLog.error( "==================================================" )
TimeOffsetsLog.error( " *** There is no TDC information for this run *** " )
TimeOffsetsLog.error( " WARNING: you should NOT USE the LAr OFC! " )
TimeOffsetsLog.error( " use LAr Parabola instead... " )
TimeOffsetsLog.error( "==================================================" )
theApp.exit()
#
# Period 3 - july 26th to aug. 4th - runs 1000623 to 1000797 - 0.6<eta<1.2
#
if ( RunNumber >= 1000623 and RunNumber <= 1000797 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 20.392, 0, 0, 0, 10.9085, 22.3675, 17.5928, 0, 0, 22.12, 0, 14.9584, 23.2108, 0, 18.9465, 0, 0, 0, 7.79481, 14.2085, 13.5365, 0, 0, 13.5697, 0, 1.23259, 15.4494, 0 ]
#
# Period 4 - aug. 4th to 6th - runs 1000813 to 1000918 - eta<0.8
#
if ( RunNumber >= 1000813 and RunNumber <= 1000918 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 28.6552, 13.4678, 18.7311, 17.2435, 16.7116, 0, 0, 0, 19.2121, 0, 15.6011, 20.8719, 0, 0, 26.1681, 0, 14.3194, 10.9471, 0, 0, 0, 0, 12.5805, 0, 12.8502, 15.4983, 0, 0 ]
#
# Period 5 - aug. 6th to 9th - runs 1000919 to 1001056 - eta<0.8
#
#
# Period 5-1
#
if ( RunNumber >= 1000919 and RunNumber <= 1001056 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 23.8034, 8.38618, 14.1214, 13.2987, 0, 0, 0, 0, 15.4504, 0, 9.9187, 16.81, 0, 0, 23.4156, 8.08891, 11.1009, 8.78125, 0, 0, 0, 0, 9.65008, 0, 9.65014, 7.85293, 0, 0 ]
#
# Period 5-2
#
if ( RunNumber >= 1000993 and RunNumber <= 1001024 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 23.7926, 10.4319, 14.8677, 13.0287, 15.9449, 0, 0, 0, 15.241, 0, 11.6289, 16.5077, 0, 0, 23.2989, 8.16476, 11.8144, 8.20559, 9.18529, 0, 0, 0, 9.56531, 0, 10.0636, 12.5121, 0, 0 ]
#
# Period 5-3
#
if ( RunNumber >= 1001028 and RunNumber <= 1001056 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 24.4631, 11.8878, 14.2471, 13.7446, 0, 0, 0, 0, 16.191, 0, 10.1576, 17.6169, 0, 0, 24, 10.0835, 11.165, 9.19526, 0, 0, 0, 0, 10.027, 0, 10.0021, 8.50511, 0, 0 ]
#
# Period 6a - aug. 23rd to sep. 1st - runs 1002007 to 1004234 - eta<0.8
#
if ( RunNumber >= 1002007 and RunNumber <= 1004234 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 26.958, 15.0801, 17.5979, 15.925, 0, 0, 0, 0, 18.6033, 0, 14.8044, 18.3033, 0, 0, 26.1635, 14.7238, 15.6399, 10.9162, 0, 0, 0, 0, 15.8183, 0, 10.8217, 9.77186, 0, 0 ]
#
# Period 6b - aug. 23rd to sep.15th - runs 2100024 to 2100482 - eta<0.8
#
#
# Period 6b-1
#
if ( RunNumber >= 2100024 and RunNumber <= 2100110 ) :
TimeOffsetsLog.error( "=========================================================" )
TimeOffsetsLog.error( " There are no LAr RTM OFC with tag "+LArTB04FolderTag_OFC_RTM+" for this run!" )
TimeOffsetsLog.error( "=========================================================" )
theApp.exit()
#
# Period 6b-2
#
if ( RunNumber >= 2100132 and RunNumber <= 2100253 ) :
TimeOffsetsLog.error( "=========================================================" )
TimeOffsetsLog.error( " There are no LAr RTM OFC with tag "+LArTB04FolderTag_OFC_RTM+" for this run!" )
TimeOffsetsLog.error( "=========================================================" )
theApp.exit()
#
# Period 6b-3
#
if ( RunNumber >= 2100254 and RunNumber <= 2100510 ) :
TimeOffsetsLog.error( "=========================================================" )
TimeOffsetsLog.error( " There are no LAr RTM OFC with tag "+LArTB04FolderTag_OFC_RTM+" for this run!" )
TimeOffsetsLog.error( "=========================================================" )
theApp.exit()
#
# Period 6b-4
#
if ( RunNumber >= 2100513 and RunNumber <= 2100540 ) :
TimeOffsetsLog.error( "=========================================================" )
TimeOffsetsLog.error( " There are no LAr RTM OFC with tag "+LArTB04FolderTag_OFC_RTM+" for this run!" )
TimeOffsetsLog.error( "=========================================================" )
theApp.exit()
#
# Period 7 - sep. 15th to 24th - runs 2100558 to 2100975 - eta>0.8
#
if ( RunNumber >= 2100558 and RunNumber <= 2100975 ) :
TimeOffsetsLog.error( "=========================================================" )
TimeOffsetsLog.error( " There are no LAr RTM OFC with tag "+LArTB04FolderTag_OFC_RTM+" for this run!" )
TimeOffsetsLog.error( "=========================================================" )
theApp.exit()
#
# Period 8 - sep. 24th to nov. 15th - runs 2101022 to 2102992 - eta<0.8
#
#
# Period 8-1 (Low energy Period 8 subperiod, with known timing problems)
#
if ( RunNumber >= 2101022 and RunNumber <= 2101475 ) :
TimeOffsetsLog.warning( "====================================================" )
TimeOffsetsLog.warning( " *** WARNING: this run has known LAr timing problems" )
TimeOffsetsLog.warning( "====================================================" )
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 7.29871, 0, 5.72954, 8.49265, 7.68776, 0, 0, 0, 8.23094, 0, 0, 10.0111, 0, 0, 5.63829, 0, 9.46414, 10.7751, 8.94151, 0, 0, 0, 2.98527, 0, 1.07913, 0, 0, 0 ]
#
# Period 8-2 ("25 ns" subperiod)
#
if ( RunNumber >= 2101571 and RunNumber <= 2101737 ) :
TimeOffsetsLog.error( "================================================" )
TimeOffsetsLog.error( " *** WARNING: you are attempting to reconstruct " )
TimeOffsetsLog.error( " *** a 25-ns run using LAr RTM OFC... " )
TimeOffsetsLog.error( " *** ---> Please contact a LAr expert " )
TimeOffsetsLog.error( "================================================" )
theApp.exit()
#
# Period 8-3
#
# Note: for all the rest of Period8 apparently the TDC calibration did not change.
if ( RunNumber >= 2102095 and RunNumber <= 2102992 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 26.5789, 11.2139, 16.6311, 14.567, 0, 0, 0, 0, 17.0088, 0, 13.6337, 17.935, 0, 0, 25.7079, 9.57543, 15.1865, 10.1253, 0, 0, 0, 0, 11.99, 0, 10.1301, 9.58999, 0, 0 ]
#
# Timing Offset for OFC RTM at CTB2004
#
# Computed using OFC in /lar/LArElecCalibTB04/LArOFCPhys/RTM, tag TB04-12
#
# Missing periods: 7, 8-2 (25 ns)
#
# Last update: 15/12/2005 (Marco.Delmastro@cern.ch)
#
#LArTB04FolderTag_OFC_RTM = "TB04-12"
#import AthenaCommon.Logging.logging as logging
TimeOffsetsLog = logging.getLogger( "TimeOffsetsLog" )
TimeOffsetsLog.info( "Loading LAr RTM OFC Timing Offsets ..." )
theApp.TopAlg +=["FakeLArTimeOffset"]
FakeLArTimeOffset=Algorithm("FakeLArTimeOffset")
FakeLArTimeOffset.OutputLevel = INFO
#
# Period 1 - july 4th to 12th - runs 1000055 to 1000460 - eta>0.8
#
if ( RunNumber >= 1000055 and RunNumber <= 1000460 ):
TimeOffsetsLog.error( "==================================================" )
TimeOffsetsLog.error( " *** There is no TDC information for this run *** " )
TimeOffsetsLog.error( " WARNING: you should NOT USE the LAr OFC! " )
TimeOffsetsLog.error( " use LAr Parabola instead... " )
TimeOffsetsLog.error( "==================================================" )
theApp.exit()
#
# Period 2 - july 12th to 14th - runs 1000463 to 1000622 - 0.6<eta<1.2
#
if ( RunNumber >= 1000463 and RunNumber <= 1000622 ) :
TimeOffsetsLog.error( "==================================================" )
TimeOffsetsLog.error( " *** There is no TDC information for this run *** " )
TimeOffsetsLog.error( " WARNING: you should NOT USE the LAr OFC! " )
TimeOffsetsLog.error( " use LAr Parabola instead... " )
TimeOffsetsLog.error( "==================================================" )
theApp.exit()
#
# Period 3 - july 26th to aug. 4th - runs 1000623 to 1000797 - 0.6<eta<1.2
#
if ( RunNumber >= 1000623 and RunNumber <= 1000797 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 8.99629, 0, 0, 0, 10.3055, 21.3338, 16.9382, 0, 0, 21.7496, 0, 14.4824, 22.3707, 0, 7.6459, 0, 0, 0, 7.19743, 13.2964, 12.8002, 0, 0, 13.1924, 0, 0.633544, 14.6006, 0 ]
#
# Period 4 - aug. 4th to 6th - runs 1000813 to 1000918 - eta<0.8
#
if ( RunNumber >= 1000813 and RunNumber <= 1000918 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 17.0738, 11.7326, 17.3288, 16.2998, 16.2484, 0, 0, 0, 18.6674, 0, 14.3392, 20.0127, 0, 0, 14.5702, 0, 12.9158, 10.1051, 0, 0, 0, 0, 12.0783, 0, 11.5289, 14.1051, 0, 0 ]
#
# Period 5 - aug. 6th to 9th - runs 1000919 to 1001056 - eta<0.8
#
#
# Period 5-1
#
if ( RunNumber >= 1000919 and RunNumber <= 1000992 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 12.5466, 7.54204, 12.7606, 12.3124, 0, 0, 0, 0, 15.06, 0, 8.50943, 15.9129, 0, 0, 11.7547, 7.58485, 9.73163, 7.7057, 0, 0, 0, 0, 9.24176, 0, 8.35578, 6.92025, 0, 0 ]
#
# Period 5-2
#
if ( RunNumber >= 1000993 and RunNumber <= 1001024 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 12.3673, 9.58359, 13.3502, 12.0841, 14.7058, 0, 0, 0, 14.7223, 0, 10.2922, 15.5664, 0, 0, 11.7706, 6.87566, 10.3017, 7.32381, 8.55533, 0, 0, 0, 9.10517, 0, 8.66712, 10.9894, 0, 0 ]
#
# Period 5-3
#
if ( RunNumber >= 1001028 and RunNumber <= 1001056 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 13.1829, 11.1593, 13.0061, 12.7552, 0, 0, 0, 0, 15.8154, 0, 8.89423, 16.6597, 0, 0, 12.4752, 9.44368, 9.91459, 8.18411, 0, 0, 0, 0, 9.68471, 0, 8.82161, 7.45051, 0, 0 ]
#
# Period 6a - aug. 23rd to sep. 1st - runs 1002007 to 1004234 - eta<0.8
#
if ( RunNumber >= 1002007 and RunNumber <= 1004234 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 15.4554, 13.4202, 15.9593, 14.8999, 0, 0, 0, 0, 18.1364, 0, 13.1591, 17.6836, 0, 0, 14.259, 13.0813, 14.164, 9.88885, 0, 0, 0, 0, 14.3171, 0, 9.24348, 8.62648, 0, 0 ]
#
# Period 6b - aug. 23rd to sep.15th - runs 2100024 to 2100482 - eta<0.8
#
#
# Period 6b-1
#
if ( RunNumber >= 2100024 and RunNumber <= 2100110 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 6.15979, 12.3529, 4.95277, 4.0376, 0, 0, 0, 0, 7.08687, 0, 2.97156, 0, 0, 0, 4.26945, 17.7187, 4.18178, 9.22706, 0, 0, 0, 0, 0, 0, 14.9176, 4.63276, 0, 0 ]
#
# Period 6b-2
#
if ( RunNumber >= 2100132 and RunNumber <= 2100253 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 5.42388, 11.6275, 5.29973, 4.44121, 0, 0, 0, 0, 6.94017, 0, 2.84483, 8.05193, 0, 0, 4.04627, 15.0061, 2.59872, 0, 0, 0, 0, 0, 2.25797, 0, 4.91218, 0, 0, 0 ]
#
# Period 6b-3
#
if ( RunNumber >= 2100254 and RunNumber <= 2100510 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 8.88423, 17.9795, 10.4802, 10.4386, 12.4275, 0, 0, 0, 10.078, 0, 8.10476, 12.167, 0, 0, 7.85931, 7.10123, 8.38278, 5.37082, 6.25998, 0, 0, 0, 5.60678, 0, 9.74422, 12.8086, 0, 0 ]
#
# Period 6b-4
#
if ( RunNumber >= 2100513 and RunNumber <= 2100540 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 8.98606, 17.6986, 10.6528, 11.1947, 11.4479, 0, 0, 0, 8.05384, 0, 8.2363, 12.3221, 0, 0, 7.89682, 7.09154, 7.43999, 6.85566, 5.49555, 0, 0, 0, 5.90347, 0, 9.57245, 13.2378, 0, 0 ]
#
# Period 7 - sep. 15th to 24th - runs 2100558 to 2100975 - eta>0.8
#
if ( RunNumber >= 2100558 and RunNumber <= 2100975 ) :
TimeOffsetsLog.error( "=========================================================" )
TimeOffsetsLog.error( " There are no LAr RTM OFC with tag "+LArTB04FolderTag_OFC_RTM+" for this run!" )
TimeOffsetsLog.error( "=========================================================" )
theApp.exit()
#
# Period 8 - sep. 24th to nov. 15th - runs 2101022 to 2102992 - eta<0.8
#
#
# Period 8-1 (Low energy Period 8 subperiod, with known timing problems)
#
if ( RunNumber >= 2101022 and RunNumber <= 2101475 ) :
TimeOffsetsLog.warning( "====================================================" )
TimeOffsetsLog.warning( " *** WARNING: this run has known LAr timing problems" )
TimeOffsetsLog.warning( "====================================================" )
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 6.31955, 0, 5.1824, 7.23507, 6.75694, 0, 0, 0, 7.71951, 0, 0, 8.80756, 0, 0, 4.40908, 0, 8.63216, 9.55948, 8.00058, 0, 0, 0, 2.46427, 0, 0.204178, 0, 0, 0 ]
#
# Period 8-2 ("25 ns" subperiod)
#
if ( RunNumber >= 2101571 and RunNumber <= 2101737 ) :
TimeOffsetsLog.error( "================================================" )
TimeOffsetsLog.error( " *** WARNING: you are attempting to reconstruct " )
TimeOffsetsLog.error( " *** a 25-ns run using LAr RTM OFC... " )
TimeOffsetsLog.error( " *** ---> Please contact a LAr expert " )
TimeOffsetsLog.error( "================================================" )
theApp.exit()
#
# Period 8-3
#
# Note: for all the rest of Period8 apparently the TDC calibration did not change.
if ( RunNumber >= 2102095 and RunNumber <= 2102992 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 15.0485, 10.3885, 14.963, 13.6596, 0, 0, 0, 0, 16.6076, 0, 12.4465, 17.1272, 0, 0, 13.8096, 8.74077, 13.9138, 9.35184, 0, 0, 0, 0, 11.5829, 0, 9.00505, 8.78157, 0, 0 ]
#
# Timing Offset for OFC RTM at CTB2004
#
# Computed using OFC in /lar/LArElecCalibTB04/LArOFCPhys/RTM, tag TB04-13
#
# Missing periods: 8-2 (25 ns)
#
# Last update: 05/02/2006 (Marco.Delmastro@cern.ch)
#
#LArTB04FolderTag_OFC_RTM = "TB04-13"
#import AthenaCommon.Logging.logging as logging
TimeOffsetsLog = logging.getLogger( "TimeOffsetsLog" )
TimeOffsetsLog.info( "Loading LAr RTM OFC Timing Offsets ..." )
theApp.TopAlg +=["FakeLArTimeOffset"]
FakeLArTimeOffset=Algorithm("FakeLArTimeOffset")
FakeLArTimeOffset.OutputLevel = INFO
#
# Period 1 - july 4th to 12th - runs 1000055 to 1000460 - eta>0.8
#
if ( RunNumber >= 1000055 and RunNumber <= 1000460 ):
TimeOffsetsLog.error( "==================================================" )
TimeOffsetsLog.error( " *** There is no TDC information for this run *** " )
TimeOffsetsLog.error( " WARNING: you should NOT USE the LAr OFC! " )
TimeOffsetsLog.error( " use LAr Parabola instead... " )
TimeOffsetsLog.error( "==================================================" )
theApp.exit()
#
# Period 2 - july 12th to 14th - runs 1000463 to 1000622 - 0.6<eta<1.2
#
if ( RunNumber >= 1000463 and RunNumber <= 1000622 ) :
TimeOffsetsLog.error( "==================================================" )
TimeOffsetsLog.error( " *** There is no TDC information for this run *** " )
TimeOffsetsLog.error( " WARNING: you should NOT USE the LAr OFC! " )
TimeOffsetsLog.error( " use LAr Parabola instead... " )
TimeOffsetsLog.error( "==================================================" )
theApp.exit()
#
# Period 3 - july 26th to aug. 4th - runs 1000623 to 1000797 - 0.6<eta<1.2
#
if ( RunNumber >= 1000623 and RunNumber <= 1000797 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 8.99629, 0, 0, 0, 10.3055, 21.3338, 16.9382, 0, 0, 21.7496, 0, 14.4824, 22.3707, 0, 7.6459, 0, 0, 0, 7.19743, 13.2964, 12.8002, 0, 0, 13.1924, 0, 0.633544, 14.6006, 0 ]
#
# Period 4 - aug. 4th to 6th - runs 1000813 to 1000918 - eta<0.8
#
if ( RunNumber >= 1000813 and RunNumber <= 1000918 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 17.0738, 11.7326, 17.3288, 16.2998, 16.2484, 0, 0, 0, 18.6674, 0, 14.3392, 20.0127, 0, 0, 14.5702, 0, 12.9158, 10.1051, 0, 0, 0, 0, 12.0783, 0, 11.5289, 14.1051, 0, 0 ]
#
# Period 5 - aug. 6th to 9th - runs 1000919 to 1001056 - eta<0.8
#
#
# Period 5-1
#
if ( RunNumber >= 1000919 and RunNumber <= 1000992 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 12.5466, 7.54204, 12.7606, 12.3124, 0, 0, 0, 0, 15.06, 0, 8.50943, 15.9129, 0, 0, 11.7547, 7.58485, 9.73163, 7.7057, 0, 0, 0, 0, 9.24176, 0, 8.35578, 6.92025, 0, 0 ]
#
# Period 5-2
#
if ( RunNumber >= 1000993 and RunNumber <= 1001024 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 12.3673, 9.58359, 13.3502, 12.0841, 14.7058, 0, 0, 0, 14.7223, 0, 10.2922, 15.5664, 0, 0, 11.7706, 6.87566, 10.3017, 7.32381, 8.55533, 0, 0, 0, 9.10517, 0, 8.66712, 10.9894, 0, 0 ]
#
# Period 5-3
#
if ( RunNumber >= 1001028 and RunNumber <= 1001056 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 13.1829, 11.1593, 13.0061, 12.7552, 0, 0, 0, 0, 15.8154, 0, 8.89423, 16.6597, 0, 0, 12.4752, 9.44368, 9.91459, 8.18411, 0, 0, 0, 0, 9.68471, 0, 8.82161, 7.45051, 0, 0 ]
#
# Period 6a - aug. 23rd to sep. 1st - runs 1002007 to 1004234 - eta<0.8
#
if ( RunNumber >= 1002007 and RunNumber <= 1004234 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 15.4554, 13.4202, 15.9593, 14.8999, 0, 0, 0, 0, 18.1364, 0, 13.1591, 17.6836, 0, 0, 14.259, 13.0813, 14.164, 9.88885, 0, 0, 0, 0, 14.3171, 0, 9.24348, 8.62648, 0, 0 ]
#
# Period 6b - aug. 23rd to sep.15th - runs 2100024 to 2100482 - eta<0.8
#
#
# Period 6b-1
#
if ( RunNumber >= 2100024 and RunNumber <= 2100110 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 6.15979, 12.3529, 4.95277, 4.0376, 0, 0, 0, 0, 7.08687, 0, 2.97156, 0, 0, 0, 4.26945, 17.7187, 4.18178, 9.22706, 0, 0, 0, 0, 0, 0, 14.9176, 4.63276, 0, 0 ]
#
# Period 6b-2
#
if ( RunNumber >= 2100132 and RunNumber <= 2100253 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 5.42388, 11.6275, 5.29973, 4.44121, 0, 0, 0, 0, 6.94017, 0, 2.84483, 8.05193, 0, 0, 4.04627, 15.0061, 2.59872, 0, 0, 0, 0, 0, 2.25797, 0, 4.91218, 0, 0, 0 ]
#
# Period 6b-3
#
if ( RunNumber >= 2100254 and RunNumber <= 2100510 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 8.88423, 17.9795, 10.4802, 10.4386, 12.4275, 0, 0, 0, 10.078, 0, 8.10476, 12.167, 0, 0, 7.85931, 7.10123, 8.38278, 5.37082, 6.25998, 0, 0, 0, 5.60678, 0, 9.74422, 12.8086, 0, 0 ]
#
# Period 6b-4
#
if ( RunNumber >= 2100513 and RunNumber <= 2100540 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 8.98606, 17.6986, 10.6528, 11.1947, 11.4479, 0, 0, 0, 8.05384, 0, 8.2363, 12.3221, 0, 0, 7.89682, 7.09154, 7.43999, 6.85566, 5.49555, 0, 0, 0, 5.90347, 0, 9.57245, 13.2378, 0, 0 ]
#
# Period 7 - sep. 15th to 24th - runs 2100558 to 2100975 - eta>0.8
#
if ( RunNumber >= 2100558 and RunNumber <= 2100975 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 11.9702, 0, 0, 0, 0, 8.35155, 9.18058, 8.15003, 0, 10.2254, 0, 0, 17.6988, 8.80366, 9.70149, 0, 0, 0, 0, 5.70352, 5.4557, 0.153672, 0, 5.16758, 0, 0, 6.90644, 0 ]
if ( ( RunNumber >= 2100683 and RunNumber <= 2100750 ) or ( RunNumber >= 2100767 and RunNumber <= 2100975 ) ) :
TimeOffsetsLog.warning( "=========================================================" )
TimeOffsetsLog.warning( " *** WARNING: There are known LAr reconstruction problems" )
TimeOffsetsLog.warning( " for this run ("+str(RunNumber)+") using RTM OFCs" )
TimeOffsetsLog.warning( "=========================================================" )
#
# Period 8 - sep. 24th to nov. 15th - runs 2101022 to 2102992 - eta<0.8
#
#
# Period 8-1 (Low energy Period 8 subperiod, with known timing problems)
#
if ( RunNumber >= 2101022 and RunNumber <= 2101475 ) :
TimeOffsetsLog.warning( "====================================================" )
TimeOffsetsLog.warning( " *** WARNING: this run has known LAr timing problems" )
TimeOffsetsLog.warning( "====================================================" )
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 6.31955, 0, 5.1824, 7.23507, 6.75694, 0, 0, 0, 7.71951, 0, 0, 8.80756, 0, 0, 4.40908, 0, 8.63216, 9.55948, 8.00058, 0, 0, 0, 2.46427, 0, 0.204178, 0, 0, 0 ]
#
# Period 8-2 ("25 ns" subperiod)
#
if ( RunNumber >= 2101571 and RunNumber <= 2101737 ) :
TimeOffsetsLog.error( "================================================" )
TimeOffsetsLog.error( " *** WARNING: you are attempting to reconstruct " )
TimeOffsetsLog.error( " *** a 25-ns run using LAr RTM OFC... " )
TimeOffsetsLog.error( " *** ---> Please contact a LAr expert " )
TimeOffsetsLog.error( "================================================" )
theApp.exit()
#
# Period 8-3
#
# Note: for all the rest of Period8 apparently the TDC calibration did not change.
if ( RunNumber >= 2102095 and RunNumber <= 2102992 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 15.0485, 10.3885, 14.963, 13.6596, 0, 0, 0, 0, 16.6076, 0, 12.4465, 17.1272, 0, 0, 13.8096, 8.74077, 13.9138, 9.35184, 0, 0, 0, 0, 11.5829, 0, 9.00505, 8.78157, 0, 0 ]
#
# Timing Offset for OFC RTM at CTB2004
#
# Computed using OFC in /lar/LArElecCalibTB04/LArOFCPhys/RTM, tag TB04-2
#
# Last update: 26/08/2005 (Marco.Delmastro@cern.ch)
#
#import AthenaCommon.Logging.logging as logging
TimeOffsetsLog = logging.getLogger( 'TimeOffsetsLog' )
TimeOffsetsLog.info( 'Loading LAr RTM OFC Timing Offsets ...' )
theApp.TopAlg +=["FakeLArTimeOffset"]
FakeLArTimeOffset=Algorithm("FakeLArTimeOffset")
FakeLArTimeOffset.OutputLevel = INFO
#
# Period 1 - july 4th to 12th - runs 1000055 to 1000460 - eta>0.8
#
if ( RunNumber >= 1000055 and RunNumber <= 1000460 ):
TimeOffsetsLog.error( '==================================================' )
TimeOffsetsLog.error( ' *** There is no TDC information for this run *** ' )
TimeOffsetsLog.error( ' WARNING: you should NOT USE the LAr OFC! ' )
TimeOffsetsLog.error( ' use LAr Parabola instead... ' )
TimeOffsetsLog.error( '==================================================' )
#
# Period 2 - july 12th to 14th - runs 1000463 to 1000622 - 0.6<eta<1.2
#
if ( RunNumber >= 1000463 and RunNumber <= 1000622 ) :
TimeOffsetsLog.error( '==================================================' )
TimeOffsetsLog.error( ' *** There is no TDC information for this run *** ' )
TimeOffsetsLog.error( ' WARNING: you should NOT USE the LAr OFC! ' )
TimeOffsetsLog.error( ' use LAr Parabola instead... ' )
TimeOffsetsLog.error( '==================================================' )
#
# Period 3 - july 26th to aug. 4th - runs 1000623 to 1000797 - 0.6<eta<1.2
#
if ( RunNumber >= 1000623 and RunNumber <= 1000797 ) :
FakeLArTimeOffset.GlobalTimeOffset = -0.4
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
FakeLArTimeOffset.FEbTimeOffsets += [ 6.8, 7.8, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 6.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
#
# Period 4 - aug. 4th to 6th - runs 1000813 to 1000918 - eta<0.8
#
if ( RunNumber >= 1000813 and RunNumber <= 1000918 ) :
FakeLArTimeOffset.GlobalTimeOffset = -3.4
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
FakeLArTimeOffset.FEbTimeOffsets += [ 1.9,10.1, 0.0, 0.0,-4.5, 3.5, 0.1, 3.3, 0.0, 0.0,-0.6, 5.4, 0.4,-3.4, 8.0,13.3]
#
# Period 5 - aug. 6th to 9th - runs 1000919 to 1001056 - eta<0.8
#
if ( RunNumber >= 1000919 and RunNumber <= 1001056 ) :
FakeLArTimeOffset.GlobalTimeOffset = 1.1
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
FakeLArTimeOffset.FEbTimeOffsets += [ 2.5, 8.8, 0.0, 0.0,-4.3, 2.4, 0.5, 2.5, 0.0, 0.0,-0.3, 4.4,-0.4,-3.2, 7.9,12.6]
# Period 5 subperiod with FEBs exchange (to be checked)
if ( RunNumber >= 1000931 and RunNumber <= 1000969 ) :
FakeLArTimeOffset.GlobalTimeOffset = 2.0
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
FakeLArTimeOffset.FEbTimeOffsets += [ 2.0, 6.8, 0.0, 0.0,-3.9, 2.0,-0.5, 0.4, 0.0, 0.0,-0.6, 3.1, 2.0,-4.1, 0.0,11.5]
#
# Period 6 - aug. 23rd to sep. 15th - runs 1002007 to 1004234 & 2100024 to 2100482 - eta<0.8
#
if ( RunNumber >= 1002007 and RunNumber <= 1004234 ) :
FakeLArTimeOffset.GlobalTimeOffset = -1.3
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
FakeLArTimeOffset.FEbTimeOffsets += [ 3.2, 8.4,-0.8,-0.5,-3.3,-0.9, 0.0, 0.0, 0.0, 0.0,-1.0, 3.9, 0.0, 0.0, 5.4, 4.5]
if ( RunNumber >= 2100024 and RunNumber <= 2100132 ) : # computed with a single run (2100024)
FakeLArTimeOffset.GlobalTimeOffset = -11.4
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
FakeLArTimeOffset.FEbTimeOffsets += [-2.4, 3.0, 0.0, 0.0,-4.1, 7.0,-1.6, 4.8, 0.0, 0.0,-8.9,-2.8,-5.9,-10.4,-1.4,-1.6]
if ( RunNumber >= 2100133 and RunNumber <= 2100482 ) : # computed with a single run (2100133)
FakeLArTimeOffset.GlobalTimeOffset = 12.8
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
FakeLArTimeOffset.FEbTimeOffsets += [ 0.0, 5.8,-2.7, 0.6,-4.6,-0.8, 0.0, 0.0, 0.0, 0.0,-3.8, 0.7, 0.0, 0.0, 0.0, 7.8]
#
# Period 7 - sep. 15th to 24th - runs 2100558 to 2100975 - eta>0.8
#
if ( RunNumber >= 2100558 and RunNumber <= 2101021 ) : # computed with a single run (2100558)
FakeLArTimeOffset.GlobalTimeOffset = 6.3
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
FakeLArTimeOffset.FEbTimeOffsets += [ 5.5, 7.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
#
# Period 8 - sep. 24th to nov. 15th - runs 2101022 to 2102992 - eta<0.8
#
#
# Low energy Period 8 subperiod, with known timing problems!
#
if ( RunNumber >= 2101022 and RunNumber <= 2101475 ) : # computed with a single run (2101238)
TimeOffsetsLog.warning( '====================================================' )
TimeOffsetsLog.warning( ' *** WARNING: this run has known LAr timing problems' )
TimeOffsetsLog.warning( '====================================================' )
FakeLArTimeOffset.GlobalTimeOffset = 17.6
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
FakeLArTimeOffset.FEbTimeOffsets += [ 2.1, 9.4, 0.0, 0.0, 0.0, 0.0,-2.2, 2.3,-1.0, 3.4, 0.0, 0.0, 4.9,-2.8, 3.3, 6.0]
#
# "25 ns" Period 8 subperiod
#
if ( RunNumber >= 2101571 and RunNumber <= 2101737 ) : # computed with a single run (2101571)
TimeOffsetsLog.warning( '================================================' )
TimeOffsetsLog.warning( ' *** WARNING: you are attempting to reconstruct ' )
TimeOffsetsLog.warning( ' *** a 25-ns run using LAr RTM OFC... ' )
TimeOffsetsLog.warning( '================================================' )
FakeLArTimeOffset.GlobalTimeOffset = -7.2
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
FakeLArTimeOffset.FEbTimeOffsets += [-5.9,-1.3,-6.6,-4.0,-11.3,-6.7,-8.8,-7.4,-11.0,-6.1,-9.3,-3.7,-5.6,-11.5,-2.3, 2.1]
# for all the rest of Period8 apparently the TDC calibration did not changed.
# If the LAr timing stayed the same (did it?) a single set of timeng offsets should work...
if ( RunNumber >= 2002095 ) :
FakeLArTimeOffset.GlobalTimeOffset = -5.2
FakeLArTimeOffset.FEBids += [0x39000000,0x39080000,0x39008000,0x39088000,0x39010000,0x39090000,0x39018000,0x39098000,0x39020000,0x390a0000,0x39050000,0x390d0000,0x390d8000,0x39058000,0x39040000,0x390c0000]
FakeLArTimeOffset.FEbTimeOffsets += [ 1.6, 7.7,-1.3,-0.5,-4.5,-1.4,-2.5, 0.4,-3.8, 2.3,-1.5, 3.0, 2.6,-3.4, 5.7,10.4]
#
# Timing Offset for OFC RTM at CTB2004
#
# Computed using OFC in /lar/LArElecCalibTB04/LArOFCPhys/RTM, tag TB04-9
#
# Last update: 07/09/2005 (Marco.Delmastro@cern.ch)
#
#import AthenaCommon.Logging.logging as logging
TimeOffsetsLog = logging.getLogger( 'TimeOffsetsLog' )
TimeOffsetsLog.info( 'Loading LAr RTM OFC Timing Offsets ...' )
theApp.TopAlg +=["FakeLArTimeOffset"]
FakeLArTimeOffset=Algorithm("FakeLArTimeOffset")
FakeLArTimeOffset.OutputLevel = INFO
#
# Period 1 - july 4th to 12th - runs 1000055 to 1000460 - eta>0.8
#
if ( RunNumber >= 1000055 and RunNumber <= 1000460 ):
TimeOffsetsLog.error( '==================================================' )
TimeOffsetsLog.error( ' *** There is no TDC information for this run *** ' )
TimeOffsetsLog.error( ' WARNING: you should NOT USE the LAr OFC! ' )
TimeOffsetsLog.error( ' use LAr Parabola instead... ' )
TimeOffsetsLog.error( '==================================================' )
#
# Period 2 - july 12th to 14th - runs 1000463 to 1000622 - 0.6<eta<1.2
#
if ( RunNumber >= 1000463 and RunNumber <= 1000622 ) :
TimeOffsetsLog.error( '==================================================' )
TimeOffsetsLog.error( ' *** There is no TDC information for this run *** ' )
TimeOffsetsLog.error( ' WARNING: you should NOT USE the LAr OFC! ' )
TimeOffsetsLog.error( ' use LAr Parabola instead... ' )
TimeOffsetsLog.error( '==================================================' )
#
# Period 3 - july 26th to aug. 4th - runs 1000623 to 1000797 - 0.6<eta<1.2
#
if ( RunNumber >= 1000623 and RunNumber <= 1000797 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 19.4427, 0, 0, 0, 10.2147, 21.2868, 16.8594, 0, 0, 21.7697, 0, 14.6511, 22.4133, 0, 18.1232, 0, 0, 0, 6.81441, 13.3438, 12.5902, 0, 0, 13.2133, 0, 2.46791, 14.7413, 0 ]
#
# Period 4 - aug. 4th to 6th - runs 1000813 to 1000918 - eta<0.8
#
if ( RunNumber >= 1000813 and RunNumber <= 1000918 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 23.4932, 0, 17.3312, 16.0127, 0, 0, 0, 0, 17.0232, 0, 14.4834, 19.7267, 0, 0, 23.3909, 0, 12.9645, 9.91301, 0, 0, 0, 0, 12.0417, 0, 11.5591, 12.6266, 0, 0 ]
#
# Period 5 - aug. 6th to 9th - runs 1000919 to 1001056 - eta<0.8
#
#
# Period 5-1
#
if ( RunNumber >= 1000919 and RunNumber <= 1001056 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 22.9869, 0, 12.5342, 12.2391, 16.1674, 0, 0, 0, 0, 0, 8.47013, 16.032, 0, 0, 22.2306, 0, 9.56283, 7.62281, 0, 0, 0, 0, 9.2557, 0, 8.49248, 6.84468, 0, 0 ]
#
# Period 5-2
#
if ( RunNumber >= 1000993 and RunNumber <= 1001024 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 22.376, 8.09512, 13.3656, 11.819, 14.8602, 0, 0, 0, 14.8316, 0, 10.4405, 15.5254, 0, 0, 22.0311, 0, 10.3485, 7.1548, 8.55533, 0, 0, 0, 9.04074, 0, 8.73463, 10.2558, 0, 0 ]
#
# Period 5-3
#
if ( RunNumber >= 1001028 and RunNumber <= 1001056 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 23.5603, 10.6813, 12.8007, 12.7022, 0, 0, 0, 0, 15.6225, 0, 8.91575, 16.6833, 0, 0, 22.9988, 9.14665, 9.70747, 8.06627, 0, 0, 0, 0, 9.69955, 0, 8.89786, 7.4618, 0, 0 ]
#
# Period 6a - aug. 23rd to sep. 1st - runs 1002007 to 1004234 - eta<0.8
#
if ( RunNumber >= 1002007 and RunNumber <= 1004234 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 25.9361, 13.4142, 15.9979, 15.3053, 0, 0, 0, 0, 17.932, 0, 13.1987, 17.4238, 0, 0, 24.6033, 13.2451, 14.3499, 9.51308, 0, 0, 0, 0, 13.3091, 0, 9.46887, 8.96047, 0, 0 ]
#
# Period 6b - aug. 23rd to sep.15th - runs 2100024 to 2100482 - eta<0.8
#
#
# Period 6b-1
#
if ( RunNumber >= 2100024 and RunNumber <= 2100110 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 0, 6.90114, 9.77279, 0, 0, 0, 0, 0, 11.9382, 0, 8.21135, 0, 0, 0, 20.0183, 6.85694, 9.1029, 4.94817, 0, 0, 0, 0, 6.98346, 0, 5.02334, 4.63276, 0, 0 ]
#
# Period 6b-2
#
if ( RunNumber >= 2100132 and RunNumber <= 2100253 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 26.4399, 11.6694, 15.4146, 14.8167, 0, 0, 0, 0, 17.154, 0, 13.2441, 18.4041, 0, 0, 24.8534, 9.62866, 12.6976, 10.2844, 0, 0, 0, 0, 12.7083, 0, 10.2313, 9.29522, 0, 0 ]
#
# Period 6b-3
#
if ( RunNumber >= 2100254 and RunNumber <= 2100510 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 24.6674, 12.5752, 15.3694, 15.6419, 17.7339, 0, 0, 0, 15.2435, 0, 13.3441, 17.5065, 0, 0, 23.194, 12.1856, 13.4339, 10.4044, 10.9062, 0, 0, 0, 10.515, 0, 10.1634, 7.87344, 0, 0 ]
#
# Period 6b-4
#
if ( RunNumber >= 2100513 and RunNumber <= 2100540 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 24.3439, 12.2535, 15.5004, 16.2448, 16.6779, 0, 0, 0, 13.2382, 0, 13.5527, 17.5423, 0, 0, 23.3187, 12.1365, 12.4644, 11.9723, 10.4353, 0, 0, 0, 11.0151, 0, 9.82882, 8.34833, 0, 0 ]
#
# Period 7 - sep. 15th to 24th - runs 2100558 to 2100975 - eta>0.8
#
if ( RunNumber >= 2100558 and RunNumber <= 2100975 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 21.4216, 0, 0, 0, 0, 19.4041, 18.3163, 18.9614, 0, 19.7443, 0, 0, 22.801, 18.1505, 19.4247, 0, 0, 0, 0, 16.7444, 15.5908, 14.6577, 0, 14.2851, 0, 0, 17.016, 20.8809 ]
#
# Period 8 - sep. 24th to nov. 15th - runs 2101022 to 2102992 - eta<0.8
#
#
# Period 8-1 (Low energy Period 8 subperiod, with known timing problems)
#
if ( RunNumber >= 2101022 and RunNumber <= 2101475 ) :
TimeOffsetsLog.warning( '====================================================' )
TimeOffsetsLog.warning( ' *** WARNING: this run has known LAr timing problems' )
TimeOffsetsLog.warning( '====================================================' )
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 16.7433, 0, 5.01925, 7.11307, 6.913, 0, 0, 0, 7.75064, 0, 0, 8.86492, 0, 0, 14.7937, 0, 1.03717, 0, 3.04786, 0, 0, 0, 2.4098, 0, 0.343579, 0, 0, 0 ]
#
# Period 8-2 ("25 ns" subperiod)
#
if ( RunNumber >= 2101571 and RunNumber <= 2101737 ) :
TimeOffsetsLog.warning( '================================================' )
TimeOffsetsLog.warning( ' *** WARNING: you are attempting to reconstruct ' )
TimeOffsetsLog.warning( ' *** a 25-ns run using LAr RTM OFC... ' )
TimeOffsetsLog.warning( '================================================' )
#
# Period 8-3
#
# Note: for all the rest of Period8 apparently the TDC calibration did not change.
if ( RunNumber >= 2102095 and RunNumber <= 2102992 ) :
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
FakeLArTimeOffset.FEbTimeOffsets += [ 0, 27.2448, 29.4475, 29.6399, 29.1952, 0, 0, 0, 29.6627, 0, 28.1106, 29.841, 0, 0, 0, 26.5562, 27.8388, 26.1255, 25.4838, 0, 0, 0, 26.4303, 0, 25.3316, 23.6475, 0, 0 ]
####################################################################################
#
# Timing Offset for OFC RTM at CTB2004 - TAG = TB04-XTC-01
#
# Last update: 07/11/08 (Marco.Delmastro@cern.ch)
#
####################################################################################
#import AthenaCommon.Logging.logging as logging
TimeOffsetsLog = logging.getLogger( "TimeOffsetsLog" )
TimeOffsetsLog.info( "Loading LAr RTM OFC Timing Offsets ..." )
theApp.Dlls += ["LArEventTest"]
theApp.TopAlg +=["FakeLArTimeOffset"]
FakeLArTimeOffset=Algorithm("FakeLArTimeOffset")
FakeLArTimeOffset.OutputLevel = INFO
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
#
# Period 1 - july 4th to 12th - runs 1000055 to 1000460 - eta>0.8
#
if ( RunNumber >= 1000055 and RunNumber <= 1000460 ):
TimeOffsetsLog.error( "==================================================" )
TimeOffsetsLog.error( " *** There is no TDC information for this run *** " )
TimeOffsetsLog.error( " WARNING: you should NOT USE the LAr OFC! " )
TimeOffsetsLog.error( " use LAr Parabola instead... " )
TimeOffsetsLog.error( "==================================================" )
theApp.exit()
#
# Period 2 - july 12th to 14th - runs 1000463 to 1000622 - 0.6<eta<1.2
#
if ( RunNumber >= 1000463 and RunNumber <= 1000622 ) :
TimeOffsetsLog.error( "==================================================" )
TimeOffsetsLog.error( " *** There is no TDC information for this run *** " )
TimeOffsetsLog.error( " WARNING: you should NOT USE the LAr OFC! " )
TimeOffsetsLog.error( " use LAr Parabola instead... " )
TimeOffsetsLog.error( "==================================================" )
theApp.exit()
#
# Period 3 - july 26th to aug. 4th - runs 1000623 to 1000797 - 0.6<eta<1.2
#
if ( RunNumber >= 1000623 and RunNumber <= 1000797 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 9.12457, 0, 0, 0, 6.4031, 17.937, 13.4905, 0, 0, 21.7917, 0, 14.4521, 22.9186, 0, 7.66525, 0, 0, 0, 3.53704, 10.3822, 10.0713, 0, 0, 13.2385, 0, 0.856282, 14.6482, 0 ]
#
# Period 4 - aug. 4th to 6th - runs 1000813 to 1000918 - eta<0.8
#
if ( RunNumber >= 1000813 and RunNumber <= 1000918 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 17.208, 8.9668, 13.5626, 12.4822, 13.5481, 0, 0, 0, 18.6778, 0, 14.3852, 20.0047, 0, 0, 14.5839, 0, 9.57931, 6.39737, 0, 0, 0, 0, 12.1581, 0, 11.4929, 14.1324, 0, 0 ]
#
# Period 5 - aug. 6th to 9th - runs 1000919 to 1001056 - eta<0.8
#
#
# Period 5-1
#
if ( RunNumber >= 1000919 and RunNumber <= 1000992 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 12.6125, 5.01215, 8.91651, 8.35728, 0, 0, 0, 0, 15.4795, 0, 8.56977, 15.9266, 0, 0, 11.7587, 3.30198, 6.55056, 3.73762, 0, 0, 0, 0, 9.23579, 0, 10.0965, 6.90427, 0, 0 ]
#
# Period 5-2
#
if ( RunNumber >= 1000993 and RunNumber <= 1001024 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 12.4709, 6.0713, 9.38452, 8.14928, 10.9463, 0, 0, 0, 14.7753, 0, 10.326, 15.7085, 0, 0, 11.6949, 2.5867, 6.82234, 3.48904, 4.94293, 0, 0, 0, 9.15069, 0, 8.61919, 11.019, 0, 0 ]
#
# Period 5-3
#
if ( RunNumber >= 1001028 and RunNumber <= 1001056 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 13.2707, 8.15598, 9.10758, 8.70479, 0, 0, 0, 0, 15.8411, 0, 8.95327, 16.6244, 0, 0, 12.4724, 5.89879, 6.72635, 4.16617, 0, 0, 0, 0, 9.71259, 0, 10.3519, 7.48193, 0, 0 ]
#
# Period 6a - aug. 23rd to sep. 1st - runs 1002007 to 1004234 - eta<0.8
#
if ( RunNumber >= 1002007 and RunNumber <= 1004234 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 15.5743, 10.1416, 12.13, 10.9995, 0, 0, 0, 0, 18.183, 0, 13.2211, 17.519, 0, 0, 14.2902, 9.45329, 10.5642, 6.19042, 0, 0, 0, 0, 14.3618, 0, 9.30381, 8.87977, 0, 0 ]
#
# Period 6b - aug. 23rd to sep.15th - runs 2100024 to 2100482 - eta<0.8
#
#
# Period 6b-1
#
if ( RunNumber >= 2100024 and RunNumber <= 2100110 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 6.37493, 8.9486, 0, -0.719012, 0, 0, 0, 0, 7.14147, 0, 3.01042, 0, 0, 0, 4.3145, 14.3674, 0, 5.56709, 0, 0, 0, 0, 0, 0, 14.9534, 4.86584, 0, 0 ]
#
# Period 6b-2
#
if ( RunNumber >= 2100132 and RunNumber <= 2100253 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 5.59378, 8.36946, 2.19354, 0, 0, 0, 0, 0, 7.01639, 0, 2.84425, 8.11718, 0, 0, 4.10071, 11.5669, 0, -3.98934, 0, 0, 0, 0, 2.29326, 0, 4.95207, 0, 0, 0 ]
#
# Period 6b-3
#
if ( RunNumber >= 2100254 and RunNumber <= 2100510 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 9.00597, 14.3744, 6.80893, 6.77274, 8.33551, 0, 0, 0, 10.0902, 0, 8.14654, 12.2106, 0, 0, 7.85525, 3.32489, 4.95314, 2.08016, 2.75046, 0, 0, 0, 5.57, 0, 9.77459, 12.8408, 0, 0 ]
#
# Period 6b-4
#
if ( RunNumber >= 2100513 and RunNumber <= 2100540 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 9.20266, 14.6736, 7.03955, 7.16821, 7.84435, 0, 0, 0, 8.14448, 0, 8.27385, 12.4297, 0, 0, 7.94724, 3.7521, 3.663, 2.66425, 2.31169, 0, 0, 0, 5.94724, 0, 9.58, 13.2758, 0, 0 ]
#
# Period 7 - sep. 15th to 24th - runs 2100558 to 2100975 - eta>0.8
#
if ( RunNumber >= 2100558 and RunNumber <= 2100975 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 12.0864, 0, 0, 0, 0, 5.07748, 5.99226, 5.13119, 0, 10.2989, 0, 0, 17.8728, 8.86842, 9.71111, 0, 0, 0, 0, 2.89255, 2.88127, 1.85509, 0, 5.15832, 0, 0, 6.9436, 0 ]
if ( ( RunNumber >= 2100683 and RunNumber <= 2100750 ) or ( RunNumber >= 2100767 and RunNumber <= 2100975 ) ) :
TimeOffsetsLog.warning( "=========================================================" )
TimeOffsetsLog.warning( " *** WARNING: There are known LAr reconstruction problems" )
TimeOffsetsLog.warning( " for this run ("+str(RunNumber)+") using RTM OFCs" )
TimeOffsetsLog.warning( "=========================================================" )
#
# Period 8 - sep. 24th to nov. 15th - runs 2101022 to 2102992 - eta<0.8
#
#
# Period 8-1 (Low energy Period 8 subperiod, with known timing problems)
#
if ( RunNumber >= 2101022 and RunNumber <= 2101475 ) :
TimeOffsetsLog.warning( "====================================================" )
TimeOffsetsLog.warning( " *** WARNING: this run has known LAr timing problems" )
TimeOffsetsLog.warning( "====================================================" )
FakeLArTimeOffset.FEbTimeOffsets += [ 6.45155, 0, 1.64139, 3.69562, 3.31206, 0, 0, 0, 7.73846, 0, 0, 8.8356, 0, 0, 4.45888, 0, 5.11078, 6.33597, 4.61353, 0, 0, 0, 2.44879, 0, 1.73488, 0, 0, 0 ]
#
# Period 8-2 ("25 ns" subperiod)
#
if ( RunNumber >= 2101571 and RunNumber <= 2101737 ) :
TimeOffsetsLog.error( "================================================" )
TimeOffsetsLog.error( " *** WARNING: you are attempting to reconstruct " )
TimeOffsetsLog.error( " *** a 25-ns run using LAr RTM OFC... " )
TimeOffsetsLog.error( " *** ---> Please contact a LAr expert " )
TimeOffsetsLog.error( "================================================" )
theApp.exit()
#
# Period 8-3
#
# Note: for all the rest of Period8 apparently the TDC calibration did not change.
if ( RunNumber >= 2102095 and RunNumber <= 2102992 ) :
FakeLArTimeOffset.FEbTimeOffsets += [ 14.5649, 8.38324, 10.7725, 10.5281, 11.9622, 0, 0, 0, 15.0243, 0, 12.5471, 16.6507, 0, 0, 13.3245, 7.68256, 9.8261, 6.93204, 6.21907, 0, 0, 0, 10.9302, 0, 9.49009, 8.05296, 0, 0 ]
####################################################################################
# End of LArTimeOffsets_OFC_RTM_TB04-XTC-01.py
####################################################################################
####################################################################################
#
# Timing Offset for OFC RTM at CTB2004 - TAG = TB04-XTC-02
#
# Last update: 07/11/08 (Marco.Delmastro@cern.ch)
#
####################################################################################
#import AthenaCommon.Logging.logging as logging
TimeOffsetsLog = logging.getLogger( "TimeOffsetsLog" )
TimeOffsetsLog.info( "Loading LAr RTM OFC Timing Offsets ..." )
theApp.Dlls += ["LArEventTest"]
theApp.TopAlg +=["FakeLArTimeOffset"]
FakeLArTimeOffset=Algorithm("FakeLArTimeOffset")
FakeLArTimeOffset.OutputLevel = INFO
FakeLArTimeOffset.GlobalTimeOffset = 0.
FakeLArTimeOffset.FEBids += [ 0x39000000, 0x39008000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000, 0x39080000, 0x39088000, 0x39090000, 0x39098000, 0x390a0000, 0x390a8000, 0x390b0000, 0x390b8000, 0x390c0000, 0x390c8000, 0x390d0000, 0x390d8000, 0x390e0000, 0x390e8000 ]
#
# Period 1 - july 4th to 12th - runs 1000055 to 1000460 - eta>0.8
#
if ( RunNumber >= 1000055 and RunNumber <= 1000460 ):
TimeOffsetsLog.error( "==================================================" )
TimeOffsetsLog.error( " *** There is no TDC information for this run *** " )
TimeOffsetsLog.error( " WARNING: you should NOT USE the LAr OFC! " )
TimeOffsetsLog.error( " use LAr Parabola instead... " )
TimeOffsetsLog.error( "==================================================" )
theApp.exit()
#
# Period 2 - july 12th to 14th - runs 1000463 to 1000622 - 0.6<eta<1.2
#
if ( RunNumber >= 1000463 and RunNumber <= 1000622 ) :
TimeOffsetsLog.error( "==================================================" )
TimeOffsetsLog.error( " *** There is no TDC information for this run *** " )
TimeOffsetsLog.error( " WARNING: you should NOT USE the LAr OFC! " )
TimeOffsetsLog.error( " use LAr Parabola instead... " )
TimeOffsetsLog.error( "==================================================" )
theApp.exit()
#
# Period 3 - july 26th to aug. 4th - runs 1000623 to 1000797 - 0.6<eta<1.2
#
if ( RunNumber >= 1000623 and RunNumber <= 1000797 ) :
#
# Period 4 - aug. 4th to 6th - runs 1000813 to 1000918 - eta<0.8
#
if ( RunNumber >= 1000813 and RunNumber <= 1000918 ) :
#
# Period 5 - aug. 6th to 9th - runs 1000919 to 1001056 - eta<0.8
#
#
# Period 5-1
#
if ( RunNumber >= 1000919 and RunNumber <= 1000992 ) :
#
# Period 5-2
#
if ( RunNumber >= 1000993 and RunNumber <= 1001024 ) :
#
# Period 5-3
#
if ( RunNumber >= 1001028 and RunNumber <= 1001056 ) :
#
# Period 6a - aug. 23rd to sep. 1st - runs 1002007 to 1004234 - eta<0.8
#
if ( RunNumber >= 1002007 and RunNumber <= 1004234 ) :
#
# Period 6b - aug. 23rd to sep.15th - runs 2100024 to 2100482 - eta<0.8
#
#
# Period 6b-1
#
if ( RunNumber >= 2100024 and RunNumber <= 2100110 ) :
#
# Period 6b-2
#
if ( RunNumber >= 2100132 and RunNumber <= 2100253 ) :
#
# Period 6b-3
#
if ( RunNumber >= 2100254 and RunNumber <= 2100510 ) :
#
# Period 6b-4
#
if ( RunNumber >= 2100513 and RunNumber <= 2100540 ) :
#
# Period 7 - sep. 15th to 24th - runs 2100558 to 2100975 - eta>0.8
#
if ( RunNumber >= 2100558 and RunNumber <= 2100975 ) :
if ( ( RunNumber >= 2100683 and RunNumber <= 2100750 ) or ( RunNumber >= 2100767 and RunNumber <= 2100975 ) ) :
TimeOffsetsLog.warning( "=========================================================" )
TimeOffsetsLog.warning( " *** WARNING: There are known LAr reconstruction problems" )
TimeOffsetsLog.warning( " for this run ("+str(RunNumber)+") using RTM OFCs" )
TimeOffsetsLog.warning( "=========================================================" )
#
# Period 8 - sep. 24th to nov. 15th - runs 2101022 to 2102992 - eta<0.8
#
#
# Period 8-1 (Low energy Period 8 subperiod, with known timing problems)
#
if ( RunNumber >= 2101022 and RunNumber <= 2101475 ) :
TimeOffsetsLog.warning( "====================================================" )
TimeOffsetsLog.warning( " *** WARNING: this run has known LAr timing problems" )
TimeOffsetsLog.warning( "====================================================" )
#
# Period 8-2 ("25 ns" subperiod)
#
if ( RunNumber >= 2101571 and RunNumber <= 2101737 ) :
TimeOffsetsLog.error( "================================================" )
TimeOffsetsLog.error( " *** WARNING: you are attempting to reconstruct " )
TimeOffsetsLog.error( " *** a 25-ns run using LAr RTM OFC... " )
TimeOffsetsLog.error( " *** ---> Please contact a LAr expert " )
TimeOffsetsLog.error( "================================================" )
theApp.exit()
#
# Period 8-3
#
# Note: for all the rest of Period8 apparently the TDC calibration did not change.
if ( RunNumber >= 2102095 and RunNumber <= 2102992 ) :
####################################################################################
# End of LArTimeOffsets_OFC_RTM_TB04-XTC-02.py
####################################################################################
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment