ATLAS Offline Software
Loading...
Searching...
No Matches
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_MuonHitValAlg_H
6#define MUONPRDTEST_MuonHitValAlg_H
7
9
15
16namespace MuonVal{
18public:
19
21
22 StatusCode initialize() override;
23 StatusCode finalize() override;
24 StatusCode execute() override;
25 unsigned int cardinality() const override final { return 1; }
26
27private:
28
29 StatusCode setupSimHits();
30 StatusCode setupSDOs();
31 StatusCode setupDigits();
32 StatusCode setupRDOs();
33 StatusCode setupPRDs();
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 Gaudi::Property<bool> m_doMDTPRD{this, "doMDTPRD", false}; // switch on the output of the MDT prepdata
74
75 Gaudi::Property<bool> m_doRPCHit{this, "doRPCHit", false}; // switch on the output of the RPC simulated hits
76 Gaudi::Property<bool> m_doRPCSDO{this, "doRPCSDO", false}; // switch on the output of the RPC SDO
77 Gaudi::Property<bool> m_doRPCDigit{this, "doRPCDigit", false}; // switch on the output of the RPC digitization
78 Gaudi::Property<bool> m_doRPCPRD{this, "doRPCPRD", false}; // switch on the output of the RPC prepdata
79
80 Gaudi::Property<bool> m_doTGCHit{this, "doTGCHit", false}; // switch on the output of the TGC simulated hits
81 Gaudi::Property<bool> m_doTGCSDO{this, "doTGCSDO", false}; // switch on the output of the TGC SDO
82 Gaudi::Property<bool> m_doTGCDigit{this, "doTGCDigit", false}; // switch on the output of the TGC digitization
83 Gaudi::Property<bool> m_doTGCRDO{this, "doTGCRDO", false}; // switch on the output of the TGC RDO
84 Gaudi::Property<bool> m_doTGCPRD{this, "doTGCPRD", false}; // switch on the output of the TGC prepdata
85
86
87 SG::ReadHandleKey<xAOD::EventInfo> m_evtInfo{this, "EvtInfo", "EventInfo"};
88 Gaudi::Property<std::string> m_Truth_ContainerName{this, "Truth_ContainerName", "TruthEvent"};
89 Gaudi::Property<std::string> m_MuEntry_ContainerName{this, "MuonEntryLayer_ContainerName", "MuonEntryLayer"};
90
91 Gaudi::Property<std::string> m_sTgcSimKey{this, "sTgcSimKey", "sTGC_Hits"};
92 Gaudi::Property<std::string> m_sTgcSdoKey{this, "sTgcSdoKey", "sTGC_SDO"};
93 Gaudi::Property<std::string> m_sTgcDigitKey{this, "sTgcDigitKey", "sTGC_DIGITS"};
94 Gaudi::Property<std::string> m_sTgcRdoKey{this, "sTgcRdoKey", "sTGCRDO"};
95 Gaudi::Property<std::string> m_sTgcPRDKey{this, "sTgcPrdKey", "STGC_Measurements"};
96
97 Gaudi::Property<std::string> m_MmSimKey{this, "MmSimKey", "MM_Hits"};
98 Gaudi::Property<std::string> m_MmSdoKey{this, "MmSdoKey", "MM_SDO"};
99 Gaudi::Property<std::string> m_MmDigitKey{this, "MmDigitKey", "MM_DIGITS"};
100 Gaudi::Property<std::string> m_MmRdoKey{this, "MmRdoKey", "MMRDO"};
101 Gaudi::Property<std::string> m_MmPrdKey{this, "MmPrdKey", "MM_Measurements"};
102
103 Gaudi::Property<std::string> m_CSC_SimContainerName{this, "CSC_SimContainerName", "CSC_Hits"};
104 Gaudi::Property<std::string> m_CSC_SDOContainerName{this, "CSC_SDOContainerName", "CSC_SDO"};
105 Gaudi::Property<std::string> m_CSC_DigitContainerName{this, "CSC_DigitContainerName", "CSC_DIGITS"};
106 Gaudi::Property<std::string> m_CSC_RDOContainerName{this, "CSC_RDOContainerName", "CSCRDO"};
107 Gaudi::Property<std::string> m_CSC_PRDContainerName{this, "CSC_PRDContainerName", "CSC_Clusters"};
108
109 Gaudi::Property<std::string> m_MdtSimHitKey{this, "MdtSimKey", "MDT_Hits"};
110 Gaudi::Property<std::string> m_MdtSdoKey{this, "MdtSdoKey", "MDT_SDO"};
111 Gaudi::Property<std::string> m_MdtDigitKey{this, "MdtDigitKey", "MDT_DIGITS"};
112 Gaudi::Property<std::string> m_MdtPrdKey{this, "MdtPrdKey", "MDT_DriftCircles"};
113
114 Gaudi::Property<std::string> m_RpcSimHitKey{this, "RpcSimKey", "RPC_Hits"};
115 Gaudi::Property<std::string> m_RpcSdoKey{this, "RpcSdoKey", "RPC_SDO"};
116 Gaudi::Property<std::string> m_RpcDigitKey{this, "RpcDigitKey", "RPC_DIGITS"};
117 Gaudi::Property<std::string> m_RpcPrdKey{this, "RpcPrdKey", "RPC_Measurements"};
118
119 Gaudi::Property<std::string> m_TgcSimHitKey{this, "TgcSimKey", "TGC_Hits"};
120 Gaudi::Property<std::string> m_TgcSdoKey{this, "TgcSdoKey", "TGC_SDO"};
121 Gaudi::Property<std::string> m_TgcDigitKey{this, "TgcDigitKey", "TGC_DIGITS"};
122 Gaudi::Property<std::string> m_TgcRdoKey{this, "TgcRdoKey", "TGCRDO"};
123 Gaudi::Property<std::string> m_TgcPrdKey{this, "TgcPrdKey", "TGC_Measurements"};
124
125 // Matching algorithm
126
127 Gaudi::Property<bool> m_doNSWMatching{this, "doNSWMatchingAlg", false};
128 Gaudi::Property<bool> m_doNSWMatchingMuon{this, "doNSWMatchingMuonOnly", false};
129 Gaudi::Property<uint> m_maxStripDiff{this, "setMaxStripDistance", 3};
130};
131}
132#endif // MuonHitValAlg_H
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< std::string > m_RpcSdoKey
Definition HitValAlg.h:115
Gaudi::Property< bool > m_doSTGCRDO
Definition HitValAlg.h:55
Gaudi::Property< bool > m_doTGCPRD
Definition HitValAlg.h:84
StatusCode setupSimHits()
Definition HitValAlg.cxx:23
ServiceHandle< MuonTGC_CablingSvc > m_tgcCabling
Definition HitValAlg.h:37
Gaudi::Property< std::string > m_CSC_DigitContainerName
Definition HitValAlg.h:105
Gaudi::Property< bool > m_doNSWMatchingMuon
Definition HitValAlg.h:128
Gaudi::Property< std::string > m_MmDigitKey
Definition HitValAlg.h:99
Gaudi::Property< bool > m_doCSCSDO
Definition HitValAlg.h:65
Gaudi::Property< bool > m_doSTGCDigit
Definition HitValAlg.h:54
Gaudi::Property< std::string > m_TgcDigitKey
Definition HitValAlg.h:121
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfo
Definition HitValAlg.h:87
Gaudi::Property< bool > m_doRPCSDO
Definition HitValAlg.h:76
Gaudi::Property< std::string > m_MmSimKey
Definition HitValAlg.h:97
Gaudi::Property< bool > m_doNSWMatching
Definition HitValAlg.h:127
StatusCode setupRDOs()
Definition HitValAlg.cxx:86
Gaudi::Property< bool > m_doRDOs
Switch to toggle the dumping of Digits in general.
Definition HitValAlg.h:49
Gaudi::Property< std::string > m_CSC_PRDContainerName
Definition HitValAlg.h:107
Gaudi::Property< bool > m_doMDTSDO
Definition HitValAlg.h:71
Gaudi::Property< bool > m_doTGCHit
Definition HitValAlg.h:80
Gaudi::Property< std::string > m_MmPrdKey
Definition HitValAlg.h:101
Gaudi::Property< bool > m_doTGCDigit
Definition HitValAlg.h:82
Gaudi::Property< std::string > m_RpcDigitKey
Definition HitValAlg.h:116
Gaudi::Property< std::string > m_TgcRdoKey
Definition HitValAlg.h:122
Gaudi::Property< bool > m_doMDTDigit
Definition HitValAlg.h:72
StatusCode setupDigits()
Definition HitValAlg.cxx:65
Gaudi::Property< bool > m_doCSCDigit
Definition HitValAlg.h:66
Gaudi::Property< bool > m_doCSCHit
Definition HitValAlg.h:64
Gaudi::Property< std::string > m_MmRdoKey
Definition HitValAlg.h:100
Gaudi::Property< bool > m_doRPCDigit
Definition HitValAlg.h:77
Gaudi::Property< bool > m_doCSCPRD
Definition HitValAlg.h:68
Gaudi::Property< bool > m_doRPCPRD
Definition HitValAlg.h:78
Gaudi::Property< bool > m_doTGCRDO
Definition HitValAlg.h:83
Gaudi::Property< std::string > m_MdtSdoKey
Definition HitValAlg.h:110
Gaudi::Property< uint > m_maxStripDiff
Definition HitValAlg.h:129
Gaudi::Property< std::string > m_sTgcPRDKey
Definition HitValAlg.h:95
Gaudi::Property< std::string > m_sTgcSdoKey
Definition HitValAlg.h:92
Gaudi::Property< bool > m_doSTGCHit
Switch to toggle the dumping of PRDs in general.
Definition HitValAlg.h:52
MuonVal::MuonTesterTree m_tree
Definition HitValAlg.h:35
Gaudi::Property< bool > m_doMMDigit
Definition HitValAlg.h:60
Gaudi::Property< bool > m_isData
Definition HitValAlg.h:42
Gaudi::Property< std::string > m_MdtPrdKey
Definition HitValAlg.h:112
Gaudi::Property< bool > m_doPRDs
Switch to toggle the dumping of RDOs in general.
Definition HitValAlg.h:50
Gaudi::Property< std::string > m_TgcSdoKey
Definition HitValAlg.h:120
unsigned int cardinality() const override final
Definition HitValAlg.h:25
Gaudi::Property< bool > m_doSimHits
Definition HitValAlg.h:46
StatusCode setupSDOs()
Definition HitValAlg.cxx:44
StatusCode initialize() override
StatusCode setupPRDs()
Gaudi::Property< std::string > m_Truth_ContainerName
Definition HitValAlg.h:88
PublicToolHandle< Muon::ICSC_RDO_Decoder > m_csc_decoder
Definition HitValAlg.h:40
Gaudi::Property< bool > m_doRPCHit
Definition HitValAlg.h:75
Gaudi::Property< bool > m_doSTGCSDO
Definition HitValAlg.h:53
Gaudi::Property< std::string > m_CSC_RDOContainerName
Definition HitValAlg.h:106
Gaudi::Property< bool > m_doSDO
Switch to toggle the dumping of sim hits in general.
Definition HitValAlg.h:47
Gaudi::Property< std::string > m_sTgcDigitKey
Definition HitValAlg.h:93
Gaudi::Property< bool > m_doMMHit
Definition HitValAlg.h:58
Gaudi::Property< bool > m_doMMRDO
Definition HitValAlg.h:61
StatusCode execute() override
Gaudi::Property< bool > m_doCSCRDO
Definition HitValAlg.h:67
Gaudi::Property< std::string > m_sTgcSimKey
Definition HitValAlg.h:91
Gaudi::Property< std::string > m_CSC_SDOContainerName
Definition HitValAlg.h:104
Gaudi::Property< std::string > m_MmSdoKey
Definition HitValAlg.h:98
Gaudi::Property< std::string > m_TgcSimHitKey
Definition HitValAlg.h:119
StatusCode finalize() override
Gaudi::Property< bool > m_doMMSDO
Definition HitValAlg.h:59
Gaudi::Property< std::string > m_MdtSimHitKey
Definition HitValAlg.h:109
Gaudi::Property< std::string > m_RpcSimHitKey
Definition HitValAlg.h:114
Gaudi::Property< std::string > m_TgcPrdKey
Definition HitValAlg.h:123
Gaudi::Property< bool > m_doMDTPRD
Definition HitValAlg.h:73
Gaudi::Property< std::string > m_MdtDigitKey
Definition HitValAlg.h:111
Gaudi::Property< bool > m_doMMPRD
Definition HitValAlg.h:62
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< bool > m_doMDTHit
Definition HitValAlg.h:70
Gaudi::Property< bool > m_doDigits
Switch to toggle the dumping of SDOs in general.
Definition HitValAlg.h:48
Gaudi::Property< std::string > m_RpcPrdKey
Definition HitValAlg.h:117
Gaudi::Property< bool > m_doTruth
Definition HitValAlg.h:43
Gaudi::Property< std::string > m_MuEntry_ContainerName
Definition HitValAlg.h:89
Gaudi::Property< std::string > m_sTgcRdoKey
Definition HitValAlg.h:94
Gaudi::Property< std::string > m_CSC_SimContainerName
Definition HitValAlg.h:103
Gaudi::Property< bool > m_doSTGCPRD
Definition HitValAlg.h:56
Gaudi::Property< bool > m_doMuEntry
Definition HitValAlg.h:44
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition HitValAlg.h:39
Gaudi::Property< bool > m_doTGCSDO
Definition HitValAlg.h:81
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