ATLAS Offline Software
Loading...
Searching...
No Matches
RPCDigitVariables.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MuonPRDTEST_RPCDigitVARIABLES_H
6#define MuonPRDTEST_RPCDigitVARIABLES_H
7
11namespace MuonPRDTest {
13 public:
14 RpcDigitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
15
16 ~RpcDigitVariables() = default;
17
18 bool fill(const EventContext& ctx) override final;
19
20 bool declare_keys() override final;
21
22 private:
23 SG::ReadHandleKey<RpcDigitContainer> m_key{};
24 ScalarBranch<unsigned int>& m_RPC_nDigits{parent().newScalar<unsigned int>("N_Digits_RPC")};
25 VectorBranch<float>& m_RPC_dig_time{parent().newVector<float>("Digits_RPC_time")};
26 VectorBranch<float>& m_RPC_tot{parent().newVector<float>("Digits_RPC_timeOverThresh")};
27 ThreeVectorBranch m_RPC_dig_globalPos{parent(), "Digits_RPC_globalPos"};
28 TwoVectorBranch m_RPC_dig_localPos{parent(), "Digits_RPC_localPos"};
30 };
31} // namespace MuonPRDTest
32#endif // MuonPRDTEST_RPCDigitVARIABLES_H
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
VectorBranch< float > & m_RPC_dig_time
RpcDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
ScalarBranch< unsigned int > & m_RPC_nDigits
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_RPC_tot
SG::ReadHandleKey< RpcDigitContainer > m_key
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)
Use IdentifiableContainer with RpcDigitCollection.
Forward declaration.
#define private