ATLAS Offline Software
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 
11 namespace 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"};
29  };
30 };
31 
32 #endif // MuonPRDTEST_TGCDigitVARIABLES_H
MuonVal::TgcIdentifierBranch
Branch to store all information of the TgcIdentifier.
Definition: IdentifierBranch.h:83
MuonPRDTest::TgcDigitVariables
Definition: TGCDigitVariables.h:12
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
MuonVal::VectorBranch< uint8_t >
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::TgcDigitVariables::m_TGC_nDigits
ScalarBranch< unsigned int > & m_TGC_nDigits
Definition: TGCDigitVariables.h:24
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::TgcDigitVariables::TgcDigitVariables
TgcDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: TGCDigitVariables.cxx:9
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
PrdTesterModule.h
MuonVal::ScalarBranch< unsigned int >
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonPRDTest::TgcDigitVariables::fill
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...
Definition: TGCDigitVariables.cxx:12
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::TgcDigitVariables::declare_keys
bool declare_keys() override final
Definition: TGCDigitVariables.cxx:56
MuonPRDTest::TgcDigitVariables::m_TGC_dig_globalPos
ThreeVectorBranch m_TGC_dig_globalPos
Definition: TGCDigitVariables.h:25
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::TgcDigitVariables::m_key
SG::ReadHandleKey< TgcDigitContainer > m_key
Definition: TGCDigitVariables.h:23
TwoVectorBranch.h
TgcDigitContainer
Use IdentifiableContainer with TgcDigitCollection.
Definition: TgcDigitContainer.h:53
MuonPRDTest::TgcDigitVariables::m_TGC_dig_bcId
VectorBranch< uint8_t > & m_TGC_dig_bcId
Definition: TGCDigitVariables.h:27
TgcDigitContainer.h
MuonPRDTest::TgcDigitVariables::~TgcDigitVariables
~TgcDigitVariables()=default
MuonPRDTest::TgcDigitVariables::m_TGC_dig_localPos
TwoVectorBranch m_TGC_dig_localPos
Definition: TGCDigitVariables.h:26
MuonPRDTest::TgcDigitVariables::m_TGC_dig_id
TgcIdentifierBranch m_TGC_dig_id
Definition: TGCDigitVariables.h:28
MuonVal::TwoVectorBranch
Definition: TwoVectorBranch.h:15