ATLAS Offline Software
IdentifierBranch.cxx
Go to the documentation of this file.
1 /*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
5 #ifndef XAOD_ANALYSIS
6 namespace MuonVal {
7 
9 
10 bool MuonIdentifierBranch::fill(const EventContext&) { return true; }
11 bool 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 }
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 }
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
MuonVal::sTgcIdentifierBranch::m_multiplet
VectorBranch< uint8_t > & m_multiplet
Definition: IdentifierBranch.h:104
MuonVal::TgcIdentifierBranch::TgcIdentifierBranch
TgcIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
Definition: IdentifierBranch.cxx:64
MuonVal::MuonIdentifierBranch::m_stationPhi
VectorBranch< uint8_t > & m_stationPhi
Definition: IdentifierBranch.h:37
MuonVal::MdtIdentifierBranch::push_back
void push_back(const Identifier &id) override final
Definition: IdentifierBranch.cxx:24
Muon::IMuonIdHelperSvc::stgcIdHelper
virtual const sTgcIdHelper & stgcIdHelper() const =0
access to TgcIdHelper
MuonVal::MmIdentifierBranch::MmIdentifierBranch
MmIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
Definition: IdentifierBranch.cxx:91
MuonVal::CscIdentifierBranch::m_wireLayer
VectorBranch< uint8_t > & m_wireLayer
Definition: IdentifierBranch.h:77
TgcIdHelper
Definition: TgcIdHelper.h:50
MuonVal::MmIdentifierBranch::m_channel
VectorBranch< uint16_t > & m_channel
Definition: IdentifierBranch.h:119
MuonVal::CscIdentifierBranch::push_back
void push_back(const Identifier &id) override final
Definition: IdentifierBranch.cxx:52
MuonVal::MuonIdentifierBranch::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: IdentifierBranch.h:34
MuonVal::MmIdentifierBranch::m_gas_gap
VectorBranch< uint8_t > & m_gas_gap
Definition: IdentifierBranch.h:117
MuonVal::MuonTesterBranch
Definition: MuonTesterBranch.h:21
tree
TChain * tree
Definition: tile_monitor.h:30
MuonVal::TgcIdentifierBranch::m_gasgap
VectorBranch< uint8_t > & m_gasgap
Definition: IdentifierBranch.h:90
MuonVal::sTgcIdentifierBranch::push_back
void push_back(const Identifier &id) override final
Definition: IdentifierBranch.cxx:79
MuonVal::MdtIdentifierBranch::m_multiLayer
VectorBranch< uint8_t > & m_multiLayer
Definition: IdentifierBranch.h:48
MuonVal::RpcIdentifierBranch::push_back
void push_back(const Identifier &id) override final
Definition: IdentifierBranch.cxx:36
MuonVal::MuonIdentifierBranch::fill
bool fill(const EventContext &) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
Definition: IdentifierBranch.cxx:10
MuonVal::MmIdentifierBranch::push_back
void push_back(const Identifier &id) override final
Definition: IdentifierBranch.cxx:93
MuonVal::CscIdentifierBranch::CscIdentifierBranch
CscIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
Definition: IdentifierBranch.cxx:50
Muon::IMuonIdHelperSvc::mmIdHelper
virtual const MmIdHelper & mmIdHelper() const =0
access to CscIdHelper
RpcIdHelper
Definition: RpcIdHelper.h:51
MuonVal::CscIdentifierBranch::m_chamberLayer
VectorBranch< uint8_t > & m_chamberLayer
Definition: IdentifierBranch.h:76
MuonVal::CscIdentifierBranch::m_strip
VectorBranch< uint8_t > & m_strip
Definition: IdentifierBranch.h:79
MuonVal::MuonIdentifierBranch::idHelperSvc
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Definition: IdentifierBranch.cxx:12
MuonVal::TgcIdentifierBranch::push_back
void push_back(const Identifier &id) override final
Definition: IdentifierBranch.cxx:66
MuonVal::sTgcIdentifierBranch::m_channel_type
VectorBranch< uint8_t > & m_channel_type
Definition: IdentifierBranch.h:105
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
IdentifierBranch.h
MuonVal::MuonIdentifierBranch::MuonIdentifierBranch
MuonIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
Definition: IdentifierBranch.cxx:8
MuonVal::MdtIdentifierBranch::MdtIdentifierBranch
MdtIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
Definition: IdentifierBranch.cxx:22
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
MuonVal::RpcIdentifierBranch::m_doubletZ
VectorBranch< uint8_t > & m_doubletZ
Definition: IdentifierBranch.h:62
MuonVal::MuonIdentifierBranch::push_back
virtual void push_back(const Identifier &id)
Definition: IdentifierBranch.cxx:14
MdtIdHelper
Definition: MdtIdHelper.h:61
MuonVal::CscIdentifierBranch::m_measuresPhi
VectorBranch< bool > & m_measuresPhi
Definition: IdentifierBranch.h:78
MuonVal::MmIdentifierBranch::m_multiplet
VectorBranch< uint8_t > & m_multiplet
Definition: IdentifierBranch.h:118
MuonVal::MuonIdentifierBranch::init
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
Definition: IdentifierBranch.cxx:11
MuonVal::VectorBranch::push_back
void push_back(const T &value)
Adds a new element at the end of the vector.
MuonVal
Class to store array like branches into the n-tuples.
Definition: MuonTPMetaDataAlg.cxx:25
MuonVal::RpcIdentifierBranch::RpcIdentifierBranch
RpcIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
Definition: IdentifierBranch.cxx:34
MuonVal::TgcIdentifierBranch::m_measuresPhi
VectorBranch< bool > & m_measuresPhi
Definition: IdentifierBranch.h:91
MuonVal::TgcIdentifierBranch::m_channel
VectorBranch< uint8_t > & m_channel
Definition: IdentifierBranch.h:92
Muon::IMuonIdHelperSvc::mdtIdHelper
virtual const MdtIdHelper & mdtIdHelper() const =0
access to MdtIdHelper
MuonVal::MuonIdentifierBranch
Class to dump the basic properties of an Identifier into an n-tuple StationName -> BIS,...
Definition: IdentifierBranch.h:21
sTgcIdHelper
Definition: sTgcIdHelper.h:55
Muon::IMuonIdHelperSvc::tgcIdHelper
virtual const TgcIdHelper & tgcIdHelper() const =0
access to TgcIdHelper
Muon::IMuonIdHelperSvc::cscIdHelper
virtual const CscIdHelper & cscIdHelper() const =0
access to CscIdHelper
MmIdHelper
Definition: MmIdHelper.h:54
MuonVal::sTgcIdentifierBranch::m_gas_gap
VectorBranch< uint8_t > & m_gas_gap
Definition: IdentifierBranch.h:103
MuonVal::RpcIdentifierBranch::m_strip
VectorBranch< uint8_t > & m_strip
Definition: IdentifierBranch.h:64
CscIdHelper
Definition: CscIdHelper.h:52
MuonVal::RpcIdentifierBranch::m_gasGap
VectorBranch< uint8_t > & m_gasGap
Definition: IdentifierBranch.h:60
MuonVal::sTgcIdentifierBranch::m_channel
VectorBranch< uint16_t > & m_channel
Definition: IdentifierBranch.h:106
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition: IMuonIdHelperSvc.h:26
MuonVal::MdtIdentifierBranch::m_tubeLayer
VectorBranch< uint8_t > & m_tubeLayer
Definition: IdentifierBranch.h:49
MuonVal::MuonIdentifierBranch::m_stationIndex
VectorBranch< uint8_t > & m_stationIndex
Definition: IdentifierBranch.h:35
MuonVal::RpcIdentifierBranch::m_doubletPhi
VectorBranch< uint8_t > & m_doubletPhi
Definition: IdentifierBranch.h:63
MuonVal::RpcIdentifierBranch::m_measuresPhi
VectorBranch< bool > & m_measuresPhi
Definition: IdentifierBranch.h:65
MuonVal::RpcIdentifierBranch::m_doubletR
VectorBranch< uint8_t > & m_doubletR
Definition: IdentifierBranch.h:61
MuonVal::MdtIdentifierBranch::m_tube
VectorBranch< uint8_t > & m_tube
Definition: IdentifierBranch.h:50
MuonVal::MuonIdentifierBranch::m_stationEta
VectorBranch< int8_t > & m_stationEta
Definition: IdentifierBranch.h:36
Muon::IMuonIdHelperSvc::rpcIdHelper
virtual const RpcIdHelper & rpcIdHelper() const =0
access to RpcIdHelper
MuonVal::sTgcIdentifierBranch::sTgcIdentifierBranch
sTgcIdentifierBranch(MuonTesterTree &tree, const std::string &grp_name)
Definition: IdentifierBranch.cxx:77