ATLAS Offline Software
Loading...
Searching...
No Matches
TGCRDOVariables.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MuonPRDTEST_TGCRDOVARIABLES_H
6#define MuonPRDTEST_TGCRDOVARIABLES_H
7
11
12namespace MuonPRDTest{
14 public:
15 TGCRDOVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl, ServiceHandle<MuonTGC_CablingSvc> cabling_svc);
16
17 ~TGCRDOVariables() = default;
18
19 bool fill(const EventContext& ctx) override final;
20
21 bool declare_keys() override final;
22
23 private:
24 SG::ReadHandleKey<TgcRdoContainer> m_key{};
26 ScalarBranch<unsigned int>& m_TGC_nRDO{parent().newScalar<unsigned int>("N_RDO_TGC")};
31 };
32};
33
34#endif // MuonPRDTEST_TGCRDOVARIABLES_H
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
SG::ReadHandleKey< TgcRdoContainer > m_key
ThreeVectorBranch m_TGC_rdo_globalPos
TGCRDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl, ServiceHandle< MuonTGC_CablingSvc > cabling_svc)
VectorBranch< float > & m_TGC_rdo_localPosX
bool declare_keys() override final
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_TGC_rdo_localPosY
ServiceHandle< MuonTGC_CablingSvc > m_tgcCabling
ScalarBranch< unsigned int > & m_TGC_nRDO
TgcIdentifierBranch m_TGC_rdo_id
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)
Branch to store all information of the TgcIdentifier.
Forward declaration.
#define private