ATLAS Offline Software
Loading...
Searching...
No Matches
sTGCDigitVariables.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_sTGCDigitVARIABLES_H
6#define MuonPRDTEST_sTGCDigitVARIABLES_H
7
10
11namespace MuonPRDTest{
13 public:
14 sTgcDigitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
15
17
18 bool fill(const EventContext& ctx) override final;
19
20 bool declare_keys() override final;
21
22 private:
23 SG::ReadHandleKey<sTgcDigitContainer> m_key{};
27 VectorBranch<double>& m_NSWsTGC_dig_charge{parent().newVector<double>("Digits_sTGC_charge")};
29 VectorBranch<bool>& m_NSWsTGC_dig_isPileup{parent().newVector<bool>("Digits_sTGC_isPileup")};
30 VectorBranch<int>& m_NSWsTGC_dig_channelNumber{parent().newVector<int>("Digits_sTGC_channelNumber")};
32 ThreeVectorBranch m_NSWsTGC_dig_PadglobalCornerPos{parent(), "Digits_sTGC_PadglobalCornerPos"};
33 TwoVectorBranch m_NSWsTGC_dig_localPos{parent(), "Digits_sTGC_localPos"};
35 };
36};
37#endif // MuonPRDTEST_sTGCDigitVARIABLES_H
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
VectorBranch< int > & m_NSWsTGC_dig_bctag
SG::ReadHandleKey< sTgcDigitContainer > m_key
sTgcIdentifierBranch m_NSWsTGC_dig_id
VectorBranch< bool > & m_NSWsTGC_dig_isDead
sTgcDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
ScalarBranch< unsigned int > & m_NSWsTGC_nDigits
VectorBranch< double > & m_NSWsTGC_dig_time
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< int > & m_NSWsTGC_dig_channelNumber
VectorBranch< double > & m_NSWsTGC_dig_charge
ThreeVectorBranch m_NSWsTGC_dig_PadglobalCornerPos
VectorBranch< bool > & m_NSWsTGC_dig_isPileup
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 sTgcIdentifier.
Use IdentifiableContainer with sTgcDigitCollection.
Forward declaration.
#define private