ATLAS Offline Software
Loading...
Searching...
No Matches
SegmentVariables.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONPRDTEST_SEGMENTVARIABLES_H
6#define MUONPRDTEST_SEGMENTVARIABLES_H
7
9
12
13namespace MuonPRDTest{
17 public:
19 const std::string& containerKey,
20 const std::string& outName,
21 MSG::Level msglvl);
22
23 bool fill(const EventContext& ctx) override final;
24 bool declare_keys() override final;
25
27 unsigned int push_back(const xAOD::MuonSegment& segment);
29 bool addVariable(std::shared_ptr<IAuxElementDecorationBranch> br);
30 private:
31 unsigned int fill(const xAOD::MuonSegment& segment);
32
36 std::string m_name{};
58 std::vector<std::shared_ptr<IAuxElementDecorationBranch>> m_addBranches{};
59 bool m_filterMode{false};
60 std::unordered_map<const xAOD::MuonSegment*, unsigned int> m_idxLookUp{};
61
62 };
63}
64#endif
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
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...
VectorBranch< char > & m_etaIdx
Station-eta index of the segment's precision hits.
VectorBranch< uint8_t > & m_nPrecHits
Number of precision hits i.e.
VectorBranch< uint8_t > & m_sector
MS-sector of the segment's precision hits.
ThreeVectorBranch m_dir
Global direction of the segment.
unsigned int push_back(const xAOD::MuonSegment &segment)
push back a particuar segment
VectorBranch< uint8_t > & m_nTrigEtaLayers
Number of trigger hits, i.e.
SegmentVariables(MuonTesterTree &tree, const std::string &containerKey, const std::string &outName, MSG::Level msglvl)
bool declare_keys() override final
VectorBranch< float > & m_chi2
chi 2 of the segment fit
VectorBranch< uint8_t > & m_chamberIdx
MS station of the segment.
VectorBranch< unsigned int > & m_nDoF
number of degrees of freedom
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_key
Store gate key of the segment container.
bool addVariable(std::shared_ptr< IAuxElementDecorationBranch > br)
std::unordered_map< const xAOD::MuonSegment *, unsigned int > m_idxLookUp
ThreeVectorBranch m_pos
Global position of the segment.
VectorBranch< uint8_t > & m_nTrigPhiLayers
Number of trigger hits, i.e.
std::vector< std::shared_ptr< IAuxElementDecorationBranch > > m_addBranches
std::string m_name
Name of the segment collection in the output collection.
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
TTree * tree() override final
Returns the underlying TTree object.
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonSegment_v1 MuonSegment
Reference the current persistent version: