ATLAS Offline Software
MMRDOVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MuonPRDTEST_MMRDOVARIABLES_H
6 #define MuonPRDTEST_MMRDOVARIABLES_H
7 
10 
11 namespace MuonPRDTest{
13  public:
14  MMRDOVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
15 
16  ~MMRDOVariables() = default;
17 
18  bool fill(const EventContext& ctx) override final;
19 
20  bool declare_keys() override final;
21 
26  unsigned int push_back(const EventContext& ctx, const Muon::MM_RawData& rdo);
27  unsigned int push_back(const EventContext& ctx, const Identifier& id);
28 
30  void dumpAllHitsInChamber(const MuonGM::MMReadoutElement& detEle);
32  void enableSeededDump();
33 
34  private:
35  unsigned int dump(const EventContext& ctx, const Muon::MM_RawData& rdo);
36  SG::ReadHandleKey<Muon::MM_RawDataContainer> m_rdokey{};
45 
47  std::unordered_set<IdentifierHash> m_filteredChamb{};
49  std::unordered_map<Identifier, unsigned int> m_filteredRDOs{};
51  bool m_applyFilter{false};
53  bool m_externalPush{false};
54  };
55 };
56 
57 #endif // MuonPRDTEST_MMRDOVARIABLES_H
MuonPRDTest::MMRDOVariables
Definition: MMRDOVariables.h:12
MuonPRDTest::MMRDOVariables::enableSeededDump
void enableSeededDump()
Dumps only hits which are marked by the dumpAllHitsInChamber method.
Definition: MMRDOVariables.cxx:46
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::MMRDOVariables::dumpAllHitsInChamber
void dumpAllHitsInChamber(const MuonGM::MMReadoutElement &detEle)
Adds all hits in this particular chamber to the output n-tuple.
Definition: MMRDOVariables.cxx:48
MuonVal::VectorBranch< int >
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
MuonPRDTest::MMRDOVariables::m_filteredRDOs
std::unordered_map< Identifier, unsigned int > m_filteredRDOs
Set of particular chambers to be dumped.
Definition: MMRDOVariables.h:49
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::MMRDOVariables::m_NSWMM_rdo_charge
VectorBranch< int > & m_NSWMM_rdo_charge
Definition: MMRDOVariables.h:39
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MmIdentifierBranch
Branch to store all information of the MmIdentifier.
Definition: IdentifierBranch.h:110
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
MuonPRDTest::MMRDOVariables::m_NSWMM_rdo_localPosY
VectorBranch< double > & m_NSWMM_rdo_localPosY
Definition: MMRDOVariables.h:42
MuonPRDTest::MMRDOVariables::m_NSWMM_rdo_localPosX
VectorBranch< double > & m_NSWMM_rdo_localPosX
Definition: MMRDOVariables.h:41
MuonPRDTest::MMRDOVariables::m_rdokey
SG::ReadHandleKey< Muon::MM_RawDataContainer > m_rdokey
Definition: MMRDOVariables.h:36
MuonPRDTest::MMRDOVariables::push_back
unsigned int push_back(const EventContext &ctx, const Muon::MM_RawData &rdo)
Adds a RDO to the output tree.
Definition: MMRDOVariables.cxx:41
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::MMRDOVariables::m_NSWMM_rdo_globalPos
ThreeVectorBranch m_NSWMM_rdo_globalPos
Definition: MMRDOVariables.h:43
PrdTesterModule.h
MuonPRDTest::MMRDOVariables::m_filteredChamb
std::unordered_set< IdentifierHash > m_filteredChamb
Set of chambers to be dumped.
Definition: MMRDOVariables.h:47
MuonPRDTest::MMRDOVariables::m_NSWMM_rdo_relBcid
VectorBranch< uint16_t > & m_NSWMM_rdo_relBcid
Definition: MMRDOVariables.h:40
MuonVal::ScalarBranch< unsigned int >
MuonPRDTest::MMRDOVariables::declare_keys
bool declare_keys() override final
Definition: MMRDOVariables.cxx:13
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonPRDTest::MMRDOVariables::m_NSWMM_rdo_id
MmIdentifierBranch m_NSWMM_rdo_id
Definition: MMRDOVariables.h:44
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::MMRDOVariables::~MMRDOVariables
~MMRDOVariables()=default
MM_RawDataContainer.h
MuonPRDTest::MMRDOVariables::m_applyFilter
bool m_applyFilter
Apply a filter to dump the prds.
Definition: MMRDOVariables.h:51
MuonPRDTest::MMRDOVariables::m_NSWMM_rdo_time
VectorBranch< int > & m_NSWMM_rdo_time
Definition: MMRDOVariables.h:38
MuonPRDTest::MMRDOVariables::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: MMRDOVariables.cxx:15
MuonPRDTest::MMRDOVariables::dump
unsigned int dump(const EventContext &ctx, const Muon::MM_RawData &rdo)
Definition: MMRDOVariables.cxx:72
MuonPRDTest
Definition: MuonHitTesterAlg.h:15
MuonPRDTest::MMRDOVariables::m_externalPush
bool m_externalPush
Flag telling whether an external prd has been pushed.
Definition: MMRDOVariables.h:53
MuonPRDTest::MMRDOVariables::MMRDOVariables
MMRDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: MMRDOVariables.cxx:11
private
#define private
Definition: xAODTruthCnvAlg.h:20
MuonPRDTest::MMRDOVariables::m_NSWMM_nRDO
ScalarBranch< unsigned int > & m_NSWMM_nRDO
Definition: MMRDOVariables.h:37
Identifier
Definition: IdentifierFieldParser.cxx:14