Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
13 namespace 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
MuonPRDTest::SegmentVariables::m_nTrigEtaLayers
VectorBranch< uint8_t > & m_nTrigEtaLayers
Number of trigger hits, i.e.
Definition: SegmentVariables.h:54
MuonPRDTest::SegmentVariables::push_back
unsigned int push_back(const xAOD::MuonSegment &segment)
push back a particuar segment
Definition: SegmentVariables.cxx:34
MuonPRDTest::SegmentVariables::m_idxLookUp
std::unordered_map< const xAOD::MuonSegment *, unsigned int > m_idxLookUp
Definition: SegmentVariables.h:60
MuonPRDTest::SegmentVariables::m_addBranches
std::vector< std::shared_ptr< IAuxElementDecorationBranch > > m_addBranches
Definition: SegmentVariables.h:58
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
MuonPRDTest::SegmentVariables::declare_keys
bool declare_keys() override final
Definition: SegmentVariables.cxx:31
MuonPRDTest::SegmentVariables::m_filterMode
bool m_filterMode
Definition: SegmentVariables.h:59
MuonPRDTest::SegmentVariables::m_key
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_key
Store gate key of the segment container.
Definition: SegmentVariables.h:34
xAOD::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
MuonPRDTest::SegmentVariables::addVariable
bool addVariable(std::shared_ptr< IAuxElementDecorationBranch > br)
Definition: SegmentVariables.cxx:38
MuonVal::VectorBranch< char >
SG::ReadHandleKey< xAOD::MuonSegmentContainer >
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::SegmentVariables::m_sector
VectorBranch< uint8_t > & m_sector
MS-sector of the segment's precision hits.
Definition: SegmentVariables.h:44
MuonPRDTest::SegmentVariables::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: SegmentVariables.cxx:17
MuonSegmentContainer.h
MuonPRDTest::SegmentVariables::m_nDoF
VectorBranch< unsigned int > & m_nDoF
number of degrees of freedom
Definition: SegmentVariables.h:50
MuonPRDTest::SegmentVariables::m_chamberIdx
VectorBranch< uint8_t > & m_chamberIdx
MS station of the segment.
Definition: SegmentVariables.h:46
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::SegmentVariables::m_etaIdx
VectorBranch< char > & m_etaIdx
Station-eta index of the segment's precision hits.
Definition: SegmentVariables.h:42
MuonPRDTest::SegmentVariables::SegmentVariables
SegmentVariables(MuonTesterTree &tree, const std::string &containerKey, const std::string &outName, MSG::Level msglvl)
Definition: SegmentVariables.cxx:9
MuonPRDTest::SegmentVariables::m_name
std::string m_name
Name of the segment collection in the output collection.
Definition: SegmentVariables.h:36
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::SegmentVariables::m_dir
ThreeVectorBranch m_dir
Global direction of the segment.
Definition: SegmentVariables.h:40
PrdTesterModule.h
TestSUSYToolsAlg.outName
string outName
Definition: TestSUSYToolsAlg.py:173
MuonPRDTest::SegmentVariables
Tester module to dump the segment container.
Definition: SegmentVariables.h:16
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::SegmentVariables::m_pos
ThreeVectorBranch m_pos
Global position of the segment.
Definition: SegmentVariables.h:38
MuonPRDTest::SegmentVariables::m_chi2
VectorBranch< float > & m_chi2
chi 2 of the segment fit
Definition: SegmentVariables.h:48
MuonPRDTest
Definition: MuonHitTesterAlg.h:15
MuonPRDTest::SegmentVariables::m_nPrecHits
VectorBranch< uint8_t > & m_nPrecHits
Number of precision hits i.e.
Definition: SegmentVariables.h:52
MuonPRDTest::SegmentVariables::m_nTrigPhiLayers
VectorBranch< uint8_t > & m_nTrigPhiLayers
Number of trigger hits, i.e.
Definition: SegmentVariables.h:56
ReadDecorHandleKeyArray.h
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5
PlotCalibFromCool.br
br
Definition: PlotCalibFromCool.py:355