#include <DiTauWPDecorator.h>
|
| static const InterfaceID & | interfaceID () |
| | InterfaceID implementation needed for ToolHandle.
|
|
| Gaudi::Property< std::string > | m_scoreName {this, "ScoreName", "", "Name of the original score"} |
| Gaudi::Property< std::vector< std::string > > | m_decorWPs {this, "DecorWPNames", {}, "Name of WPs"} |
| Gaudi::Property< std::vector< float > > | m_decorWPCuts {this, "DecorWPCuts", {}, "Cut on each WP to be docorated for ditaus"} |
| std::vector< SG::AuxElement::Accessor< char > > | m_charDecors |
| Gaudi::Property< std::string > | m_ditauContainerName {this, "DiTauContainerName", "", "Name of DiTauJetContainer, must be set when using "} |
| StoreGateSvc_t | m_evtStore |
| | Pointer to StoreGate (event store by default).
|
| StoreGateSvc_t | m_detStore |
| | Pointer to StoreGate (detector store by default).
|
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Definition at line 16 of file DiTauWPDecorator.h.
◆ StoreGateSvc_t
◆ DiTauWPDecorator()
| DiTauWPDecorator::DiTauWPDecorator |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 9 of file DiTauWPDecorator.cxx.
9 :
11{
12 declareInterface<DiTauToolBase > (this);
13}
◆ ~DiTauWPDecorator()
| DiTauWPDecorator::~DiTauWPDecorator |
( |
| ) |
|
|
virtualdefault |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ eventInitialize()
Event initializer - called at the beginning of each event.
Definition at line 32 of file DiTauToolBase.cxx.
33{
34 return StatusCode::SUCCESS;
35}
◆ evtStore()
◆ execute()
◆ executeObj()
| StatusCode DiTauWPDecorator::executeObj |
( |
xAOD::DiTauJet & | xDiTau, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Execute - called for each Ditau jet.
Reimplemented from DiTauToolBase.
Definition at line 33 of file DiTauWPDecorator.cxx.
34{
35 const SG::ConstAccessor<float> acc_score(
m_scoreName);
36 float score = acc_score(xDiTau);
37
38
39 for (
size_t wpIndex=0; wpIndex <
m_decorWPs.size(); ++wpIndex) {
40 const SG::Accessor<char>& decorator =
m_charDecors[wpIndex];
42 }
43
44 return StatusCode::SUCCESS;
45}
Gaudi::Property< std::vector< float > > m_decorWPCuts
Gaudi::Property< std::vector< std::string > > m_decorWPs
bool passOmniWP(float score, float wp_thrshold) const
Gaudi::Property< std::string > m_scoreName
std::vector< SG::AuxElement::Accessor< char > > m_charDecors
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
| StatusCode DiTauToolBase::finalize |
( |
| ) |
|
|
virtualinherited |
◆ initialize()
| StatusCode DiTauWPDecorator::initialize |
( |
| ) |
|
|
overridevirtual |
Tool initializer.
Reimplemented from DiTauToolBase.
Definition at line 19 of file DiTauWPDecorator.cxx.
20{
22 ATH_MSG_ERROR(
"DiTauContainerName is provided but DecorWPNames is empty");
23 return StatusCode::FAILURE;
24 }
25
26 for (
size_t wpIndex=0; wpIndex <
m_decorWPs.size(); ++wpIndex) {
28 }
29
30 return StatusCode::SUCCESS;
31}
Gaudi::Property< std::string > m_ditauContainerName
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
| const InterfaceID & DiTauToolBase::interfaceID |
( |
| ) |
|
|
staticinherited |
InterfaceID implementation needed for ToolHandle.
Definition at line 9 of file DiTauToolBase.cxx.
◆ msg()
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ passOmniWP()
| bool DiTauWPDecorator::passOmniWP |
( |
float | score, |
|
|
float | wp_thrshold ) const |
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ retrieveTool()
template<class T>
| bool DiTauToolBase::retrieveTool |
( |
T & | tool | ) |
|
|
inherited |
Convenience functions to handle storegate objects.
Definition at line 59 of file DiTauToolBase.cxx.
59 {
60 if (
tool.retrieve().isFailure()) {
62 return false;
63 } else {
65 }
66 return true;
67}
#define ATH_MSG_VERBOSE(x)
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_charDecors
| std::vector<SG::AuxElement::Accessor<char> > DiTauWPDecorator::m_charDecors |
|
private |
◆ m_decorWPCuts
| Gaudi::Property<std::vector<float> > DiTauWPDecorator::m_decorWPCuts {this, "DecorWPCuts", {}, "Cut on each WP to be docorated for ditaus"} |
|
private |
Definition at line 36 of file DiTauWPDecorator.h.
36{this, "DecorWPCuts", {}, "Cut on each WP to be docorated for ditaus"};
◆ m_decorWPs
| Gaudi::Property<std::vector<std::string> > DiTauWPDecorator::m_decorWPs {this, "DecorWPNames", {}, "Name of WPs"} |
|
private |
◆ m_detStore
◆ m_ditauContainerName
| Gaudi::Property<std::string> DiTauWPDecorator::m_ditauContainerName {this, "DiTauContainerName", "", "Name of DiTauJetContainer, must be set when using "} |
|
private |
Definition at line 40 of file DiTauWPDecorator.h.
40{this, "DiTauContainerName", "", "Name of DiTauJetContainer, must be set when using "};
◆ m_evtStore
◆ m_scoreName
| Gaudi::Property<std::string> DiTauWPDecorator::m_scoreName {this, "ScoreName", "", "Name of the original score"} |
|
private |
Definition at line 34 of file DiTauWPDecorator.h.
34{this, "ScoreName", "", "Name of the original score"};
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: