ATLAS Offline Software
Loading...
Searching...
No Matches
MdtCalibDbAlgTest.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONVALR4_MDTCALIBDBALGTEST_H
6#define MUONVALR4_MDTCALIBDBALGTEST_H
7
8// Framework includes
13#include "GaudiKernel/ToolHandle.h"
14
19
21
22class TH2D;
23
24namespace MuonValR4{
26 public:
28 virtual ~MdtCalibDbAlgTest() = default;
29
30 virtual StatusCode initialize() override;
31 virtual StatusCode execute() override;
32 virtual StatusCode finalize() override;
33
34 private:
35 //Retrieve the xAODMdtCircles container
37 "Key to the uncalibrated Drift circle measurements"};
38 SG::ReadHandleKey<ActsTrk::GeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
40 ToolHandle<IMdtCalibrationTool> m_calibrationTool{this, "CalibrationTool", "MdtCalibrationTool"};
41 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}; MuonVal::MuonTesterTree m_tree{"MdtCalibDbAlg", "MdtCalibDbAlgTest"};
42
43 MuonVal::ScalarBranch<float>& m_out_tdcAdj{m_tree.newScalar<float>("tdcAdj")};
45 MuonVal::ScalarBranch<float>& m_out_driftRadius{m_tree.newScalar<float>("driftRadius")};
46 MuonVal::ScalarBranch<float>& m_out_driftVelocity{m_tree.newScalar<float>("driftVelocity")};
47 MuonVal::ScalarBranch<float>& m_out_driftTime{m_tree.newScalar<float>("driftTime")};
48
49 MuonVal::ScalarBranch<uint8_t>& m_out_stIndex{m_tree.newScalar<uint8_t>("stationIndex")};
50 MuonVal::ScalarBranch<int16_t>& m_out_stEta{m_tree.newScalar<int16_t>("stationEta")};
51 MuonVal::ScalarBranch<uint8_t>& m_out_stPhi{m_tree.newScalar<uint8_t>("stationPhi")};
52 MuonVal::ScalarBranch<uint8_t>& m_out_ml{m_tree.newScalar<uint8_t>("multiLayer")};
53 MuonVal::ScalarBranch<uint8_t>& m_out_tl{m_tree.newScalar<uint8_t>("tubeLayer")};
54 MuonVal::ScalarBranch<uint8_t>& m_out_tube{m_tree.newScalar<uint8_t>("tube")};
55
56
57 MuonVal::ScalarBranch<float>& m_out_globalPos{m_tree.newScalar<float>("globalPos")};
58 MuonVal::ScalarBranch<float>& m_out_globalPosX{m_tree.newScalar<float>("globalPosX")};
59 MuonVal::ScalarBranch<float>& m_out_globalPosY{m_tree.newScalar<float>("globalPosY")};
60 MuonVal::ScalarBranch<float>& m_out_globalPosZ{m_tree.newScalar<float>("globalPosZ")};
61 MuonVal::ScalarBranch<float>& m_out_tubeLength{m_tree.newScalar<float>("tubeLength")};
62
63 };
64}
65#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
MuonVal::ScalarBranch< float > & m_out_driftTime
MuonVal::ScalarBranch< float > & m_out_globalPosZ
SG::ReadHandleKey< xAOD::MdtDriftCircleContainer > m_MdtKey
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
MuonVal::ScalarBranch< float > & m_out_globalPos
virtual StatusCode execute() override
MuonVal::ScalarBranch< float > & m_out_tubeLength
MuonVal::ScalarBranch< float > & m_out_driftRadius
virtual ~MdtCalibDbAlgTest()=default
MuonVal::ScalarBranch< uint8_t > & m_out_ml
MuonVal::ScalarBranch< uint8_t > & m_out_stPhi
virtual StatusCode initialize() override
MuonVal::ScalarBranch< float > & m_out_driftVelocity
MuonVal::ScalarBranch< int16_t > & m_out_stEta
virtual StatusCode finalize() override
MuonVal::ScalarBranch< uint8_t > & m_out_tube
MuonVal::ScalarBranch< uint8_t > & m_out_stIndex
MuonVal::ScalarBranch< float > & m_out_tdc
MuonVal::ScalarBranch< float > & m_out_globalPosY
SG::ReadHandleKey< ActsTrk::GeometryContext > m_geoCtxKey
ToolHandle< IMdtCalibrationTool > m_calibrationTool
pointer to MdtCalibSvc
MuonVal::ScalarBranch< float > & m_out_globalPosX
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
MuonVal::MuonTesterTree m_tree
MuonVal::ScalarBranch< float > & m_out_tdcAdj
MuonVal::ScalarBranch< uint8_t > & m_out_tl
Property holding a SG store/key/clid from which a ReadHandle is made.
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...