ATLAS Offline Software
Loading...
Searching...
No Matches
IdentifierBranch.cxx
Go to the documentation of this file.
1/*
2Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
5#ifndef XAOD_ANALYSIS
6namespace MuonVal {
7
9
10bool MuonIdentifierBranch::fill(const EventContext&) { return true; }
11bool MuonIdentifierBranch::init() { return m_idHelperSvc.retrieve().isSuccess(); }
13
15 m_stationIndex.push_back(m_idHelperSvc->stationName(id));
16 m_stationEta.push_back(m_idHelperSvc->stationEta(id));
17 m_stationPhi.push_back(m_idHelperSvc->stationPhi(id));
18}
19
23
26 const MdtIdHelper& idHelper{idHelperSvc()->mdtIdHelper()};
27 m_multiLayer.push_back(idHelper.multilayer(id));
28 m_tubeLayer.push_back(idHelper.tubeLayer(id));
29 m_tube.push_back(idHelper.tube(id));
30}
31
35
38 const RpcIdHelper& idHelper{idHelperSvc()->rpcIdHelper()};
39 m_gasGap.push_back(idHelper.gasGap(id));
40 m_doubletR.push_back(idHelper.doubletR(id));
41 m_doubletZ.push_back(idHelper.doubletZ(id));
42 m_doubletPhi.push_back(idHelper.doubletPhi(id));
43 m_measuresPhi.push_back(idHelper.measuresPhi(id));
44 m_strip.push_back(idHelper.strip(id));
45}
46
51
54 const CscIdHelper& idHelper{idHelperSvc()->cscIdHelper()};
55 m_chamberLayer.push_back(idHelper.chamberLayer(id));
56 m_wireLayer.push_back(idHelper.wireLayer(id));
57 m_measuresPhi.push_back(idHelper.measuresPhi(id));
58 m_strip.push_back(idHelper.strip(id));
59}
60
65
68 const TgcIdHelper& idHelper{idHelperSvc()->tgcIdHelper()};
69 m_gasgap.push_back(idHelper.gasGap(id));
70 m_measuresPhi.push_back(idHelper.measuresPhi(id));
71 m_channel.push_back(idHelper.channel(id));
72}
73
78
81 const sTgcIdHelper& idHelper{idHelperSvc()->stgcIdHelper()};
82 m_gas_gap.push_back(idHelper.gasGap(id));
83 m_multiplet.push_back(idHelper.multilayer(id));
84 m_channel_type.push_back(idHelper.channelType(id));
85 m_channel.push_back(idHelper.channel(id));
86}
87
92
95 const MmIdHelper& idHelper{idHelperSvc()->mmIdHelper()};
96 m_gas_gap.push_back(idHelper.gasGap(id));
97 m_multiplet.push_back(idHelper.multilayer(id));
98 m_channel.push_back(idHelper.channel(id));
99}
100}
101#endif
int wireLayer(const Identifier &id) const
int chamberLayer(const Identifier &id) const
int strip(const Identifier &id) const
bool measuresPhi(const Identifier &id) const override
int multilayer(const Identifier &id) const
Access to components of the ID.
int tube(const Identifier &id) const
int tubeLayer(const Identifier &id) const
int channel(const Identifier &id) const override
int gasGap(const Identifier &id) const override
get the hashes
int multilayer(const Identifier &id) const
VectorBranch< uint8_t > & m_wireLayer
VectorBranch< uint8_t > & m_chamberLayer
CscIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
############################################################### CscIdentifierBranch #################...
VectorBranch< bool > & m_measuresPhi
VectorBranch< uint8_t > & m_strip
void push_back(const Identifier &id) override final
VectorBranch< uint8_t > & m_tube
VectorBranch< uint8_t > & m_multiLayer
MdtIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
############################################################### MdtIdentifierBranch #################...
void push_back(const Identifier &id) override final
VectorBranch< uint8_t > & m_tubeLayer
VectorBranch< uint8_t > & m_multiplet
void push_back(const Identifier &id) override final
VectorBranch< uint16_t > & m_channel
VectorBranch< uint8_t > & m_gas_gap
MmIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
############################################################### MmIdentifierBranch ##################...
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
VectorBranch< uint8_t > & m_stationPhi
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
VectorBranch< int8_t > & m_stationEta
virtual void push_back(const Identifier &id)
const Muon::IMuonIdHelperSvc * idHelperSvc() const
VectorBranch< uint8_t > & m_stationIndex
bool fill(const EventContext &) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
MuonIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
MuonTesterBranch(MuonTesterTree &tree, const std::string &br_name)
TTree * tree() override final
Returns the underlying TTree object.
VectorBranch< uint8_t > & m_doubletR
void push_back(const Identifier &id) override final
VectorBranch< uint8_t > & m_doubletPhi
VectorBranch< bool > & m_measuresPhi
RpcIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
############################################################### RpcIdentifierBranch #################...
VectorBranch< uint8_t > & m_doubletZ
VectorBranch< uint8_t > & m_gasGap
VectorBranch< uint8_t > & m_strip
VectorBranch< uint8_t > & m_gasgap
TgcIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
############################################################### TgcIdentifierBranch #################...
VectorBranch< uint8_t > & m_channel
VectorBranch< bool > & m_measuresPhi
void push_back(const Identifier &id) override final
VectorBranch< uint8_t > & m_multiplet
void push_back(const Identifier &id) override final
VectorBranch< uint8_t > & m_gas_gap
VectorBranch< uint16_t > & m_channel
VectorBranch< uint8_t > & m_channel_type
sTgcIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
############################################################### sTgcIdentifierBranch ################...
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
virtual const MmIdHelper & mmIdHelper() const =0
access to CscIdHelper
virtual const RpcIdHelper & rpcIdHelper() const =0
access to RpcIdHelper
virtual const sTgcIdHelper & stgcIdHelper() const =0
access to TgcIdHelper
virtual const CscIdHelper & cscIdHelper() const =0
access to CscIdHelper
virtual const TgcIdHelper & tgcIdHelper() const =0
access to TgcIdHelper
virtual const MdtIdHelper & mdtIdHelper() const =0
access to MdtIdHelper
int gasGap(const Identifier &id) const override
get the hashes
int doubletPhi(const Identifier &id) const
int doubletR(const Identifier &id) const
int strip(const Identifier &id) const
bool measuresPhi(const Identifier &id) const override
int doubletZ(const Identifier &id) const
int channel(const Identifier &id) const override
int gasGap(const Identifier &id) const override
get the hashes
bool measuresPhi(const Identifier &id) const override
int multilayer(const Identifier &id) const
int channelType(const Identifier &id) const
int channel(const Identifier &id) const override
int gasGap(const Identifier &id) const override
get the hashes
Class to store array like branches into the n-tuples.
Definition HitValAlg.cxx:19