#include <KeyWriterTool.h>
|
| SG::ReadCondHandleKey< TrigConf::L1PrescalesSet > | m_l1PrescaleSetInputKey { this, "L1Prescales", "L1Prescales", "L1 prescales set condition handle key"} |
| SG::ReadCondHandleKey< TrigConf::HLTPrescalesSet > | m_hltPrescaleSetInputKey { this, "HLTPrescales", "HLTPrescales", "HLT prescales set condition handle key"} |
| SG::ReadCondHandleKey< TrigConf::L1BunchGroupSet > | m_bgInputKey {this, "L1BunchGroup", "L1BunchGroup", "L1BunchGroupSet condition handle key"} |
| SG::ReadHandleKey< TrigConf::HLTMenu > | m_hltMenuInputKey {this, "HLTMenu", "DetectorStore+HLTTriggerMenu", "HLT Menu key"} |
| Gaudi::Property< bool > | m_includeL1PrescaleKey {this, "IncludeL1PrescaleKey", true, "Set this to false when running this tool online."} |
| Gaudi::Property< bool > | m_includeBunchgroupKey {this, "IncludeBunchgroupKey", true, "Set this to false when running this tool online."} |
| SG::WriteHandleKey< xAOD::TrigConfKeys > | m_writeKeys {this, "ConfKeys", "TrigConfKeys", "SG Key of key triplet object."} |
| SG::WriteHandleKey< xAOD::BunchConfKey > | m_writeBgKey {this, "BunchConfKey", "BunchConfKey", "SG Key of bunchgroup key object."} |
Definition at line 31 of file KeyWriterTool.h.
◆ KeyWriterTool() [1/2]
| TrigConf::KeyWriterTool::KeyWriterTool |
( |
| ) |
|
|
delete |
◆ KeyWriterTool() [2/2]
| TrigConf::KeyWriterTool::KeyWriterTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~KeyWriterTool()
| virtual TrigConf::KeyWriterTool::~KeyWriterTool |
( |
| ) |
|
|
overridevirtualdefault |
◆ initialize()
| StatusCode TrigConf::KeyWriterTool::initialize |
( |
| ) |
|
|
finalvirtual |
Definition at line 16 of file KeyWriterTool.cxx.
16 {
22
25 }
26
29
30 return StatusCode::SUCCESS;
31 }
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ writeBunchgroupKey() [1/2]
| StatusCode TrigConf::KeyWriterTool::writeBunchgroupKey |
( |
const EventContext & | ctx | ) |
const |
|
finalvirtual |
◆ writeBunchgroupKey() [2/2]
| StatusCode TrigConf::KeyWriterTool::writeBunchgroupKey |
( |
const EventContext & | ctx, |
|
|
uint32_t & | bgk ) const |
|
finalvirtual |
Definition at line 69 of file KeyWriterTool.cxx.
69 {
70
72 return StatusCode::SUCCESS;
73 }
74
75 SG::ReadCondHandle<TrigConf::L1BunchGroupSet> bgRH(
m_bgInputKey, ctx);
77 const TrigConf::L1BunchGroupSet* l1BunchGroupSet{*bgRH};
78 bgk = l1BunchGroupSet->
bgsk();
79
81 SG::WriteHandle<xAOD::BunchConfKey> writeBgKey(
m_writeBgKey, ctx);
82 ATH_CHECK( writeBgKey.record( std::make_unique<xAOD::BunchConfKey>(bgk) ) );
83 }
84
85 return StatusCode::SUCCESS;
86 }
unsigned int bgsk() const
setter and getter for the bunch group key
◆ writeKeys() [1/2]
| StatusCode TrigConf::KeyWriterTool::writeKeys |
( |
const EventContext & | ctx | ) |
const |
|
finalvirtual |
◆ writeKeys() [2/2]
| StatusCode TrigConf::KeyWriterTool::writeKeys |
( |
const EventContext & | ctx, |
|
|
uint32_t & | smk, |
|
|
uint32_t & | l1psk, |
|
|
uint32_t & | hltpsk ) const |
|
finalvirtual |
Definition at line 40 of file KeyWriterTool.cxx.
40 {
41
45 const TrigConf::L1PrescalesSet* l1PrescaleSet{*l1psRH};
47 } else {
49 }
50
53 const TrigConf::HLTPrescalesSet* hltPrescaleSet{*hltpsRH};
54 hltpsk = hltPrescaleSet->
psk();
55
59
62 ATH_CHECK(
writeKeys.record( std::make_unique<xAOD::TrigConfKeys>(smk, l1psk, hltpsk) ) );
63 }
64
65 return StatusCode::SUCCESS;
66 }
unsigned int psk() const
setter and getter for the HLT prescale key
unsigned int psk() const
setter and getter for the L1 prescale key
◆ m_bgInputKey
Definition at line 54 of file KeyWriterTool.h.
54{this, "L1BunchGroup", "L1BunchGroup", "L1BunchGroupSet condition handle key"};
◆ m_hltMenuInputKey
Definition at line 55 of file KeyWriterTool.h.
55{this, "HLTMenu", "DetectorStore+HLTTriggerMenu", "HLT Menu key"};
◆ m_hltPrescaleSetInputKey
Definition at line 53 of file KeyWriterTool.h.
53{ this, "HLTPrescales", "HLTPrescales", "HLT prescales set condition handle key"};
◆ m_includeBunchgroupKey
| Gaudi::Property<bool> TrigConf::KeyWriterTool::m_includeBunchgroupKey {this, "IncludeBunchgroupKey", true, "Set this to false when running this tool online."} |
|
private |
Definition at line 58 of file KeyWriterTool.h.
58{this, "IncludeBunchgroupKey", true, "Set this to false when running this tool online."};
◆ m_includeL1PrescaleKey
| Gaudi::Property<bool> TrigConf::KeyWriterTool::m_includeL1PrescaleKey {this, "IncludeL1PrescaleKey", true, "Set this to false when running this tool online."} |
|
private |
Definition at line 57 of file KeyWriterTool.h.
57{this, "IncludeL1PrescaleKey", true, "Set this to false when running this tool online."};
◆ m_l1PrescaleSetInputKey
Definition at line 52 of file KeyWriterTool.h.
52{ this, "L1Prescales", "L1Prescales", "L1 prescales set condition handle key"};
◆ m_writeBgKey
Definition at line 61 of file KeyWriterTool.h.
61{this, "BunchConfKey", "BunchConfKey", "SG Key of bunchgroup key object."};
◆ m_writeKeys
Definition at line 60 of file KeyWriterTool.h.
60{this, "ConfKeys", "TrigConfKeys", "SG Key of key triplet object."};
The documentation for this class was generated from the following files: