ATLAS Offline Software
NswCondTestAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef NswCondTestAlg_H
6 #define NswCondTestAlg_H
7 
8 // STL
9 #include <chrono>
10 #include <string>
11 
12 // Athena
14 #include "GaudiKernel/ServiceHandle.h"
19 #include "MuonCondData/Defs.h"
20 #include "MuonCondData/NswT0Data.h"
21 // Forward declarations
22 class ISvcLocator;
23 class StatusCode;
24 
26 public:
27  NswCondTestAlg(const std::string &name, ISvcLocator *pSvcLocator);
28  virtual ~NswCondTestAlg() override;
29 
30  virtual StatusCode initialize() override;
31  virtual StatusCode execute(const EventContext &) const override;
32 
33 private:
36 
37  StatusCode retrieveTdoPdo(const EventContext& ctx, TimeChargeType data, const std::string& tech,
38  const std::string& side, std::chrono::duration<double>& timer) const;
39  StatusCode retrieveVmm(const EventContext &, const std::string &, const std::string &, std::chrono::duration<double> &) const;
40  StatusCode retrieveT0(const EventContext &, std::chrono::duration<double> &) const;
41  std::string timestamp() const;
42 
44  this, "ReadKey_tdopdo", "NswCalibDbTimeChargeData",
45  "Key of NswCalibDbTimeChargeData object containing calibration data (TDOs and PDOs)"};
47  this, "ReadKey_vmm", "NswCalibDbThresholdData",
48  "Key of NswCalibDbThresholdData object containing calibration data (VMM thresholds)"};
49  SG::ReadCondHandleKey<NswT0Data> m_readKey_t0{this, "readKey_t0", "NswT0Data", "Key of NswT0Data containing the t0 calibration data"};
50 
51  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
52 
53  Gaudi::Property<std::string> m_logName{this,"LogName", "LogFile", "Name of the log file. The file creating the TimeCharge log will be called <LogName>_TDO.txt, the other will be <LogName>_vmm.txt"};
54  Gaudi::Property<bool> m_isMC {this, "isMC", false, "flagging the input type"};
55 
56 }; // end of class
57 
58 #endif
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
NswCalibDbTimeChargeData.h
NswCondTestAlg::initialize
virtual StatusCode initialize() override
Definition: NswCondTestAlg.cxx:32
NswCalibDbTimeChargeData::CalibDataType
CalibDataType
Definition: NswCalibDbTimeChargeData.h:22
NswCondTestAlg::m_logName
Gaudi::Property< std::string > m_logName
Definition: NswCondTestAlg.h:53
python.utils.AtlRunQueryTimer.timer
def timer(name, disabled=False)
Definition: AtlRunQueryTimer.py:86
NswCondTestAlg::~NswCondTestAlg
virtual ~NswCondTestAlg() override
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TRT::Hit::side
@ side
Definition: HitInfo.h:83
NswCondTestAlg::timestamp
std::string timestamp() const
Definition: NswCondTestAlg.cxx:287
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadCondHandleKey.h
AthReentrantAlgorithm.h
Defs.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
NswCondTestAlg::retrieveTdoPdo
StatusCode retrieveTdoPdo(const EventContext &ctx, TimeChargeType data, const std::string &tech, const std::string &side, std::chrono::duration< double > &timer) const
Definition: NswCondTestAlg.cxx:116
NswCondTestAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: NswCondTestAlg.h:51
NswCondTestAlg::m_readKey_t0
SG::ReadCondHandleKey< NswT0Data > m_readKey_t0
Definition: NswCondTestAlg.h:49
NswCondTestAlg::retrieveT0
StatusCode retrieveT0(const EventContext &, std::chrono::duration< double > &) const
Definition: NswCondTestAlg.cxx:231
SG::ReadCondHandleKey< NswCalibDbTimeChargeData >
NswT0Data.h
NswCondTestAlg::m_readKey_vmm
SG::ReadCondHandleKey< NswCalibDbThresholdData > m_readKey_vmm
Definition: NswCondTestAlg.h:46
MuonCond::CalibTechType
CalibTechType
Definition: MuonSpectrometer/MuonConditions/MuonCondGeneral/MuonCondData/MuonCondData/Defs.h:37
NswCondTestAlg::m_isMC
Gaudi::Property< bool > m_isMC
Definition: NswCondTestAlg.h:54
NswCondTestAlg::retrieveVmm
StatusCode retrieveVmm(const EventContext &, const std::string &, const std::string &, std::chrono::duration< double > &) const
Definition: NswCondTestAlg.cxx:177
NswCondTestAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition: NswCondTestAlg.cxx:42
NswCondTestAlg::NswCondTestAlg
NswCondTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: NswCondTestAlg.cxx:26
NswCondTestAlg
Definition: NswCondTestAlg.h:25
IMuonIdHelperSvc.h
NswCalibDbThresholdData.h
NswCondTestAlg::m_readKey_tdopdo
SG::ReadCondHandleKey< NswCalibDbTimeChargeData > m_readKey_tdopdo
Definition: NswCondTestAlg.h:43
ServiceHandle< Muon::IMuonIdHelperSvc >