ATLAS Offline Software
Trigger
TrigT1
TrigT1CaloTools
src
L1DatabaseOverrideForDataTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
L1DatabaseOverrideForDataTool.h
"
5
6
#include "
TrigT1CaloCalibConditions/L1CaloPprChanDefaultsContainer.h
"
7
#include "
TrigT1CaloCalibConditions/L1CaloPprChanCalibContainer.h
"
8
#include "
TrigT1CaloCalibConditions/L1CaloDisabledTowersContainer.h
"
9
#include "
TrigT1CaloCalibConditions/L1CaloPpmDeadChannelsContainer.h
"
10
11
namespace
LVL1
{
12
13
L1DatabaseOverrideForDataTool::L1DatabaseOverrideForDataTool
(
14
const
std::string&
t
,
15
const
std::string&
n
,
16
const
IInterface*
p
)
17
:
AthAlgTool
(
t
,
n
,
p
)
18
{
19
declareInterface<IL1DatabaseOverrideTool>(
this
);
20
}
21
22
L1DatabaseOverrideForDataTool::~L1DatabaseOverrideForDataTool
()
23
{
24
}
25
26
// this tool only modifies ChanDefaults, the rest is a straight-copy of the input
27
StatusCode
L1DatabaseOverrideForDataTool::modifyChanCalib
(
L1CaloPprChanCalibContainer
&)
28
{
29
return
StatusCode::SUCCESS;
30
}
31
StatusCode
L1DatabaseOverrideForDataTool::modifyDisabledTowers
(
L1CaloDisabledTowersContainer
&)
32
{
33
return
StatusCode::SUCCESS;
34
}
35
StatusCode
L1DatabaseOverrideForDataTool::modifyDeadChannels
(
L1CaloPpmDeadChannelsContainer
&)
36
{
37
return
StatusCode::SUCCESS;
38
}
39
40
StatusCode
L1DatabaseOverrideForDataTool::modifyChanDefaults
(
L1CaloPprChanDefaultsContainer
&
c
)
41
{
42
for
(
auto
&
chan
:
c
) {
43
// swap bcidDecision1 and bcidDecision3
44
auto
bcidDecision1 =
chan
.bcidDecision1(), bcidDecision3 =
chan
.bcidDecision3();
45
chan
.setBcidDecision1(bcidDecision3);
46
chan
.setBcidDecision3(bcidDecision1);
47
48
// swap satOverride1 and satOverride3
49
auto
satOverride1 =
chan
.satOverride1(), satOverride3 =
chan
.satOverride3();
50
chan
.setSatOverride1(satOverride3);
51
chan
.setSatOverride3(satOverride1);
52
}
53
return
StatusCode::SUCCESS;
54
}
55
56
}
// end of namespace LVL1
LVL1::L1DatabaseOverrideForDataTool::modifyDeadChannels
StatusCode modifyDeadChannels(L1CaloPpmDeadChannelsContainer &)
Definition:
L1DatabaseOverrideForDataTool.cxx:35
LVL1::L1DatabaseOverrideForDataTool::L1DatabaseOverrideForDataTool
L1DatabaseOverrideForDataTool(const std::string &, const std::string &, const IInterface *)
Definition:
L1DatabaseOverrideForDataTool.cxx:13
L1CaloDisabledTowersContainer
Definition:
L1CaloDisabledTowersContainer.h:27
LVL1::L1DatabaseOverrideForDataTool::modifyDisabledTowers
StatusCode modifyDisabledTowers(L1CaloDisabledTowersContainer &)
Definition:
L1DatabaseOverrideForDataTool.cxx:31
L1CaloDisabledTowersContainer.h
L1CaloPprChanDefaultsContainer
Definition:
L1CaloPprChanDefaultsContainer.h:27
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition:
ICMMCPHitsCnvTool.h:18
L1CaloPprChanCalibContainer.h
L1CaloPprChanCalibContainer
Definition:
L1CaloPprChanCalibContainer.h:27
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
ReadCellNoiseFromCool.chan
chan
Definition:
ReadCellNoiseFromCool.py:52
L1DatabaseOverrideForDataTool.h
beamspotman.n
n
Definition:
beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1::L1DatabaseOverrideForDataTool::modifyChanDefaults
StatusCode modifyChanDefaults(L1CaloPprChanDefaultsContainer &)
Definition:
L1DatabaseOverrideForDataTool.cxx:40
L1CaloPpmDeadChannelsContainer
Definition:
L1CaloPpmDeadChannelsContainer.h:27
L1CaloPpmDeadChannelsContainer.h
LVL1::L1DatabaseOverrideForDataTool::modifyChanCalib
StatusCode modifyChanCalib(L1CaloPprChanCalibContainer &)
Definition:
L1DatabaseOverrideForDataTool.cxx:27
LVL1::L1DatabaseOverrideForDataTool::~L1DatabaseOverrideForDataTool
virtual ~L1DatabaseOverrideForDataTool()
default destructor
Definition:
L1DatabaseOverrideForDataTool.cxx:22
AthAlgTool
Definition:
AthAlgTool.h:26
python.compressB64.c
def c
Definition:
compressB64.py:93
L1CaloPprChanDefaultsContainer.h
Generated on Mon Dec 23 2024 21:13:06 for ATLAS Offline Software by
1.8.18