ATLAS Offline Software
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondTest
src
CSCConditionsTestAlgMT.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
CSCConditionsTestAlgMT.h
"
6
7
// Constructor
8
CSCConditionsTestAlgMT::CSCConditionsTestAlgMT
(
const
std::string&
name
, ISvcLocator* pSvcLocator) :
AthAlgorithm
(
name
, pSvcLocator) {}
9
10
// Destructor
11
CSCConditionsTestAlgMT::~CSCConditionsTestAlgMT
() =
default
;
12
13
// Initialize
14
StatusCode
CSCConditionsTestAlgMT::initialize
() {
15
ATH_MSG_INFO
(
"Calling initialize"
);
16
ATH_CHECK
(
m_readKey
.
initialize
());
17
return
StatusCode::SUCCESS;
18
}
19
20
// Execute
21
StatusCode
CSCConditionsTestAlgMT::execute
() {
22
StatusCode
sc
(StatusCode::SUCCESS);
23
24
ATH_MSG_INFO
(
"Calling execute"
);
25
std::stringstream
ss
;
26
ss
<<
"Now setting up read handle: "
;
27
SG::ReadCondHandle<CscCondDbData>
readHandle{
m_readKey
};
28
const
CscCondDbData
* readCdo{*readHandle};
29
if
(readCdo ==
nullptr
) {
30
ss
<<
"DID NOT WORK!"
;
31
ATH_MSG_INFO
(
ss
.str());
32
ATH_MSG_ERROR
(
"Null pointer to the read conditions object"
);
33
return
StatusCode::FAILURE;
34
}
else
{
35
ss
<<
"WORKED!"
;
36
ATH_MSG_INFO
(
ss
.str());
37
}
38
39
ss
.clear();
40
41
unsigned
int
hash
= 24903;
42
ATH_MSG_INFO
(
"Focussing on channel with hash "
<<
hash
);
43
ATH_MSG_INFO
(
"Reading F001 =====> "
<< readCdo->getChannelF001(
hash
));
44
ATH_MSG_INFO
(
"Reading Noise ====> "
<< readCdo->getChannelNoise(
hash
));
45
ATH_MSG_INFO
(
"Reading Pedestal => "
<< readCdo->getChannelPed(
hash
));
46
ATH_MSG_INFO
(
"Reading PSlope ===> "
<< readCdo->getChannelPSlope(
hash
));
47
ATH_MSG_INFO
(
"Reading RMS ======> "
<< readCdo->getChannelRMS(
hash
));
48
ATH_MSG_INFO
(
"Reading Status ===> "
<< readCdo->getChannelStatus(
hash
));
49
ATH_MSG_INFO
(
"Reading T0Base ===> "
<< readCdo->getChannelT0Base(
hash
));
50
ATH_MSG_INFO
(
"Reading T0Phase ==> "
<< readCdo->getChannelT0Phase(
hash
));
51
ATH_MSG_INFO
(
"Is it Good? ======> "
<< readCdo->isGoodChannelHash(
hash
));
52
53
ATH_MSG_INFO
(
"MADE IT TO THE END!!"
);
54
return
sc
;
55
}
PowhegControl_ttHplus_NLO.ss
ss
Definition:
PowhegControl_ttHplus_NLO.py:83
SG::ReadCondHandle
Definition:
ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition:
AthMsgStreamMacros.h:31
CSCConditionsTestAlgMT::initialize
StatusCode initialize() override
Definition:
CSCConditionsTestAlgMT.cxx:14
CSCConditionsTestAlgMT::m_readKey
SG::ReadCondHandleKey< CscCondDbData > m_readKey
Definition:
CSCConditionsTestAlgMT.h:37
AthenaPoolTestRead.sc
sc
Definition:
AthenaPoolTestRead.py:27
CSCConditionsTestAlgMT::CSCConditionsTestAlgMT
CSCConditionsTestAlgMT(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
CSCConditionsTestAlgMT.cxx:8
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition:
AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
AthAlgorithm
Definition:
AthAlgorithm.h:47
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
CSCConditionsTestAlgMT::execute
StatusCode execute() override
Definition:
CSCConditionsTestAlgMT.cxx:21
CSCConditionsTestAlgMT.h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition:
CaloCondBlobAlgs_fillNoiseFromASCII.py:109
CSCConditionsTestAlgMT::~CSCConditionsTestAlgMT
virtual ~CSCConditionsTestAlgMT()
CscCondDbData
Definition:
CscCondDbData.h:24
Generated on Fri Jan 10 2025 21:08:44 for ATLAS Offline Software by
1.8.18