ATLAS Offline Software
MDTSDOVariables.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 MDTSDOVARIABLES_H
6 #define MDTSDOVARIABLES_H
7 
10 namespace MuonPRDTest {
12  public:
13  MdtSDOVariables(MuonTesterTree& tree, const std::string& grp_name, MSG::Level msglvl);
14 
15  ~MdtSDOVariables() = default;
16 
17  bool fill(const EventContext& ctx) override final;
18 
19  bool declare_keys() override final;
20 
21  private:
22  SG::ReadHandleKey<MuonSimDataCollection> m_sdo_key{};
23  ScalarBranch<unsigned int>& m_mdt_nsdo{parent().newScalar<unsigned int>("SDO_MDT_num")};
26  VectorBranch<int>& m_mdt_sdo_barcode{parent().newVector<int>("SDO_MDT_barcode")};
27  ThreeVectorBranch m_mdt_sdo_globalPos{parent(), "SDO_MDT_globalPos"};
28  VectorBranch<float>& m_mdt_sdo_globalTime{parent().newVector<float>("SDO_MDT_globalTime")};
29  VectorBranch<float>& m_mdt_sdo_localPosX{parent().newVector<float>("SDO_MDT_localPosX")};
30  VectorBranch<float>& m_mdt_sdo_localPosY{parent().newVector<float>("SDO_MDT_localPosY")};
31  };
32 } // namespace MuonPRDTest
33 #endif // MDTSDOVARIABLES_H
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::MdtSDOVariables::MdtSDOVariables
MdtSDOVariables(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition: MDTSDOVariables.cxx:8
MuonPRDTest::MdtSDOVariables::m_mdt_nsdo
ScalarBranch< unsigned int > & m_mdt_nsdo
Definition: MDTSDOVariables.h:23
MuonPRDTest::MdtSDOVariables::declare_keys
bool declare_keys() override final
Definition: MDTSDOVariables.cxx:57
MuonPRDTest::MdtSDOVariables::m_sdo_key
SG::ReadHandleKey< MuonSimDataCollection > m_sdo_key
Definition: MDTSDOVariables.h:22
MuonVal::VectorBranch< int >
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::MdtSDOVariables::~MdtSDOVariables
~MdtSDOVariables()=default
MuonPRDTest::MdtSDOVariables::m_mdt_sdo_globalPos
ThreeVectorBranch m_mdt_sdo_globalPos
Definition: MDTSDOVariables.h:27
MuonPRDTest::MdtSDOVariables::m_mdt_sdo_barcode
VectorBranch< int > & m_mdt_sdo_barcode
Definition: MDTSDOVariables.h:26
MuonSimDataCollection
Definition: MuonSimDataCollection.h:21
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::MdtSDOVariables::m_mdt_sdo_id
MdtIdentifierBranch m_mdt_sdo_id
Definition: MDTSDOVariables.h:24
MuonPRDTest::MdtSDOVariables::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: MDTSDOVariables.cxx:11
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::MdtSDOVariables
Definition: MDTSDOVariables.h:11
PrdTesterModule.h
MuonPRDTest::MdtSDOVariables::m_mdt_sdo_word
VectorBranch< int > & m_mdt_sdo_word
Definition: MDTSDOVariables.h:25
MuonVal::ScalarBranch< unsigned int >
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonPRDTest::MdtSDOVariables::m_mdt_sdo_localPosY
VectorBranch< float > & m_mdt_sdo_localPosY
Definition: MDTSDOVariables.h:30
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::MdtSDOVariables::m_mdt_sdo_globalTime
VectorBranch< float > & m_mdt_sdo_globalTime
Definition: MDTSDOVariables.h:28
MuonPRDTest::MdtSDOVariables::m_mdt_sdo_localPosX
VectorBranch< float > & m_mdt_sdo_localPosX
Definition: MDTSDOVariables.h:29
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonSimDataCollection.h