ATLAS Offline Software
Loading...
Searching...
No Matches
MDTDigitVariables.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 MuonPRDTEST_MDTDigitVARIABLES_H
6#define MuonPRDTEST_MDTDigitVARIABLES_H
7
10namespace MuonPRDTest {
12 public:
13 MdtDigitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
14
15 ~MdtDigitVariables() = default;
16
17 bool fill(const EventContext& ctx) override final;
18
19 bool declare_keys() override final;
20
21 private:
22 SG::ReadHandleKey<MdtDigitContainer> m_digitKey{};
23
26
27 VectorBranch<float>& m_MDT_dig_time{parent().newVector<float>("Digits_MDT_time")};
28 VectorBranch<float>& m_MDT_dig_charge{parent().newVector<float>("Digits_MDT_charge")};
29 VectorBranch<int>& m_MDT_dig_numberOfMultilayers{parent().newVector<int>("Digits_MDT_numberOfMultilayers")};
30
31 ThreeVectorBranch m_MDT_dig_globalPos{parent(), "Digits_MDT_globalPos"};
32 ThreeVectorBranch m_MDT_dig_localTubePos{parent(), "Digits_MDT_localTubePos"};
33 };
34} // namespace MuonPRDTest
35#endif // MuonPRDTEST_MDTDigitVARIABLES_H
Use IdentifiableContainer with MdtDigitCollection.
MdtDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
bool fill(const EventContext &ctx) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
VectorBranch< float > & m_MDT_dig_time
SG::ReadHandleKey< MdtDigitContainer > m_digitKey
VectorBranch< float > & m_MDT_dig_charge
ScalarBranch< int > & m_MDT_nDigits
ThreeVectorBranch m_MDT_dig_localTubePos
VectorBranch< int > & m_MDT_dig_numberOfMultilayers
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Branch to store all information of the MDT identifier.
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
TTree * tree() override final
Returns the underlying TTree object.
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
ScalarBranch< T > & newScalar(const std::string &name)
Forward declaration.
#define private