ATLAS Offline Software
RPCDigitVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MuonPRDTEST_RPCDigitVARIABLES_H
6 #define MuonPRDTEST_RPCDigitVARIABLES_H
7 
11 namespace MuonPRDTest {
13  public:
14  RpcDigitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
15 
16  ~RpcDigitVariables() = default;
17 
18  bool fill(const EventContext& ctx) override final;
19 
20  bool declare_keys() override final;
21 
22  private:
23  SG::ReadHandleKey<RpcDigitContainer> m_key{};
24  ScalarBranch<unsigned int>& m_RPC_nDigits{parent().newScalar<unsigned int>("N_Digits_RPC")};
25  VectorBranch<float>& m_RPC_dig_time{parent().newVector<float>("Digits_RPC_time")};
26  VectorBranch<float>& m_RPC_tot{parent().newVector<float>("Digits_RPC_timeOverThresh")};
27  ThreeVectorBranch m_RPC_dig_globalPos{parent(), "Digits_RPC_globalPos"};
28  TwoVectorBranch m_RPC_dig_localPos{parent(), "Digits_RPC_localPos"};
30  };
31 } // namespace MuonPRDTest
32 #endif // MuonPRDTEST_RPCDigitVARIABLES_H
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
RpcDigitContainer
Use IdentifiableContainer with RpcDigitCollection.
Definition: RpcDigitContainer.h:53
RpcDigitContainer.h
MuonPRDTest::RpcDigitVariables::m_RPC_dig_globalPos
ThreeVectorBranch m_RPC_dig_globalPos
Definition: RPCDigitVariables.h:27
MuonVal::VectorBranch< float >
MuonPRDTest::RpcDigitVariables::declare_keys
bool declare_keys() override final
Definition: RPCDigitVariables.cxx:12
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::RpcDigitVariables::m_RPC_dig_id
RpcIdentifierBranch m_RPC_dig_id
Definition: RPCDigitVariables.h:29
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonVal::RpcIdentifierBranch
Definition: IdentifierBranch.h:53
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::RpcDigitVariables::~RpcDigitVariables
~RpcDigitVariables()=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)
MuonPRDTest::RpcDigitVariables::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: RPCDigitVariables.cxx:13
MuonPRDTest::RpcDigitVariables::m_RPC_nDigits
ScalarBranch< unsigned int > & m_RPC_nDigits
Definition: RPCDigitVariables.h:24
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::RpcDigitVariables::m_key
SG::ReadHandleKey< RpcDigitContainer > m_key
Definition: RPCDigitVariables.h:23
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::RpcDigitVariables::RpcDigitVariables
RpcDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: RPCDigitVariables.cxx:9
TwoVectorBranch.h
MuonPRDTest::RpcDigitVariables::m_RPC_dig_localPos
TwoVectorBranch m_RPC_dig_localPos
Definition: RPCDigitVariables.h:28
MuonPRDTest::RpcDigitVariables
Definition: RPCDigitVariables.h:12
MuonVal::TwoVectorBranch
Definition: TwoVectorBranch.h:15
MuonPRDTest::RpcDigitVariables::m_RPC_dig_time
VectorBranch< float > & m_RPC_dig_time
Definition: RPCDigitVariables.h:25
MuonPRDTest::RpcDigitVariables::m_RPC_tot
VectorBranch< float > & m_RPC_tot
Definition: RPCDigitVariables.h:26