ATLAS Offline Software
MDTDigitVariables.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_MDTDigitVARIABLES_H
6 #define MuonPRDTEST_MDTDigitVARIABLES_H
7 
10 namespace MuonPRDTest {
12  public:
13  MdtDigitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
14 
15  ~MdtDigitVariables() = default;
16 
17  bool fill(const EventContext& ctx) override final;
18 
19  bool declare_keys() override final;
20 
21  private:
22  SG::ReadHandleKey<MdtDigitContainer> m_digitKey{};
23 
24  ScalarBranch<int>& m_MDT_nDigits{parent().newScalar<int>("Digits_MDT_n")};
26 
27  VectorBranch<float>& m_MDT_dig_time{parent().newVector<float>("Digits_MDT_time")};
28  VectorBranch<float>& m_MDT_dig_charge{parent().newVector<float>("Digits_MDT_charge")};
29  VectorBranch<int>& m_MDT_dig_numberOfMultilayers{parent().newVector<int>("Digits_MDT_numberOfMultilayers")};
30 
31  ThreeVectorBranch m_MDT_dig_globalPos{parent(), "Digits_MDT_globalPos"};
32  ThreeVectorBranch m_MDT_dig_localTubePos{parent(), "Digits_MDT_localTubePos"};
33  };
34 } // namespace MuonPRDTest
35 #endif // MuonPRDTEST_MDTDigitVARIABLES_H
MuonPRDTest::MdtDigitVariables::m_MDT_digit_id
MdtIdentifierBranch m_MDT_digit_id
Definition: MDTDigitVariables.h:25
MuonVal::MdtIdentifierBranch
Branch to store all information of the MDT identifier.
Definition: IdentifierBranch.h:41
MuonPRDTest::MdtDigitVariables::m_MDT_dig_localTubePos
ThreeVectorBranch m_MDT_dig_localTubePos
Definition: MDTDigitVariables.h:32
MuonPRDTest::MdtDigitVariables::m_MDT_dig_charge
VectorBranch< float > & m_MDT_dig_charge
Definition: MDTDigitVariables.h:28
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::MdtDigitVariables::m_MDT_dig_globalPos
ThreeVectorBranch m_MDT_dig_globalPos
Definition: MDTDigitVariables.h:31
MuonPRDTest::MdtDigitVariables::m_MDT_dig_time
VectorBranch< float > & m_MDT_dig_time
Definition: MDTDigitVariables.h:27
MuonPRDTest::MdtDigitVariables::m_MDT_nDigits
ScalarBranch< int > & m_MDT_nDigits
Definition: MDTDigitVariables.h:24
MuonPRDTest::MdtDigitVariables::MdtDigitVariables
MdtDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: MDTDigitVariables.cxx:10
MuonVal::VectorBranch< float >
MuonPRDTest::MdtDigitVariables::m_digitKey
SG::ReadHandleKey< MdtDigitContainer > m_digitKey
Definition: MDTDigitVariables.h:22
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::MdtDigitVariables::declare_keys
bool declare_keys() override final
Definition: MDTDigitVariables.cxx:66
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::MdtDigitVariables::~MdtDigitVariables
~MdtDigitVariables()=default
MuonPRDTest::MdtDigitVariables::m_MDT_dig_numberOfMultilayers
VectorBranch< int > & m_MDT_dig_numberOfMultilayers
Definition: MDTDigitVariables.h:29
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
PrdTesterModule.h
MdtDigitContainer
Use IdentifiableContainer with MdtDigitCollection.
Definition: MdtDigitContainer.h:50
MuonVal::ScalarBranch< int >
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
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
MdtDigitContainer.h
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::MdtDigitVariables
Definition: MDTDigitVariables.h:11
MuonPRDTest::MdtDigitVariables::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: MDTDigitVariables.cxx:13