ATLAS Offline Software
Loading...
Searching...
No Matches
MDTSDOVariables.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 MDTSDOVARIABLES_H
6#define MDTSDOVARIABLES_H
7
10namespace MuonPRDTest {
12 public:
13 MdtSDOVariables(MuonTesterTree& tree, const std::string& grp_name, MSG::Level msglvl);
14
15 ~MdtSDOVariables() = default;
16
17 bool fill(const EventContext& ctx) override final;
18
19 bool declare_keys() override final;
20
21 private:
23 ScalarBranch<unsigned int>& m_mdt_nsdo{parent().newScalar<unsigned int>("SDO_MDT_num")};
28 VectorBranch<float>& m_mdt_sdo_globalTime{parent().newVector<float>("SDO_MDT_globalTime")};
31 };
32} // namespace MuonPRDTest
33#endif // MDTSDOVARIABLES_H
VectorBranch< int > & m_mdt_sdo_word
SG::ReadHandleKey< MuonSimDataCollection > m_sdo_key
MdtIdentifierBranch m_mdt_sdo_id
VectorBranch< int > & m_mdt_sdo_barcode
ThreeVectorBranch m_mdt_sdo_globalPos
bool declare_keys() override final
MdtSDOVariables(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
VectorBranch< float > & m_mdt_sdo_localPosY
ScalarBranch< unsigned int > & m_mdt_nsdo
VectorBranch< float > & m_mdt_sdo_localPosX
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_sdo_globalTime
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