ATLAS Offline Software
RPCPRDVariables.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_RPCPRDVARIABLES_H
6 #define MuonPRDTEST_RPCPRDVARIABLES_H
7 
11 
12 namespace MuonPRDTest{
14  public:
15  RPCPRDVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
16 
17  ~RPCPRDVariables() = default;
18 
19  bool fill(const EventContext& ctx) override final;
20 
21  bool declare_keys() override final;
22 
23  private:
24  SG::ReadHandleKey<Muon::RpcPrepDataContainer> m_key{};
25  ScalarBranch<unsigned int>& m_RPC_nPRD{parent().newScalar<unsigned int>("N_PRD_RPC")};
26  ThreeVectorBranch m_RPC_PRD_globalPos{parent(), "PRD_RPC_globalPos"};
27  VectorBranch<double>& m_RPC_PRD_locX{parent().newVector<double>( "PRD_RPC_locX")};
29  VectorBranch<float>& m_RPC_PRD_error{parent().newVector<float>("PRD_RPC_error")};
30  VectorBranch<float>& m_RPC_PRD_time{parent().newVector<float>("PRD_RPC_time")};
31  };
32 };
33 
34 #endif // MuonPRDTEST_RPCPRDVARIABLES_H
MuonPRDTest::RPCPRDVariables::RPCPRDVariables
RPCPRDVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: RPCPRDVariables.cxx:12
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::RPCPRDVariables::m_RPC_PRD_id
RpcIdentifierBranch m_RPC_PRD_id
Definition: RPCPRDVariables.h:28
RpcPrepDataContainer.h
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::RPCPRDVariables::m_key
SG::ReadHandleKey< Muon::RpcPrepDataContainer > m_key
Definition: RPCPRDVariables.h:24
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::RPCPRDVariables::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: RPCPRDVariables.cxx:16
MuonVal::RpcIdentifierBranch
Definition: IdentifierBranch.h:53
MuonPRDTest::RPCPRDVariables::m_RPC_nPRD
ScalarBranch< unsigned int > & m_RPC_nPRD
Definition: RPCPRDVariables.h:25
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::RPCPRDVariables::m_RPC_PRD_globalPos
ThreeVectorBranch m_RPC_PRD_globalPos
Definition: RPCPRDVariables.h:26
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::RPCPRDVariables::~RPCPRDVariables
~RPCPRDVariables()=default
PrdTesterModule.h
MuonPRDTest::RPCPRDVariables::m_RPC_PRD_locX
VectorBranch< double > & m_RPC_PRD_locX
Definition: RPCPRDVariables.h:27
MuonVal::ScalarBranch< unsigned int >
MuonPRDTest::RPCPRDVariables::declare_keys
bool declare_keys() override final
Definition: RPCPRDVariables.cxx:14
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::RPCPRDVariables
Definition: RPCPRDVariables.h:13
Muon::RpcPrepDataContainer
MuonPrepDataContainerT< RpcPrepData > RpcPrepDataContainer
Definition: MuonPrepDataContainer.h:96
MuonPRDTest::RPCPRDVariables::m_RPC_PRD_error
VectorBranch< float > & m_RPC_PRD_error
Definition: RPCPRDVariables.h:29
MuonPRDTest
Definition: MuonHitTesterAlg.h:15
private
#define private
Definition: xAODTruthCnvAlg.h:20
TwoVectorBranch.h
MuonPRDTest::RPCPRDVariables::m_RPC_PRD_time
VectorBranch< float > & m_RPC_PRD_time
Definition: RPCPRDVariables.h:30