ATLAS Offline Software
MDTPRDVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MuonPRDTEST_MDTPRDVARIABLES_H
6 #define MuonPRDTEST_MDTPRDVARIABLES_H
7 
11 
12 namespace MuonPRDTest{
14  public:
15  MDTPRDVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
16 
17  ~MDTPRDVariables() = default;
18 
19  bool fill(const EventContext& ctx) override final;
20 
21  bool declare_keys() override final;
22 
23  private:
24  SG::ReadHandleKey<Muon::MdtPrepDataContainer> m_key{};
25  ScalarBranch<unsigned int>& m_MDT_nPRD{parent().newScalar<unsigned int>("N_PRD_MDT")};
26 
27  ThreeVectorBranch m_MDT_PRD_globalPos{parent(), "PRD_MDT_globalPos"};
28  VectorBranch<double>& m_MDT_PRD_radius{parent().newVector<double>( "PRD_MDT_radius")};
30  VectorBranch<float>& m_MDT_PRD_error{parent().newVector<float>("PRD_MDT_error")};
33  VectorBranch<int>& m_MDT_PRD_status{parent().newVector<int>("PRD_MDT_status")};
34  };
35 };
36 
37 #endif // MuonPRDTEST_MDTPRDVARIABLES_H
MuonPRDTest::MDTPRDVariables::m_MDT_nPRD
ScalarBranch< unsigned int > & m_MDT_nPRD
Definition: MDTPRDVariables.h:25
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_tdc
VectorBranch< int > & m_MDT_PRD_tdc
Definition: MDTPRDVariables.h:32
MuonVal::MdtIdentifierBranch
Branch to store all information of the MDT identifier.
Definition: IdentifierBranch.h:41
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_globalPos
ThreeVectorBranch m_MDT_PRD_globalPos
Definition: MDTPRDVariables.h:27
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_status
VectorBranch< int > & m_MDT_PRD_status
Definition: MDTPRDVariables.h:33
MuonPRDTest::MDTPRDVariables
Definition: MDTPRDVariables.h:13
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_error
VectorBranch< float > & m_MDT_PRD_error
Definition: MDTPRDVariables.h:30
Muon::MdtPrepDataContainer
MuonPrepDataContainerT< MdtPrepData > MdtPrepDataContainer
Definition: MuonPrepDataContainer.h:95
MuonVal::VectorBranch< double >
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::MDTPRDVariables::~MDTPRDVariables
~MDTPRDVariables()=default
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_adc
VectorBranch< int > & m_MDT_PRD_adc
Definition: MDTPRDVariables.h:31
MdtPrepDataContainer.h
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_radius
VectorBranch< double > & m_MDT_PRD_radius
Definition: MDTPRDVariables.h:28
MuonPRDTest::MDTPRDVariables::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: MDTPRDVariables.cxx:16
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
PrdTesterModule.h
MuonVal::ScalarBranch< unsigned int >
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_id
MdtIdentifierBranch m_MDT_PRD_id
Definition: MDTPRDVariables.h:29
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::MDTPRDVariables::m_key
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_key
Definition: MDTPRDVariables.h:24
MuonPRDTest
Definition: MuonHitTesterAlg.h:15
private
#define private
Definition: xAODTruthCnvAlg.h:20
MuonPRDTest::MDTPRDVariables::declare_keys
bool declare_keys() override final
Definition: MDTPRDVariables.cxx:14
TwoVectorBranch.h
MuonPRDTest::MDTPRDVariables::MDTPRDVariables
MDTPRDVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: MDTPRDVariables.cxx:12