ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
ZDC
ZdcAnalysis
ZdcAnalysis
ZdcTrigValidTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ZDCTRIGVALID_ZDCTRIGVALIDTOOL_H
6
#define ZDCTRIGVALID_ZDCTRIGVALIDTOOL_H
7
8
// Matthew Hoppesch.
9
// July 2023
10
//
11
// This is a simple tool to compare L1 ZDC decions made in CTP to those made using ZDC firmware
12
// Used for validation of ZDC firmware in Run3,
13
// WriteAux Property Determines if Trigger Validation Status is written to xAOD::ZdcModuleContainer
14
15
#include <
xAODForward/ZdcModuleAuxContainer.h
>
16
#include "
ZdcAnalysis/IZdcAnalysisTool.h
"
17
#include "
AsgTools/AsgTool.h
"
18
#include "
TrigDecisionTool/TrigDecisionTool.h
"
19
#include "
ZdcUtils/ZDCTriggerSim.h
"
20
#include "
xAODEventInfo/EventInfo.h
"
21
22
#include "nlohmann/json.hpp"
23
24
#include "
AsgDataHandles/ReadDecorHandleKey.h
"
25
#include "
AsgDataHandles/WriteDecorHandleKey.h
"
26
27
28
namespace
ZDC
{
29
class
ATLAS_NOT_THREAD_SAFE
ZdcTrigValidTool
:
public
virtual
IZdcAnalysisTool
,
public
asg::AsgTool
30
{
31
ASG_TOOL_CLASS
(
ZdcTrigValidTool
,
ZDC::IZdcAnalysisTool
)
32
33
public
:
34
ZdcTrigValidTool
(
const
std::string& name);
35
virtual
~ZdcTrigValidTool
()
override
;
36
virtual
StatusCode
initialize
()
override
;
37
38
virtual
StatusCode
recoZdcModules
(
const
xAOD::ZdcModuleContainer
& moduleContainer,
const
xAOD::ZdcModuleContainer
& moduleSumContainer)
override
;
39
virtual
StatusCode
reprocessZdc
()
override
{
return
StatusCode::SUCCESS;}
40
41
protected
:
42
43
#ifdef XAOD_STANDALONE
44
ToolHandle<Trig::TrigDecisionTool> m_trigDecTool {
this
,
"TrigDecisionTool"
,
""
};
45
#else
46
PublicToolHandle<Trig::TrigDecisionTool>
m_trigDecTool
{
this
,
"TrigDecisionTool"
,
""
};
47
#endif
48
49
private
:
50
/* properties */
51
Gaudi::Property<std::vector<std::string>>
m_triggerList
{
52
this
,
"triggerList"
, {},
"Add triggers to this to be monitored"
};
53
Gaudi::Property<std::string>
m_lutFile
{
this
,
"filepath_LUT"
,
"TrigT1ZDC/zdcRun3T1LUT_v1_30_05_2023.json"
,
"path to LUT file"
};
54
56
std::shared_ptr<ZDCTriggerSim::ModuleAmplInputsFloat>
m_modInputs_p
;
57
59
std::shared_ptr<ZDCTriggerSimModuleAmpls>
m_simTrig
;
60
61
std::string
m_msg
;
62
std::map<std::string, unsigned int >
m_triggerMap
;
63
std::string
m_auxSuffix
;
64
std::string
m_name
;
65
bool
m_writeAux
;
66
67
SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer>
m_zdcModuleAmp
{
this
,
"ZdcModuleAmplitude"
,
""
,
"ZDC module Amplitude"
};
68
SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer>
m_trigValStatus
{
this
,
"TrigValStatus"
,
""
,
"Trigger validation status"
};
69
70
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
71
this
,
"EventInfoKey"
,
"EventInfo"
,
72
"Location of the event info."
};
73
74
};
75
}
76
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
WriteDecorHandleKey.h
IZdcAnalysisTool.h
TrigDecisionTool.h
ZDCTriggerSim.h
A tool to make L1 decision using LUTs.
ZdcModuleAuxContainer.h
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition
checker_macros.h:212
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
ZDC::IZdcAnalysisTool
Definition
IZdcAnalysisTool.h:15
ZDC::ZdcTrigValidTool::m_name
std::string m_name
Definition
ZdcTrigValidTool.h:64
ZDC::ZdcTrigValidTool::m_triggerMap
std::map< std::string, unsigned int > m_triggerMap
Definition
ZdcTrigValidTool.h:62
ZDC::ZdcTrigValidTool::m_zdcModuleAmp
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleAmp
Definition
ZdcTrigValidTool.h:67
ZDC::ZdcTrigValidTool::m_trigValStatus
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_trigValStatus
Definition
ZdcTrigValidTool.h:68
ZDC::ZdcTrigValidTool::m_modInputs_p
std::shared_ptr< ZDCTriggerSim::ModuleAmplInputsFloat > m_modInputs_p
A data member to hold the ZDCTrigger Object that stores input floats: shared ptr to ensure cleanup.
Definition
ZdcTrigValidTool.h:56
ZDC::ZdcTrigValidTool::m_triggerList
Gaudi::Property< std::vector< std::string > > m_triggerList
Definition
ZdcTrigValidTool.h:51
ZDC::ZdcTrigValidTool::recoZdcModules
virtual StatusCode recoZdcModules(const xAOD::ZdcModuleContainer &moduleContainer, const xAOD::ZdcModuleContainer &moduleSumContainer) override
Definition
ZdcTrigValidTool.cxx:85
ZDC::ZdcTrigValidTool::m_auxSuffix
std::string m_auxSuffix
Definition
ZdcTrigValidTool.h:63
ZDC::ZdcTrigValidTool::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
ZdcTrigValidTool.h:70
ZDC::ZdcTrigValidTool::m_writeAux
bool m_writeAux
Definition
ZdcTrigValidTool.h:65
ZDC::ZdcTrigValidTool::ZdcTrigValidTool
ZdcTrigValidTool(const std::string &name)
Definition
ZdcTrigValidTool.cxx:20
ZDC::ZdcTrigValidTool::m_msg
std::string m_msg
Definition
ZdcTrigValidTool.h:61
ZDC::ZdcTrigValidTool::m_lutFile
Gaudi::Property< std::string > m_lutFile
Definition
ZdcTrigValidTool.h:53
ZDC::ZdcTrigValidTool::reprocessZdc
virtual StatusCode reprocessZdc() override
Definition
ZdcTrigValidTool.h:39
ZDC::ZdcTrigValidTool::m_trigDecTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
Definition
ZdcTrigValidTool.h:46
ZDC::ZdcTrigValidTool::m_simTrig
std::shared_ptr< ZDCTriggerSimModuleAmpls > m_simTrig
A data member to hold the ZDCTrigger Object that computes the LUT logic: shared ptr to ensure cleanup...
Definition
ZdcTrigValidTool.h:59
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
ZDC
Definition
LISAnalysisTool.cxx:19
xAOD::ZdcModuleContainer
ZdcModuleContainer_v1 ZdcModuleContainer
Definition
ZdcModuleContainer.h:18
initialize
void initialize()
Definition
run_EoverP.cxx:894
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0