ATLAS Offline Software
MuonHitTesterAlg.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 MUONPRDTESTR4_MUONHITTESTERALH_H
6 #define MUONPRDTESTR4_MUONHITTESTERALH_H
7 
9 
13 namespace MuonValR4 {
15  public:
16  MuonHitTesterAlg(const std::string& alg_name,
17  ISvcLocator* pSvcLocator);
18 
19  StatusCode initialize() override final;
20  StatusCode finalize() override final;
21  StatusCode execute() override final;
22  unsigned int cardinality() const override final { return 1; }
23 
24  private:
25  MuonVal::MuonTesterTree m_tree{"MuonHitTest", "MuonR4HitTest"};
26 
27  Gaudi::Property<bool> m_isMC{this, "isMC", true};
28 
29  SG::ReadHandleKey<xAOD::EventInfo> m_evtKey{this, "EvtInfoKey", "EventInfo"};
30 
36  Gaudi::Property<bool> m_writeSimHits{this, "dumpSimHits", true,
37  "Master switch toggling the sim hits"};
38  Gaudi::Property<bool> m_writeMdtSim{this, "dumpMdtSimHits", true};
39  Gaudi::Property<bool> m_writeRpcSim{this, "dumpRpcSimHits", true};
40  Gaudi::Property<bool> m_writeTgcSim{this, "dumpTgcSimHits", true};
41  Gaudi::Property<bool> m_writesTgcSim{this, "dumpStgcSimHits", true};
42  Gaudi::Property<bool> m_writeMmSim{this, "dumpMmSimHits", true};
43 
47  Gaudi::Property<std::string> m_mdtSimHitKey{this, "MdtSimHitKey", "xMdtSimHits"};
48  Gaudi::Property<std::string> m_rpcSimHitKey{this, "RpcSimHitKey", "xRpcSimHits"};
49  Gaudi::Property<std::string> m_tgcSimHitKey{this, "TgcSimHitKey", "xTgcSimHits"};
50  Gaudi::Property<std::string> m_mmSimHitKey{this, "MmSimHitKey", "xMmSimHits"};
51  Gaudi::Property<std::string> m_sTgcSimHitKey{this, "sTgcSimHitKey", "xStgcSimHits"};
56  Gaudi::Property<bool> m_writeDigits{this, "dumpDigits", false,
57  "Master switch toggling the digit collections"};
58 
59  Gaudi::Property<bool> m_writeMdtDigits{this, "dumpMdtDigits", true};
60  Gaudi::Property<bool> m_writeRpcDigits{this, "dumpRpcDigits", true};
61  Gaudi::Property<bool> m_writeTgcDigits{this, "dumpTgcDigits", true};
62  Gaudi::Property<bool> m_writesTgcDigits{this, "dumpStgcDigits", true};
63  Gaudi::Property<bool> m_writeMmDigits{this, "dumpMmDigits", true};
64 
68  Gaudi::Property<std::string> m_mdtDigitKey{this, "MdtDigitKey", "MDT_DIGITS"};
69  Gaudi::Property<std::string> m_rpcDigitKey{this, "RpcDigitKey", "RPC_DIGITS"};
70  Gaudi::Property<std::string> m_tgcDigitKey{this, "TgcDigitKey", "TGC_DIGITS"};
71  Gaudi::Property<std::string> m_mmDigitKey{this, "MmDigitKey", "MM_DIGITS"};
72  Gaudi::Property<std::string> m_sTgcDigitKey{this, "sTgcDigitKey", "sTGC_DIGITS"};
77  Gaudi::Property<bool> m_writePrds{this, "dumpPrds", false,
78  "Master switch toggling the prd collection dump"};
79 
80  Gaudi::Property<bool> m_writeMdtPrds{this, "dumpMdtPrds", true};
81  Gaudi::Property<bool> m_writeRpcPrds{this, "dumpRpcPrds", true};
82  Gaudi::Property<bool> m_writeTgcPrds{this, "dumpTgcPrds", true};
83  Gaudi::Property<bool> m_writeMmPrds{this, "dumpMmPrds", true};
87  Gaudi::Property<std::string> m_mdtPrdKey{this, "MdtPrdKey", "xMdtDriftCircles"};
88  Gaudi::Property<std::string> m_mdtTwinPrdKey{this, "MdtTwinPrdKey", "xMdtTwinDriftCircles"};
89  Gaudi::Property<std::string> m_rpcPrdKey{this, "RpcPrdKey", "xRpcMeasurements"};
90  Gaudi::Property<std::string> m_tgcPrdKey{this, "TgcPrdKey", "xTgcStrips"};
91  Gaudi::Property<std::string> m_mmPrdKey{this, "MmPrdKey", "xAODMMClusters"};
92  };
93 }
94 #endif
MuonValR4::MuonHitTesterAlg::m_mdtPrdKey
Gaudi::Property< std::string > m_mdtPrdKey
Prd collection names.
Definition: MuonHitTesterAlg.h:87
MuonValR4::MuonHitTesterAlg::m_writeRpcPrds
Gaudi::Property< bool > m_writeRpcPrds
Definition: MuonHitTesterAlg.h:81
MuonValR4::MuonHitTesterAlg::m_sTgcDigitKey
Gaudi::Property< std::string > m_sTgcDigitKey
Definition: MuonHitTesterAlg.h:72
MuonValR4::MuonHitTesterAlg::setupSimHits
StatusCode setupSimHits()
Toggle whether the simHit collection of each sub detector shall be written to disk.
Definition: MuonHitTesterAlg.cxx:40
MuonValR4::MuonHitTesterAlg::cardinality
unsigned int cardinality() const override final
Definition: MuonHitTesterAlg.h:22
MuonValR4::MuonHitTesterAlg::m_writeMmPrds
Gaudi::Property< bool > m_writeMmPrds
Definition: MuonHitTesterAlg.h:83
MuonValR4::MuonHitTesterAlg::initialize
StatusCode initialize() override final
Definition: MuonHitTesterAlg.cxx:29
MuonValR4::MuonHitTesterAlg::m_mdtSimHitKey
Gaudi::Property< std::string > m_mdtSimHitKey
Container keys of the particular sim hit collections.
Definition: MuonHitTesterAlg.h:47
run_gep.alg_name
alg_name
Definition: run_gep.py:298
MuonValR4::MuonHitTesterAlg::m_mdtDigitKey
Gaudi::Property< std::string > m_mdtDigitKey
Container keys of the particular digit collections.
Definition: MuonHitTesterAlg.h:68
MuonValR4::MuonHitTesterAlg::m_rpcPrdKey
Gaudi::Property< std::string > m_rpcPrdKey
Definition: MuonHitTesterAlg.h:89
MuonValR4::MuonHitTesterAlg::m_writesTgcSim
Gaudi::Property< bool > m_writesTgcSim
Definition: MuonHitTesterAlg.h:41
MuonValR4::MuonHitTesterAlg::m_mmPrdKey
Gaudi::Property< std::string > m_mmPrdKey
Definition: MuonHitTesterAlg.h:91
MuonValR4::MuonHitTesterAlg
Definition: MuonHitTesterAlg.h:14
MuonValR4::MuonHitTesterAlg::m_writeMmDigits
Gaudi::Property< bool > m_writeMmDigits
Definition: MuonHitTesterAlg.h:63
MuonValR4::MuonHitTesterAlg::m_writeMdtDigits
Gaudi::Property< bool > m_writeMdtDigits
Definition: MuonHitTesterAlg.h:59
MuonTesterTree.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
MuonValR4::MuonHitTesterAlg::m_writeDigits
Gaudi::Property< bool > m_writeDigits
Definition: MuonHitTesterAlg.h:56
SG::ReadHandleKey< xAOD::EventInfo >
MuonValR4::MuonHitTesterAlg::m_sTgcSimHitKey
Gaudi::Property< std::string > m_sTgcSimHitKey
Definition: MuonHitTesterAlg.h:51
MuonValR4::MuonHitTesterAlg::finalize
StatusCode finalize() override final
Definition: MuonHitTesterAlg.cxx:112
MuonValR4::MuonHitTesterAlg::setupPrds
StatusCode setupPrds()
Toggle whether the uncalibrated measurement collections shall be tested.
Definition: MuonHitTesterAlg.cxx:93
AthHistogramAlgorithm.h
MuonValR4::MuonHitTesterAlg::m_rpcSimHitKey
Gaudi::Property< std::string > m_rpcSimHitKey
Definition: MuonHitTesterAlg.h:48
MuonValR4::MuonHitTesterAlg::MuonHitTesterAlg
MuonHitTesterAlg(const std::string &alg_name, ISvcLocator *pSvcLocator)
Definition: MuonHitTesterAlg.cxx:25
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonValR4::MuonHitTesterAlg::m_tree
MuonVal::MuonTesterTree m_tree
Definition: MuonHitTesterAlg.h:25
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
MuonValR4::MuonHitTesterAlg::m_writeMdtPrds
Gaudi::Property< bool > m_writeMdtPrds
Definition: MuonHitTesterAlg.h:80
MuonValR4::MuonHitTesterAlg::setupDigits
StatusCode setupDigits()
Toggle whether the digit collections shall be tested.
Definition: MuonHitTesterAlg.cxx:72
MuonValR4
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
Definition: IPatternVisualizationTool.h:23
MuonValR4::MuonHitTesterAlg::m_tgcPrdKey
Gaudi::Property< std::string > m_tgcPrdKey
Definition: MuonHitTesterAlg.h:90
MuonValR4::MuonHitTesterAlg::m_writesTgcDigits
Gaudi::Property< bool > m_writesTgcDigits
Definition: MuonHitTesterAlg.h:62
MuonValR4::MuonHitTesterAlg::execute
StatusCode execute() override final
Definition: MuonHitTesterAlg.cxx:116
MuonValR4::MuonHitTesterAlg::m_mdtTwinPrdKey
Gaudi::Property< std::string > m_mdtTwinPrdKey
Definition: MuonHitTesterAlg.h:88
MuonValR4::MuonHitTesterAlg::m_evtKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
Definition: MuonHitTesterAlg.h:29
MuonValR4::MuonHitTesterAlg::m_isMC
Gaudi::Property< bool > m_isMC
Definition: MuonHitTesterAlg.h:27
MuonValR4::MuonHitTesterAlg::m_mmDigitKey
Gaudi::Property< std::string > m_mmDigitKey
Definition: MuonHitTesterAlg.h:71
MuonValR4::MuonHitTesterAlg::m_writeTgcSim
Gaudi::Property< bool > m_writeTgcSim
Definition: MuonHitTesterAlg.h:40
EventInfo.h
MuonValR4::MuonHitTesterAlg::m_writeSimHits
Gaudi::Property< bool > m_writeSimHits
Definition: MuonHitTesterAlg.h:36
MuonValR4::MuonHitTesterAlg::m_writeMdtSim
Gaudi::Property< bool > m_writeMdtSim
Definition: MuonHitTesterAlg.h:38
MuonValR4::MuonHitTesterAlg::m_writeRpcSim
Gaudi::Property< bool > m_writeRpcSim
Definition: MuonHitTesterAlg.h:39
MuonValR4::MuonHitTesterAlg::m_tgcSimHitKey
Gaudi::Property< std::string > m_tgcSimHitKey
Definition: MuonHitTesterAlg.h:49
MuonValR4::MuonHitTesterAlg::m_writeMmSim
Gaudi::Property< bool > m_writeMmSim
Definition: MuonHitTesterAlg.h:42
MuonValR4::MuonHitTesterAlg::m_writeTgcPrds
Gaudi::Property< bool > m_writeTgcPrds
Definition: MuonHitTesterAlg.h:82
MuonValR4::MuonHitTesterAlg::m_rpcDigitKey
Gaudi::Property< std::string > m_rpcDigitKey
Definition: MuonHitTesterAlg.h:69
MuonValR4::MuonHitTesterAlg::m_writeTgcDigits
Gaudi::Property< bool > m_writeTgcDigits
Definition: MuonHitTesterAlg.h:61
MuonValR4::MuonHitTesterAlg::m_mmSimHitKey
Gaudi::Property< std::string > m_mmSimHitKey
Definition: MuonHitTesterAlg.h:50
MuonValR4::MuonHitTesterAlg::m_tgcDigitKey
Gaudi::Property< std::string > m_tgcDigitKey
Definition: MuonHitTesterAlg.h:70
MuonValR4::MuonHitTesterAlg::m_writePrds
Gaudi::Property< bool > m_writePrds
Definition: MuonHitTesterAlg.h:77
MuonValR4::MuonHitTesterAlg::m_writeRpcDigits
Gaudi::Property< bool > m_writeRpcDigits
Definition: MuonHitTesterAlg.h:60
IMuonIdHelperSvc.h