ATLAS Offline Software
Loading...
Searching...
No Matches
sTGCPRDVariables.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_sTGCPRDVARIABLES_H
6#define MuonPRDTEST_sTGCPRDVARIABLES_H
7
11
12namespace MuonPRDTest{
14 public:
15
20
22 const std::string& container_name,
23 MSG::Level msglvl);
24
25 ~sTGCPRDVariables() = default;
26
27 bool fill(const EventContext& ctx) override final;
28
29 bool declare_keys() override final;
30
35 unsigned int push_back(const Muon::sTgcPrepData& prd);
36
38 void dumpAllHitsInChamber(const MuonGM::sTgcReadoutElement& detEle);
40 void enableSeededDump();
41
42
43 private:
44 unsigned int dump(const Muon::sTgcPrepData& prd);
45 SG::ReadHandleKey<Muon::sTgcPrepDataContainer> m_key{};
53
57
60 MatrixBranch<uint16_t>& m_NSWsTGC_PRD_stripChannel{parent().newMatrix<uint16_t>("PRD_sTGC_stripChannel")};
61
64
65
67 std::unordered_set<Identifier> m_filteredChamb{};
69 std::unordered_map<Identifier, unsigned int> m_filteredPRDs{};
71 bool m_applyFilter{false};
73 bool m_externalPush{false};
74 };
75};
76
77#endif // MuonPRDTEST_sTGCPRDVARIABLES_H
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
std::unordered_map< Identifier, unsigned int > m_filteredPRDs
Set of particular chambers to be dumped.
VectorBranch< double > & m_NSWsTGC_PRD_covMatrix_1_1
VectorBranch< uint8_t > & m_stgcAuthor
VectorBranch< double > & m_NSWsTGC_PRD_localPosY
VectorBranch< short > & m_NSWsTGC_PRD_time
bool declare_keys() override final
bool m_applyFilter
Apply a filter to dump the prds.
MatrixBranch< int > & m_NSWsTGC_PRD_stripCharge
bool m_externalPush
Flag telling whether an external prd has been pushed.
sTGCPRDVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Standard constructor taking the MuonTesterTree as parent The container name under which the MicroMega...
void dumpAllHitsInChamber(const MuonGM::sTgcReadoutElement &detEle)
Adds all hits in this particular chamber to the output n-tuple.
VectorBranch< double > & m_NSWsTGC_PRD_covMatrix_2_2
SG::ReadHandleKey< Muon::sTgcPrepDataContainer > m_key
ScalarBranch< unsigned int > & m_NSWsTGC_nPRD
sTgcIdentifierBranch m_NSWsTGC_PRD_id
VectorBranch< double > & m_NSWsTGC_PRD_localPosX
MatrixBranch< uint16_t > & m_NSWsTGC_PRD_stripChannel
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< int > & m_NSWsTGC_PRD_charge
unsigned int push_back(const Muon::sTgcPrepData &prd)
Adds a prd to the output tree.
void enableSeededDump()
Dumps only hits which are marked by the dumpAllHitsInChamber method.
VectorBranch< int > & m_NSWsTGC_PRD_nStrips
VectorBranch< uint8_t > & m_stgcQuality
std::unordered_set< Identifier > m_filteredChamb
Set of chambers to be dumped.
ThreeVectorBranch m_NSWsTGC_PRD_globalPos
MatrixBranch< short > & m_NSWsTGC_PRD_stripTime
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
TTree * tree() override final
Returns the underlying TTree object.
MatrixBranch< T > & newMatrix(const std::string &name)
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
ScalarBranch< T > & newScalar(const std::string &name)
Branch to store all information of the sTgcIdentifier.
Ensure that the Athena extensions are properly loaded.
Definition GeoMuonHits.h:27
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Forward declaration.
-event-from-file
#define private