ATLAS Offline Software
L1DatabaseOverrideForDataTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
5 
10 
11 namespace LVL1 {
12 
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 
23 {
24 }
25 
26 // this tool only modifies ChanDefaults, the rest is a straight-copy of the input
28 {
29  return StatusCode::SUCCESS;
30 }
32 {
33  return StatusCode::SUCCESS;
34 }
36 {
37  return StatusCode::SUCCESS;
38 }
39 
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