ATLAS Offline Software
Loading...
Searching...
No Matches
TGCDigitVariables.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_TGCDigitVARIABLES_H
6#define MuonPRDTEST_TGCDigitVARIABLES_H
7
11namespace MuonPRDTest{
13 public:
14 TgcDigitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
15
16 ~TgcDigitVariables() = default;
17
18 bool fill(const EventContext& ctx) override final;
19
20 bool declare_keys() override final;
21
22 private:
23 SG::ReadHandleKey<TgcDigitContainer> m_key{};
24 ScalarBranch<unsigned int>& m_TGC_nDigits{parent().newScalar<unsigned int>("N_Digits_TGC")};
25 ThreeVectorBranch m_TGC_dig_globalPos{parent(), "Digits_TGC_globalPos"};
26 TwoVectorBranch m_TGC_dig_localPos{parent(), "Digits_TGC_localPos"};
27 VectorBranch<uint8_t>& m_TGC_dig_bcId{parent().newVector<uint8_t>("Digits_TGC_bcId")};
29 };
30};
31
32#endif // MuonPRDTEST_TGCDigitVARIABLES_H
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
TgcDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
ScalarBranch< unsigned int > & m_TGC_nDigits
VectorBranch< uint8_t > & m_TGC_dig_bcId
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...
SG::ReadHandleKey< TgcDigitContainer > 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)
Branch to store all information of the TgcIdentifier.
Use IdentifiableContainer with TgcDigitCollection.
Forward declaration.
#define private