Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
HitValAlg.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_NSWPRDVALALG_H
6 #define MUONPRDTEST_NSWPRDVALALG_H
7 
9 
15 
16 namespace MuonVal{
18 public:
19 
21 
22  StatusCode initialize() override;
23  StatusCode finalize() override;
24  StatusCode execute() override;
25  unsigned int cardinality() const override final { return 1; }
26 
27 private:
28 
34 
35  MuonVal::MuonTesterTree m_tree{"MuonHitValidTree", "MUONHITVALIDSTREAM"};
36 
37  ServiceHandle<MuonTGC_CablingSvc> m_tgcCabling{this, "TGCCablingSvc", "MuonTGC_CablingSvc"};
38 
39  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
40  PublicToolHandle<Muon::ICSC_RDO_Decoder> m_csc_decoder{this, "CscRDODecoder", "Muon::CscRDO_Decoder/CSC_RDODecoder"};
41 
42  Gaudi::Property<bool> m_isData{this, "isData", false}; // if false use MuonDetectorManager from detector store everywhere
43  Gaudi::Property<bool> m_doTruth{this, "doTruth", false}; // switch on the output of the MC truth
44  Gaudi::Property<bool> m_doMuEntry{this, "doMuEntry", false}; // switch on the output of the Muon Entry Layer
45 
46  Gaudi::Property<bool> m_doSimHits{this, "doSimHits", false};
47  Gaudi::Property<bool> m_doSDO{this, "doSDOs", false};
48  Gaudi::Property<bool> m_doDigits{this, "doDigits", false};
49  Gaudi::Property<bool> m_doRDOs{this, "doRDOs", false};
50  Gaudi::Property<bool> m_doPRDs{this, "doPRDs", false};
51 
52  Gaudi::Property<bool> m_doSTGCHit{this, "doSTGCHit", false}; // switch on the output of the Small TGC simulated hits
53  Gaudi::Property<bool> m_doSTGCSDO{this, "doSTGCSDO", false}; // switch on the output of the sTGC SDO
54  Gaudi::Property<bool> m_doSTGCDigit{this, "doSTGCDigit", false}; // swicth on the output of the Small TGC digit
55  Gaudi::Property<bool> m_doSTGCRDO{this, "doSTGCRDO", false}; // switch on the output of the Small TGC RDO
56  Gaudi::Property<bool> m_doSTGCPRD{this, "doSTGCPRD", false}; // swicth on the output of the Small TGC prepdata
57 
58  Gaudi::Property<bool> m_doMMHit{this, "doMMHit", false}; // switch on the output of the MicroMegas simulated hits
59  Gaudi::Property<bool> m_doMMSDO{this, "doMMSDO", false}; // switch on the output of the MicroMegas SDO
60  Gaudi::Property<bool> m_doMMDigit{this, "doMMDigit", false}; // switch on the output of the MicroMegas digitization
61  Gaudi::Property<bool> m_doMMRDO{this, "doMMRDO", false}; // switch on the output of the MicroMegas RDO
62  Gaudi::Property<bool> m_doMMPRD{this, "doMMPRD", false}; // switch on the output of the MicroMegas prepdata
63 
64  Gaudi::Property<bool> m_doCSCHit{this, "doCSCHit", false}; // switch on the output of the CSC simulated hits
65  Gaudi::Property<bool> m_doCSCSDO{this, "doCSCSDO", false}; // switch on the output of the CSC SDO
66  Gaudi::Property<bool> m_doCSCDigit{this, "doCSCDigit", false}; // switch on the output of the CSC digitization
67  Gaudi::Property<bool> m_doCSCRDO{this, "doCSCRDO", false}; // switch on the output of the CSC RDO
68  Gaudi::Property<bool> m_doCSCPRD{this, "doCSCPRD", false}; // switch on the output of the CSC prepdata
69 
70  Gaudi::Property<bool> m_doMDTHit{this, "doMDTHit", false}; // switch on the output of the MDT simulated hits
71  Gaudi::Property<bool> m_doMDTSDO{this, "doMDTSDO", false}; // switch on the output of the MDT SDO
72  Gaudi::Property<bool> m_doMDTDigit{this, "doMDTDigit", false}; // switch on the output of the MDT digitization
73 
74  Gaudi::Property<bool> m_doRPCHit{this, "doRPCHit", false}; // switch on the output of the RPC simulated hits
75  Gaudi::Property<bool> m_doRPCSDO{this, "doRPCSDO", false}; // switch on the output of the RPC SDO
76  Gaudi::Property<bool> m_doRPCDigit{this, "doRPCDigit", false}; // switch on the output of the RPC digitization
77 
78  Gaudi::Property<bool> m_doTGCHit{this, "doTGCHit", false}; // switch on the output of the TGC simulated hits
79  Gaudi::Property<bool> m_doTGCSDO{this, "doTGCSDO", false}; // switch on the output of the TGC SDO
80  Gaudi::Property<bool> m_doTGCDigit{this, "doTGCDigit", false}; // switch on the output of the TGC digitization
81  Gaudi::Property<bool> m_doTGCRDO{this, "doTGCRDO", false}; // switch on the output of the TGC RDO
82  Gaudi::Property<bool> m_doTGCPRD{this, "doTGCPRD", false}; // switch on the output of the TGC prepdata
83 
84 
85  SG::ReadHandleKey<xAOD::EventInfo> m_evtInfo{this, "EvtInfo", "EventInfo"};
86  Gaudi::Property<std::string> m_Truth_ContainerName{this, "Truth_ContainerName", "TruthEvent"};
87  Gaudi::Property<std::string> m_MuEntry_ContainerName{this, "MuonEntryLayer_ContainerName", "MuonEntryLayer"};
88 
89  Gaudi::Property<std::string> m_sTgcSimKey{this, "sTgcSimKey", "sTGC_Hits"};
90  Gaudi::Property<std::string> m_sTgcSdoKey{this, "sTgcSdoKey", "sTGC_SDO"};
91  Gaudi::Property<std::string> m_sTgcDigitKey{this, "sTgcDigitKey", "sTGC_DIGITS"};
92  Gaudi::Property<std::string> m_sTgcRdoKey{this, "sTgcRdoKey", "sTGCRDO"};
93  Gaudi::Property<std::string> m_sTgcPRDKey{this, "sTgcPrdKey", "STGC_Measurements"};
94 
95  Gaudi::Property<std::string> m_MmSimKey{this, "MmSimKey", "MM_Hits"};
96  Gaudi::Property<std::string> m_MmSdoKey{this, "MmSdoKey", "MM_SDO"};
97  Gaudi::Property<std::string> m_MmDigitKey{this, "MmDigitKey", "MM_DIGITS"};
98  Gaudi::Property<std::string> m_MmRdoKey{this, "MmRdoKey", "MMRDO"};
99  Gaudi::Property<std::string> m_MmPrdKey{this, "MmPrdKey", "MM_Measurements"};
100 
101  Gaudi::Property<std::string> m_CSC_SimContainerName{this, "CSC_SimContainerName", "CSC_Hits"};
102  Gaudi::Property<std::string> m_CSC_SDOContainerName{this, "CSC_SDOContainerName", "CSC_SDO"};
103  Gaudi::Property<std::string> m_CSC_DigitContainerName{this, "CSC_DigitContainerName", "CSC_DIGITS"};
104  Gaudi::Property<std::string> m_CSC_RDOContainerName{this, "CSC_RDOContainerName", "CSCRDO"};
105  Gaudi::Property<std::string> m_CSC_PRDContainerName{this, "CSC_PRDContainerName", "CSC_Clusters"};
106 
107  Gaudi::Property<std::string> m_MdtSimHitKey{this, "MdtSimKey", "MDT_Hits"};
108  Gaudi::Property<std::string> m_MdtSdoKey{this, "MdtSdoKey", "MDT_SDO"};
109  Gaudi::Property<std::string> m_MdtDigitKey{this, "MdtDigitKey", "MDT_DIGITS"};
110 
111  Gaudi::Property<std::string> m_RpcSimHitKey{this, "RpcSimKey", "RPC_Hits"};
112  Gaudi::Property<std::string> m_RpcSdoKey{this, "RpcSdoKey", "RPC_SDO"};
113  Gaudi::Property<std::string> m_RpcDigitKey{this, "RpcDigitKey", "RPC_DIGITS"};
114 
115  Gaudi::Property<std::string> m_TgcSimHitKey{this, "TgcSimKey", "TGC_Hits"};
116  Gaudi::Property<std::string> m_TgcSdoKey{this, "TgcSdoKey", "TGC_SDO"};
117  Gaudi::Property<std::string> m_TgcDigitKey{this, "TgcDigitKey", "TGC_DIGITS"};
118  Gaudi::Property<std::string> m_TgcRdoKey{this, "TgcRdoKey", "TGCRDO"};
119  Gaudi::Property<std::string> m_TgcPrdKey{this, "TgcPrdKey", "TGC_Measurements"};
120 
121  // Matching algorithm
122 
123  Gaudi::Property<bool> m_doNSWMatching{this, "doNSWMatchingAlg", false};
124  Gaudi::Property<bool> m_doNSWMatchingMuon{this, "doNSWMatchingMuonOnly", false};
125  Gaudi::Property<uint> m_maxStripDiff{this, "setMaxStripDistance", 3};
126 };
127 }
128 #endif // NSWPRDVALALG_H
ICSC_RDO_Decoder.h
MuonVal::HitValAlg::m_doRPCSDO
Gaudi::Property< bool > m_doRPCSDO
Definition: HitValAlg.h:75
MuonVal::HitValAlg::execute
StatusCode execute() override
Definition: HitValAlg.cxx:163
MuonVal::HitValAlg::m_doNSWMatching
Gaudi::Property< bool > m_doNSWMatching
Definition: HitValAlg.h:123
MuonVal::HitValAlg::m_doSTGCSDO
Gaudi::Property< bool > m_doSTGCSDO
Definition: HitValAlg.h:53
MuonVal::HitValAlg::m_doPRDs
Gaudi::Property< bool > m_doPRDs
Switch to toggle the dumping of RDOs in general.
Definition: HitValAlg.h:50
MuonTGC_CablingSvc.h
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: AthHistogramAlgorithm.cxx:31
MuonVal::HitValAlg::m_CSC_RDOContainerName
Gaudi::Property< std::string > m_CSC_RDOContainerName
Definition: HitValAlg.h:104
MuonVal::HitValAlg::m_doTGCDigit
Gaudi::Property< bool > m_doTGCDigit
Definition: HitValAlg.h:80
MuonVal::HitValAlg::m_TgcPrdKey
Gaudi::Property< std::string > m_TgcPrdKey
Definition: HitValAlg.h:119
MuonVal::HitValAlg::m_sTgcDigitKey
Gaudi::Property< std::string > m_sTgcDigitKey
Definition: HitValAlg.h:91
MuonVal::HitValAlg::m_RpcSdoKey
Gaudi::Property< std::string > m_RpcSdoKey
Definition: HitValAlg.h:112
MuonVal::HitValAlg::m_tree
MuonVal::MuonTesterTree m_tree
Definition: HitValAlg.h:35
MuonVal::HitValAlg::m_sTgcRdoKey
Gaudi::Property< std::string > m_sTgcRdoKey
Definition: HitValAlg.h:92
MuonVal::HitValAlg::m_evtInfo
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfo
Definition: HitValAlg.h:85
MuonVal::HitValAlg::m_doMMRDO
Gaudi::Property< bool > m_doMMRDO
Definition: HitValAlg.h:61
MuonVal::HitValAlg::m_doSTGCRDO
Gaudi::Property< bool > m_doSTGCRDO
Definition: HitValAlg.h:55
MuonVal::HitValAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: HitValAlg.h:39
MuonVal::HitValAlg::m_MmPrdKey
Gaudi::Property< std::string > m_MmPrdKey
Definition: HitValAlg.h:99
MuonVal::HitValAlg::m_doSTGCPRD
Gaudi::Property< bool > m_doSTGCPRD
Definition: HitValAlg.h:56
MuonVal::HitValAlg::m_TgcSdoKey
Gaudi::Property< std::string > m_TgcSdoKey
Definition: HitValAlg.h:116
MuonTesterTree.h
MuonVal::HitValAlg::m_doCSCDigit
Gaudi::Property< bool > m_doCSCDigit
Definition: HitValAlg.h:66
MuonVal::HitValAlg::m_doNSWMatchingMuon
Gaudi::Property< bool > m_doNSWMatchingMuon
Definition: HitValAlg.h:124
MuonVal::HitValAlg::m_doSDO
Gaudi::Property< bool > m_doSDO
Switch to toggle the dumping of sim hits in general.
Definition: HitValAlg.h:47
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey< xAOD::EventInfo >
MuonVal::HitValAlg::m_doMMDigit
Gaudi::Property< bool > m_doMMDigit
Definition: HitValAlg.h:60
MuonVal::HitValAlg::m_doMMSDO
Gaudi::Property< bool > m_doMMSDO
Definition: HitValAlg.h:59
MuonVal::HitValAlg::m_MdtSimHitKey
Gaudi::Property< std::string > m_MdtSimHitKey
Definition: HitValAlg.h:107
MuonVal::HitValAlg::m_doSTGCHit
Gaudi::Property< bool > m_doSTGCHit
Switch to toggle the dumping of PRDs in general.
Definition: HitValAlg.h:52
MuonVal::HitValAlg::finalize
StatusCode finalize() override
Definition: HitValAlg.cxx:157
MuonVal::HitValAlg::m_MmSdoKey
Gaudi::Property< std::string > m_MmSdoKey
Definition: HitValAlg.h:96
AthHistogramAlgorithm.h
MuonVal::HitValAlg::m_tgcCabling
ServiceHandle< MuonTGC_CablingSvc > m_tgcCabling
Definition: HitValAlg.h:37
MuonVal::HitValAlg::m_CSC_SimContainerName
Gaudi::Property< std::string > m_CSC_SimContainerName
Definition: HitValAlg.h:101
MuonVal::HitValAlg::m_doTGCPRD
Gaudi::Property< bool > m_doTGCPRD
Definition: HitValAlg.h:82
MuonVal::HitValAlg::m_doCSCRDO
Gaudi::Property< bool > m_doCSCRDO
Definition: HitValAlg.h:67
MuonVal::HitValAlg::m_isData
Gaudi::Property< bool > m_isData
Definition: HitValAlg.h:42
MuonVal::HitValAlg::m_doMuEntry
Gaudi::Property< bool > m_doMuEntry
Definition: HitValAlg.h:44
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonVal::HitValAlg::m_doCSCHit
Gaudi::Property< bool > m_doCSCHit
Definition: HitValAlg.h:64
MuonVal::HitValAlg::m_RpcSimHitKey
Gaudi::Property< std::string > m_RpcSimHitKey
Definition: HitValAlg.h:111
MuonVal::HitValAlg::m_sTgcPRDKey
Gaudi::Property< std::string > m_sTgcPRDKey
Definition: HitValAlg.h:93
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonVal::HitValAlg::setupRDOs
StatusCode setupRDOs()
Definition: HitValAlg.cxx:86
MuonVal::HitValAlg::m_CSC_SDOContainerName
Gaudi::Property< std::string > m_CSC_SDOContainerName
Definition: HitValAlg.h:102
MuonVal::HitValAlg::m_doSTGCDigit
Gaudi::Property< bool > m_doSTGCDigit
Definition: HitValAlg.h:54
MuonVal::HitValAlg::initialize
StatusCode initialize() override
Definition: HitValAlg.cxx:119
MuonVal::HitValAlg::m_sTgcSimKey
Gaudi::Property< std::string > m_sTgcSimKey
Definition: HitValAlg.h:89
MuonVal::HitValAlg::m_CSC_DigitContainerName
Gaudi::Property< std::string > m_CSC_DigitContainerName
Definition: HitValAlg.h:103
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
MuonVal::HitValAlg::m_doMDTSDO
Gaudi::Property< bool > m_doMDTSDO
Definition: HitValAlg.h:71
MuonVal::HitValAlg::m_TgcDigitKey
Gaudi::Property< std::string > m_TgcDigitKey
Definition: HitValAlg.h:117
MuonVal::HitValAlg::m_MmRdoKey
Gaudi::Property< std::string > m_MmRdoKey
Definition: HitValAlg.h:98
MuonVal::HitValAlg::m_CSC_PRDContainerName
Gaudi::Property< std::string > m_CSC_PRDContainerName
Definition: HitValAlg.h:105
MuonVal
Class to store array like branches into the n-tuples.
Definition: HitValAlg.cxx:19
MuonVal::HitValAlg::setupSDOs
StatusCode setupSDOs()
Definition: HitValAlg.cxx:44
MuonVal::HitValAlg::m_doCSCPRD
Gaudi::Property< bool > m_doCSCPRD
Definition: HitValAlg.h:68
MuonVal::HitValAlg::setupPRDs
StatusCode setupPRDs()
Definition: HitValAlg.cxx:103
MuonVal::HitValAlg::m_maxStripDiff
Gaudi::Property< uint > m_maxStripDiff
Definition: HitValAlg.h:125
MuonVal::HitValAlg::m_csc_decoder
PublicToolHandle< Muon::ICSC_RDO_Decoder > m_csc_decoder
Definition: HitValAlg.h:40
EventInfo.h
MuonVal::HitValAlg::m_doTGCSDO
Gaudi::Property< bool > m_doTGCSDO
Definition: HitValAlg.h:79
MuonVal::HitValAlg::m_doRPCDigit
Gaudi::Property< bool > m_doRPCDigit
Definition: HitValAlg.h:76
MuonVal::HitValAlg::m_Truth_ContainerName
Gaudi::Property< std::string > m_Truth_ContainerName
Definition: HitValAlg.h:86
MuonVal::HitValAlg::m_doTGCHit
Gaudi::Property< bool > m_doTGCHit
Definition: HitValAlg.h:78
MuonVal::HitValAlg
Definition: HitValAlg.h:17
MuonVal::HitValAlg::m_doTruth
Gaudi::Property< bool > m_doTruth
Definition: HitValAlg.h:43
MuonVal::HitValAlg::setupDigits
StatusCode setupDigits()
Definition: HitValAlg.cxx:65
MuonVal::HitValAlg::m_doRPCHit
Gaudi::Property< bool > m_doRPCHit
Definition: HitValAlg.h:74
MuonVal::HitValAlg::m_doCSCSDO
Gaudi::Property< bool > m_doCSCSDO
Definition: HitValAlg.h:65
MuonVal::HitValAlg::m_sTgcSdoKey
Gaudi::Property< std::string > m_sTgcSdoKey
Definition: HitValAlg.h:90
MuonVal::HitValAlg::m_doRDOs
Gaudi::Property< bool > m_doRDOs
Switch to toggle the dumping of Digits in general.
Definition: HitValAlg.h:49
MuonVal::HitValAlg::m_doSimHits
Gaudi::Property< bool > m_doSimHits
Definition: HitValAlg.h:46
MuonVal::HitValAlg::m_RpcDigitKey
Gaudi::Property< std::string > m_RpcDigitKey
Definition: HitValAlg.h:113
MuonVal::HitValAlg::m_doTGCRDO
Gaudi::Property< bool > m_doTGCRDO
Definition: HitValAlg.h:81
MuonVal::HitValAlg::m_TgcSimHitKey
Gaudi::Property< std::string > m_TgcSimHitKey
Definition: HitValAlg.h:115
MuonVal::HitValAlg::m_doMDTHit
Gaudi::Property< bool > m_doMDTHit
Definition: HitValAlg.h:70
MuonVal::HitValAlg::m_doMMPRD
Gaudi::Property< bool > m_doMMPRD
Definition: HitValAlg.h:62
MuonVal::HitValAlg::m_MdtSdoKey
Gaudi::Property< std::string > m_MdtSdoKey
Definition: HitValAlg.h:108
MuonVal::HitValAlg::m_doMDTDigit
Gaudi::Property< bool > m_doMDTDigit
Definition: HitValAlg.h:72
MuonVal::HitValAlg::m_MuEntry_ContainerName
Gaudi::Property< std::string > m_MuEntry_ContainerName
Definition: HitValAlg.h:87
MuonVal::HitValAlg::m_MdtDigitKey
Gaudi::Property< std::string > m_MdtDigitKey
Definition: HitValAlg.h:109
MuonVal::HitValAlg::setupSimHits
StatusCode setupSimHits()
Definition: HitValAlg.cxx:23
MuonVal::HitValAlg::m_TgcRdoKey
Gaudi::Property< std::string > m_TgcRdoKey
Definition: HitValAlg.h:118
MuonVal::HitValAlg::cardinality
unsigned int cardinality() const override final
Definition: HitValAlg.h:25
IMuonIdHelperSvc.h
MuonVal::HitValAlg::m_MmDigitKey
Gaudi::Property< std::string > m_MmDigitKey
Definition: HitValAlg.h:97
MuonVal::HitValAlg::m_doDigits
Gaudi::Property< bool > m_doDigits
Switch to toggle the dumping of SDOs in general.
Definition: HitValAlg.h:48
MuonVal::HitValAlg::m_MmSimKey
Gaudi::Property< std::string > m_MmSimKey
Definition: HitValAlg.h:95
ServiceHandle< MuonTGC_CablingSvc >
MuonVal::HitValAlg::m_doMMHit
Gaudi::Property< bool > m_doMMHit
Definition: HitValAlg.h:58