ATLAS Offline Software
MMDigitVariables.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_MMDigitVARIABLES_H
6 #define MuonPRDTEST_MMDigitVARIABLES_H
7 
11 
12 namespace MuonPRDTest{
14  public:
15  MMDigitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
16 
17  ~MMDigitVariables() = default;
18 
19  bool fill(const EventContext& ctx) override final;
20 
21  bool declare_keys() override final;
22 
23  private:
24  SG::ReadHandleKey<MmDigitContainer> m_key{};
25  ScalarBranch<unsigned int>& m_NSWMM_nDigits{parent().newScalar<unsigned int>("N_Digits_MM")};
26  VectorBranch<float>& m_NSWMM_dig_time{parent().newVector<float>("Digits_MM_time")};
27  VectorBranch<float>& m_NSWMM_dig_charge{parent().newVector<float>("Digits_MM_charge")};
28  TwoVectorBranch m_NSWMM_dig_stripLpos{parent(), "Digits_MM_stripLpos"};
29  ThreeVectorBranch m_NSWMM_dig_stripGpos{parent(), "Digits_MM_stripGpos"};
31  };
32 };
33 #endif // MuonPRDTEST_MMDigitVARIABLES_H
MmDigitContainer
Use IdentifiableContainer with MmDigitCollection.
Definition: MmDigitContainer.h:50
MuonPRDTest::MMDigitVariables::~MMDigitVariables
~MMDigitVariables()=default
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::MMDigitVariables::MMDigitVariables
MMDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: MMDigitVariables.cxx:10
MuonPRDTest::MMDigitVariables::m_NSWMM_dig_charge
VectorBranch< float > & m_NSWMM_dig_charge
Definition: MMDigitVariables.h:27
MuonPRDTest::MMDigitVariables
Definition: MMDigitVariables.h:13
MuonVal::VectorBranch< float >
MuonPRDTest::MMDigitVariables::m_NSWMM_dig_stripLpos
TwoVectorBranch m_NSWMM_dig_stripLpos
Definition: MMDigitVariables.h:28
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::MMDigitVariables::m_NSWMM_nDigits
ScalarBranch< unsigned int > & m_NSWMM_nDigits
Definition: MMDigitVariables.h:25
MuonPRDTest::MMDigitVariables::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: MMDigitVariables.cxx:14
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MmIdentifierBranch
Branch to store all information of the MmIdentifier.
Definition: IdentifierBranch.h:110
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MmDigitContainer.h
MuonPRDTest::MMDigitVariables::m_NSWMM_dig_id
MmIdentifierBranch m_NSWMM_dig_id
Definition: MMDigitVariables.h:30
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::MMDigitVariables::m_key
SG::ReadHandleKey< MmDigitContainer > m_key
Definition: MMDigitVariables.h:24
MuonPRDTest::MMDigitVariables::m_NSWMM_dig_time
VectorBranch< float > & m_NSWMM_dig_time
Definition: MMDigitVariables.h:26
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
PrdTesterModule.h
MuonPRDTest::MMDigitVariables::m_NSWMM_dig_stripGpos
ThreeVectorBranch m_NSWMM_dig_stripGpos
Definition: MMDigitVariables.h:29
MuonPRDTest::MMDigitVariables::declare_keys
bool declare_keys() override final
Definition: MMDigitVariables.cxx:13
MuonVal::ScalarBranch< unsigned 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
MuonPRDTest
Definition: CSCDigitVariables.h:10
TwoVectorBranch.h
MuonVal::TwoVectorBranch
Definition: TwoVectorBranch.h:15