ATLAS Offline Software
Loading...
Searching...
No Matches
CSCDigitVariables.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_CSCDigitVARIABLES_H
6#define MuonPRDTEST_CSCDigitVARIABLES_H
7
10namespace MuonPRDTest{
12 public:
13 CscDigitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
14
15 ~CscDigitVariables() = default;
16
17 bool fill(const EventContext& ctx) override final;
18
19 bool declare_keys() override final;
20
21 private:
22 SG::ReadHandleKey<CscDigitContainer> m_key{};
23 ScalarBranch<unsigned int>& m_CSC_nDigits{parent().newScalar<unsigned int>("N_Digits_CSC")};
24 VectorBranch<float>& m_CSC_dig_localPosX{parent().newVector<float>("Digits_CSC_localPosX")};
25 VectorBranch<float>& m_CSC_dig_localPosY{parent().newVector<float>("Digits_CSC_localPosY")};
26 ThreeVectorBranch m_CSC_dig_globalPos{parent(), "Digits_CSC_globalPos"};
28 };
29};
30
31#endif // MuonPRDTEST_CSCDigitVARIABLES_H
Use IdentifiableContainer with CscDigitCollection.
VectorBranch< float > & m_CSC_dig_localPosX
SG::ReadHandleKey< CscDigitContainer > m_key
VectorBranch< float > & m_CSC_dig_localPosY
CscDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
ScalarBranch< unsigned int > & m_CSC_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...
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Branch to store all information of the CscIdentifier.
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