ATLAS Offline Software
MuonSpectrometer
MuonCalib
MuonCalibDbOperations
python
MuonCalibConvertTimeSlewing.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
2
3
import
math
4
5
GasmonDriftTimeOffsetsVsR_total = [ -5.45973, -4.57559, -3.71995, -3.45051, -3.4505, -3.4834, -3.59509, -3.74869, -3.92066, -4.10799, -4.35237, -4.61329, -4.84111, -5.14524 ]
6
7
GasmonDriftTimeOffsetT0=GasmonDriftTimeOffsetsVsR_total[0]
8
9
GasmonDriftTimeOffsetsVsR=[]
10
for
x
in
GasmonDriftTimeOffsetsVsR_total:
11
GasmonDriftTimeOffsetsVsR.append(x - GasmonDriftTimeOffsetT0)
12
13
def
GetRBin
(r):
14
if
r<=0:
15
return
0
16
if
r>=14.6:
17
return
len(GasmonDriftTimeOffsetsVsR) -1
18
return
int
(math.floor(r/14.6 * len(GasmonDriftTimeOffsetsVsR)))
19
20
21
def
Ts2NoTs
(r, t):
22
return
t - GasmonDriftTimeOffsetsVsR[
GetRBin
(r)]
23
24
def
NoTs2Ts
(r, t):
25
return
t + GasmonDriftTimeOffsetsVsR[
GetRBin
(r)]
26
27
def
TimeSlewingApplied
(obj):
28
return
bool
(obj.payload()[
'tech'
] & 0x10)
29
30
31
32
MuonCalibConvertTimeSlewing.NoTs2Ts
def NoTs2Ts(r, t)
Definition:
MuonCalibConvertTimeSlewing.py:24
CaloCellPos2Ntuple.int
int
Definition:
CaloCellPos2Ntuple.py:24
MuonCalibConvertTimeSlewing.TimeSlewingApplied
def TimeSlewingApplied(obj)
Definition:
MuonCalibConvertTimeSlewing.py:27
MuonCalibConvertTimeSlewing.GetRBin
def GetRBin(r)
Definition:
MuonCalibConvertTimeSlewing.py:13
MuonCalibConvertTimeSlewing.Ts2NoTs
def Ts2NoTs(r, t)
Definition:
MuonCalibConvertTimeSlewing.py:21
xAOD::bool
setBGCode setTAP setLVL2ErrorBits bool
Definition:
TrigDecision_v1.cxx:60
Generated on Thu Nov 7 2024 21:21:43 for ATLAS Offline Software by
1.8.18