ATLAS Offline Software
TGCRDOVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MuonPRDTEST_TGCRDOVARIABLES_H
6 #define MuonPRDTEST_TGCRDOVARIABLES_H
7 
11 
12 namespace MuonPRDTest{
14  public:
15  TGCRDOVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl, ServiceHandle<MuonTGC_CablingSvc> cabling_svc);
16 
17  ~TGCRDOVariables() = default;
18 
19  bool fill(const EventContext& ctx) override final;
20 
21  bool declare_keys() override final;
22 
23  private:
24  SG::ReadHandleKey<TgcRdoContainer> m_key{};
26  ScalarBranch<unsigned int>& m_TGC_nRDO{parent().newScalar<unsigned int>("N_RDO_TGC")};
27  VectorBranch<float>& m_TGC_rdo_localPosX{parent().newVector<float>("RDO_TGC_localPosX")};
28  VectorBranch<float>& m_TGC_rdo_localPosY{parent().newVector<float>("RDO_TGC_localPosY")};
29  ThreeVectorBranch m_TGC_rdo_globalPos{parent(), "RDO_TGC_globalPos"};
31  };
32 };
33 
34 #endif // MuonPRDTEST_TGCRDOVARIABLES_H
MuonVal::TgcIdentifierBranch
Branch to store all information of the TgcIdentifier.
Definition: IdentifierBranch.h:83
MuonTGC_CablingSvc.h
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::TGCRDOVariables::m_TGC_rdo_localPosX
VectorBranch< float > & m_TGC_rdo_localPosX
Definition: TGCRDOVariables.h:27
MuonPRDTest::TGCRDOVariables::declare_keys
bool declare_keys() override final
Definition: TGCRDOVariables.cxx:14
MuonVal::VectorBranch< float >
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::TGCRDOVariables
Definition: TGCRDOVariables.h:13
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
TgcRdoContainer
Definition: TgcRdoContainer.h:25
MuonPRDTest::TGCRDOVariables::TGCRDOVariables
TGCRDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl, ServiceHandle< MuonTGC_CablingSvc > cabling_svc)
Definition: TGCRDOVariables.cxx:12
MuonPRDTest::TGCRDOVariables::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: TGCRDOVariables.cxx:16
MuonPRDTest::TGCRDOVariables::m_TGC_rdo_id
TgcIdentifierBranch m_TGC_rdo_id
Definition: TGCRDOVariables.h:30
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
TgcRdoContainer.h
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::TGCRDOVariables::m_TGC_rdo_localPosY
VectorBranch< float > & m_TGC_rdo_localPosY
Definition: TGCRDOVariables.h:28
MuonPRDTest::TGCRDOVariables::m_TGC_nRDO
ScalarBranch< unsigned int > & m_TGC_nRDO
Definition: TGCRDOVariables.h:26
PrdTesterModule.h
MuonVal::ScalarBranch< unsigned int >
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonPRDTest::TGCRDOVariables::m_TGC_rdo_globalPos
ThreeVectorBranch m_TGC_rdo_globalPos
Definition: TGCRDOVariables.h:29
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
Definition: CSCDigitVariables.h:10
MuonPRDTest::TGCRDOVariables::m_tgcCabling
ServiceHandle< MuonTGC_CablingSvc > m_tgcCabling
Definition: TGCRDOVariables.h:25
MuonPRDTest::TGCRDOVariables::m_key
SG::ReadHandleKey< TgcRdoContainer > m_key
Definition: TGCRDOVariables.h:24
MuonPRDTest::TGCRDOVariables::~TGCRDOVariables
~TGCRDOVariables()=default
ServiceHandle< MuonTGC_CablingSvc >