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