ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
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
8
#include "
MuonDigitContainer/MmDigitContainer.h
"
9
#include "
MuonPRDTest/PrdTesterModule.h
"
10
#include "
MuonTesterTree/TwoVectorBranch.h
"
11
12
namespace
MuonPRDTest
{
13
class
MMDigitVariables
:
public
PrdTesterModule
{
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"
};
30
MmIdentifierBranch
m_NSWMM_dig_id
{
parent
(),
"Digits_MM"
};
31
};
32
};
33
#endif
// MuonPRDTEST_MMDigitVARIABLES_H
MmDigitContainer.h
PrdTesterModule.h
TwoVectorBranch.h
MmDigitContainer
Use IdentifiableContainer with MmDigitCollection.
Definition
MmDigitContainer.h:50
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
MuonPRDTest::MMDigitVariables::m_NSWMM_dig_stripGpos
ThreeVectorBranch m_NSWMM_dig_stripGpos
Definition
MMDigitVariables.h:29
MuonPRDTest::MMDigitVariables::m_NSWMM_dig_id
MmIdentifierBranch m_NSWMM_dig_id
Definition
MMDigitVariables.h:30
MuonPRDTest::MMDigitVariables::m_NSWMM_nDigits
ScalarBranch< unsigned int > & m_NSWMM_nDigits
Definition
MMDigitVariables.h:25
MuonPRDTest::MMDigitVariables::m_NSWMM_dig_charge
VectorBranch< float > & m_NSWMM_dig_charge
Definition
MMDigitVariables.h:27
MuonPRDTest::MMDigitVariables::m_NSWMM_dig_time
VectorBranch< float > & m_NSWMM_dig_time
Definition
MMDigitVariables.h:26
MuonPRDTest::MMDigitVariables::declare_keys
bool declare_keys() override final
Definition
MMDigitVariables.cxx:13
MuonPRDTest::MMDigitVariables::m_NSWMM_dig_stripLpos
TwoVectorBranch m_NSWMM_dig_stripLpos
Definition
MMDigitVariables.h:28
MuonPRDTest::MMDigitVariables::MMDigitVariables
MMDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
MMDigitVariables.cxx:10
MuonPRDTest::MMDigitVariables::m_key
SG::ReadHandleKey< MmDigitContainer > m_key
Definition
MMDigitVariables.h:24
MuonPRDTest::MMDigitVariables::~MMDigitVariables
~MMDigitVariables()=default
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonVal::MmIdentifierBranch
Branch to store all information of the MmIdentifier.
Definition
IdentifierBranch.h:110
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition
MuonTesterBranch.cxx:38
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition
MuonTesterBranch.cxx:53
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonVal::ScalarBranch
Definition
ScalarBranch.h:12
MuonVal::ThreeVectorBranch
Definition
ThreeVectorBranch.h:14
MuonVal::TwoVectorBranch
Definition
TwoVectorBranch.h:15
MuonVal::VectorBranch
Definition
VectorBranch.h:14
MuonPRDTest
Definition
MuonHitTesterAlg.h:15
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0