ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
MuEntryVariables.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_MUENTRYVARIABLES_H
6
#define MUONPRDTEST_MUENTRYVARIABLES_H
7
8
9
#include "
AthenaBaseComps/AthMsgStreamMacros.h
"
10
#include "
MuonPRDTest/PrdTesterModule.h
"
11
#include "
TrackRecord/TrackRecordCollection.h
"
12
#include "
MuonTesterTree/ThreeVectorBranch.h
"
13
namespace
MuonPRDTest
{
14
class
MuEntryVariables
:
public
PrdTesterModule
{
15
public
:
16
MuEntryVariables
(
MuonTesterTree
&
tree
,
const
std::string& container_name, MSG::Level msglvl);
17
18
bool
fill
(
const
EventContext& ctx)
override
final
;
19
bool
declare_keys
()
override
final
;
20
21
22
private
:
23
SG::ReadHandleKey<TrackRecordCollection>
m_key
{};
24
ScalarBranch<unsigned int>
&
m_MuEntry_nParticles
{
parent
().
newScalar
<
unsigned
int
>(
"Muontry_numPart"
)};
25
PtEtaPhiEBranch
m_MuEntry_mom
{
parent
(),
"MuEntry_Particle"
};
26
ThreeVectorBranch
m_MuEntry_pos
{
parent
(),
"MuEntry_Position"
};
27
VectorBranch<int>
&
m_MuEntry_particlePdg_id
{
parent
().
newVector
<
int
>(
"MuEntry_Pdg"
)};
28
VectorBranch<int>
&
m_MuEntry_particleBarcode
{
parent
().
newVector
<
int
>(
"MuEntry_Barcode"
)};
29
};
30
}
31
#endif
// MUENTRYVARIABLES_H
AthMsgStreamMacros.h
PrdTesterModule.h
ThreeVectorBranch.h
TrackRecordCollection.h
MuonPRDTest::MuEntryVariables::m_MuEntry_nParticles
ScalarBranch< unsigned int > & m_MuEntry_nParticles
Definition
MuEntryVariables.h:24
MuonPRDTest::MuEntryVariables::m_key
SG::ReadHandleKey< TrackRecordCollection > m_key
Definition
MuEntryVariables.h:23
MuonPRDTest::MuEntryVariables::m_MuEntry_pos
ThreeVectorBranch m_MuEntry_pos
Definition
MuEntryVariables.h:26
MuonPRDTest::MuEntryVariables::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
MuEntryVariables.cxx:17
MuonPRDTest::MuEntryVariables::MuEntryVariables
MuEntryVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
MuEntryVariables.cxx:13
MuonPRDTest::MuEntryVariables::m_MuEntry_particlePdg_id
VectorBranch< int > & m_MuEntry_particlePdg_id
Definition
MuEntryVariables.h:27
MuonPRDTest::MuEntryVariables::m_MuEntry_particleBarcode
VectorBranch< int > & m_MuEntry_particleBarcode
Definition
MuEntryVariables.h:28
MuonPRDTest::MuEntryVariables::declare_keys
bool declare_keys() override final
Definition
MuEntryVariables.cxx:15
MuonPRDTest::MuEntryVariables::m_MuEntry_mom
PtEtaPhiEBranch m_MuEntry_mom
Definition
MuEntryVariables.h:25
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
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::PtEtaPhiEBranch
Helper class to store the four-momentum in a TTree using the Pt, Eta, Phi, E representation.
Definition
FourVectorBranch.h:15
MuonVal::ScalarBranch
Definition
ScalarBranch.h:12
MuonVal::ThreeVectorBranch
Definition
ThreeVectorBranch.h:14
MuonVal::VectorBranch
Definition
VectorBranch.h:14
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
MuonPRDTest
Definition
MuonHitTesterAlg.h:15
Generated on
for ATLAS Offline Software by
1.17.0