ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
(
const
EventContext& ctx) {
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
, ctx};
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
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition
AthMsgStreamMacros.h:33
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
CSCConditionsTestAlgMT.h
ss
static Double_t ss
Definition
LArPhysWaveHECTool.cxx:37
sc
static Double_t sc
Definition
LArPhysWaveHECTool.cxx:37
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
CSCConditionsTestAlgMT::~CSCConditionsTestAlgMT
virtual ~CSCConditionsTestAlgMT()
CSCConditionsTestAlgMT::m_readKey
SG::ReadCondHandleKey< CscCondDbData > m_readKey
Definition
CSCConditionsTestAlgMT.h:36
CSCConditionsTestAlgMT::initialize
StatusCode initialize() override
Definition
CSCConditionsTestAlgMT.cxx:14
CSCConditionsTestAlgMT::execute
StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
CSCConditionsTestAlgMT.cxx:21
CSCConditionsTestAlgMT::CSCConditionsTestAlgMT
CSCConditionsTestAlgMT(const std::string &name, ISvcLocator *pSvcLocator)
Definition
CSCConditionsTestAlgMT.cxx:8
CscCondDbData
Definition
CscCondDbData.h:26
CscCondDbData::getChannelT0Phase
const bool & getChannelT0Phase(IdentifierHash) const
Definition
CscCondDbData.cxx:242
CscCondDbData::getChannelPed
const float & getChannelPed(IdentifierHash) const
Definition
CscCondDbData.cxx:207
CscCondDbData::getChannelPSlope
const float & getChannelPSlope(IdentifierHash) const
Definition
CscCondDbData.cxx:214
CscCondDbData::getChannelStatus
const int & getChannelStatus(IdentifierHash) const
Definition
CscCondDbData.cxx:228
CscCondDbData::getChannelF001
const float & getChannelF001(IdentifierHash) const
Definition
CscCondDbData.cxx:193
CscCondDbData::isGoodChannelHash
bool isGoodChannelHash(const IdentifierHash &) const
Definition
CscCondDbData.cxx:318
CscCondDbData::getChannelRMS
const float & getChannelRMS(IdentifierHash) const
Definition
CscCondDbData.cxx:221
CscCondDbData::getChannelNoise
const float & getChannelNoise(IdentifierHash) const
Definition
CscCondDbData.cxx:200
CscCondDbData::getChannelT0Base
const float & getChannelT0Base(IdentifierHash) const
Definition
CscCondDbData.cxx:235
SG::ReadCondHandle
Definition
ReadCondHandle.h:40
Generated on
for ATLAS Offline Software by
1.17.0