ATLAS Offline Software
TGCPRDVariables.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_TGCPRDVARIABLES_H
6 #define MuonPRDTEST_TGCPRDVARIABLES_H
7 
11 
12 namespace MuonPRDTest{
14  public:
15  TGCPRDVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
16 
17  ~TGCPRDVariables() = default;
18 
19  bool fill(const EventContext& ctx) override final;
20 
21  bool declare_keys() override final;
22 
23  private:
24  SG::ReadHandleKey<Muon::TgcPrepDataContainer> m_key{};
25  ScalarBranch<unsigned int>& m_TGC_nPRD{parent().newScalar<unsigned int>("N_PRD_TGC")};
26 
27  ThreeVectorBranch m_TGC_PRD_globalPos{parent(), "PRD_TGC_globalPos"};
28  TwoVectorBranch m_TGC_PRD_localPos{parent(), "PRD_TGC_localPos"};
32  };
33 };
34 
35 #endif // MuonPRDTEST_TGCPRDVARIABLES_H
MuonVal::TgcIdentifierBranch
Branch to store all information of the TgcIdentifier.
Definition: IdentifierBranch.h:83
MuonPRDTest::TGCPRDVariables::m_TGC_nPRD
ScalarBranch< unsigned int > & m_TGC_nPRD
Definition: TGCPRDVariables.h:25
MuonPRDTest::TGCPRDVariables::m_TGC_PRD_localPos
TwoVectorBranch m_TGC_PRD_localPos
Definition: TGCPRDVariables.h:28
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
MuonPRDTest::TGCPRDVariables::TGCPRDVariables
TGCPRDVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: TGCPRDVariables.cxx:10
Muon::TgcPrepDataContainer
MuonPrepDataContainerT< TgcPrepData > TgcPrepDataContainer
Definition: MuonPrepDataContainer.h:97
MuonVal::VectorBranch< uint8_t >
MuonPRDTest::TGCPRDVariables
Definition: TGCPRDVariables.h:13
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::TGCPRDVariables::m_TGC_PRD_cov
VectorBranch< float > & m_TGC_PRD_cov
Definition: TGCPRDVariables.h:31
MuonPRDTest::TGCPRDVariables::m_TGC_PRD_bcId
VectorBranch< uint8_t > & m_TGC_PRD_bcId
Definition: TGCPRDVariables.h:30
TgcPrepDataContainer.h
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::TGCPRDVariables::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: TGCPRDVariables.cxx:14
MuonPRDTest::TGCPRDVariables::m_key
SG::ReadHandleKey< Muon::TgcPrepDataContainer > m_key
Definition: TGCPRDVariables.h:24
MuonPRDTest::TGCPRDVariables::m_TGC_PRD_id
TgcIdentifierBranch m_TGC_PRD_id
Definition: TGCPRDVariables.h:29
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::TGCPRDVariables::~TGCPRDVariables
~TGCPRDVariables()=default
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)
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::TGCPRDVariables::declare_keys
bool declare_keys() override final
Definition: TGCPRDVariables.cxx:12
MuonPRDTest
Definition: CSCDigitVariables.h:10
TwoVectorBranch.h
MuonPRDTest::TGCPRDVariables::m_TGC_PRD_globalPos
ThreeVectorBranch m_TGC_PRD_globalPos
Definition: TGCPRDVariables.h:27
MuonVal::TwoVectorBranch
Definition: TwoVectorBranch.h:15