ATLAS Offline Software
RPCSDOVariables.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_RPCSDOVARIABLES_H
6 #define MUONPRDTEST_RPCSDOVARIABLES_H
7 
10 
13 
14 namespace MuonPRDTest {
16  public:
17  RpcSDOVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
18 
19  ~RpcSDOVariables() = default;
20 
21  bool fill(const EventContext& ctx) override final;
22 
23  bool declare_keys() override final;
24 
25  private:
26  SG::ReadHandleKey<MuonSimDataCollection> m_key{};
27 
28  ScalarBranch<unsigned int>& m_rpc_nsdo{parent().newScalar<unsigned int>("nSDO_RPC")};
31  VectorBranch<int>& m_rpc_sdo_barcode{parent().newVector<int>("SDO_RPC_barcode")};
32  VectorBranch<float>& m_rpc_sdo_globaltime{parent().newVector<float>("SDO_RPC_globalTime")};
33 
34  ThreeVectorBranch m_RPC_dig_globalPos{parent(), "SDO_RPC_globalPos"};
35  TwoVectorBranch m_RPC_dig_localPos{parent(), "SDO_RPC_localPos"};
36 
37  };
38 } // namespace MuonPRDTest
39 #endif // RPCSDOVARIABLES_H
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::RpcSDOVariables::m_key
SG::ReadHandleKey< MuonSimDataCollection > m_key
Definition: RPCSDOVariables.h:26
MuonPRDTest::RpcSDOVariables
Definition: RPCSDOVariables.h:15
MuonPRDTest::RpcSDOVariables::m_RPC_dig_globalPos
ThreeVectorBranch m_RPC_dig_globalPos
Definition: RPCSDOVariables.h:34
MuonVal::VectorBranch< int >
MuonPRDTest::RpcSDOVariables::declare_keys
bool declare_keys() override final
Definition: RPCSDOVariables.cxx:12
ThreeVectorBranch.h
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::RpcSDOVariables::m_rpc_sdo_word
VectorBranch< int > & m_rpc_sdo_word
Definition: RPCSDOVariables.h:30
MuonPRDTest::RpcSDOVariables::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: RPCSDOVariables.cxx:14
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonPRDTest::RpcSDOVariables::~RpcSDOVariables
~RpcSDOVariables()=default
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::RpcSDOVariables::m_rpc_sdo_barcode
VectorBranch< int > & m_rpc_sdo_barcode
Definition: RPCSDOVariables.h:31
MuonVal::RpcIdentifierBranch
Definition: IdentifierBranch.h:53
MuonSimDataCollection
Definition: MuonSimDataCollection.h:21
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
MuonPRDTest::RpcSDOVariables::m_rpc_sdo_globaltime
VectorBranch< float > & m_rpc_sdo_globaltime
Definition: RPCSDOVariables.h:32
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonPRDTest::RpcSDOVariables::m_RPC_dig_localPos
TwoVectorBranch m_RPC_dig_localPos
Definition: RPCSDOVariables.h:35
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::RpcSDOVariables::RpcSDOVariables
RpcSDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: RPCSDOVariables.cxx:9
TwoVectorBranch.h
MuonPRDTest::RpcSDOVariables::m_rpc_sdo_id
RpcIdentifierBranch m_rpc_sdo_id
Definition: RPCSDOVariables.h:29
MuonSimDataCollection.h
MuonPRDTest::RpcSDOVariables::m_rpc_nsdo
ScalarBranch< unsigned int > & m_rpc_nsdo
Definition: RPCSDOVariables.h:28
MuonVal::TwoVectorBranch
Definition: TwoVectorBranch.h:15