ATLAS Offline Software
SegmentVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONPRDTEST_SEGMENTVARIABLES_H
6 #define MUONPRDTEST_SEGMENTVARIABLES_H
7 
9 
11 
12 namespace MuonPRDTest{
14  public:
16  const std::string& containerKey,
17  const std::string& outName,
18  MSG::Level msglvl);
19 
20  bool fill(const EventContext& ctx) override final;
21  bool declare_keys() override final;
22 
23  unsigned int push_back(const xAOD::MuonSegment& segment);
24  private:
25  unsigned int fill(const xAOD::MuonSegment& segment);
27  std::string m_name{};
28 
29 
32 
35 
39 
43 
44  bool m_filterMode{false};
45  std::unordered_map<const xAOD::MuonSegment*, unsigned int> m_idxLookUp{};
46 
47  };
48 }
49 #endif
MuonPRDTest::SegmentVariables::m_nTrigEtaLayers
VectorBranch< uint8_t > & m_nTrigEtaLayers
Definition: SegmentVariables.h:41
MuonPRDTest::SegmentVariables::push_back
unsigned int push_back(const xAOD::MuonSegment &segment)
Definition: SegmentVariables.cxx:34
MuonPRDTest::SegmentVariables::m_idxLookUp
std::unordered_map< const xAOD::MuonSegment *, unsigned int > m_idxLookUp
Definition: SegmentVariables.h:45
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:44
MuonPRDTest::SegmentVariables::m_key
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_key
Definition: SegmentVariables.h:26
xAOD::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
MuonVal::VectorBranch< char >
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
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
Definition: SegmentVariables.h:34
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
Definition: SegmentVariables.h:38
MuonPRDTest::SegmentVariables::m_chamberIdx
VectorBranch< uint8_t > & m_chamberIdx
Definition: SegmentVariables.h:36
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
Definition: SegmentVariables.h:33
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
Definition: SegmentVariables.h:27
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::SegmentVariables::m_dir
ThreeVectorBranch m_dir
Definition: SegmentVariables.h:31
PrdTesterModule.h
TestSUSYToolsAlg.outName
string outName
Definition: TestSUSYToolsAlg.py:173
MuonPRDTest::SegmentVariables
Definition: SegmentVariables.h:13
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::SegmentVariables::m_pos
ThreeVectorBranch m_pos
Definition: SegmentVariables.h:30
MuonPRDTest::SegmentVariables::m_chi2
VectorBranch< float > & m_chi2
Definition: SegmentVariables.h:37
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::SegmentVariables::m_nPrecHits
VectorBranch< uint8_t > & m_nPrecHits
Definition: SegmentVariables.h:40
MuonPRDTest::SegmentVariables::m_nTrigPhiLayers
VectorBranch< uint8_t > & m_nTrigPhiLayers
Definition: SegmentVariables.h:42
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5