Generate the decision for IDCalib stream trigger.
More...
#include <IDCalibHypoTool.h>
Generate the decision for IDCalib stream trigger.
- Author
- Kunihiro Nagano kunih.nosp@m.iro..nosp@m.nagan.nosp@m.o@ce.nosp@m.rn.ch
Definition at line 20 of file IDCalibHypoTool.h.
◆ StoreGateSvc_t
◆ IDCalibHypoTool()
| IDCalibHypoTool::IDCalibHypoTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 20 of file IDCalibHypoTool.cxx.
static HLT::Identifier fromToolName(const std::string &tname)
◆ ~IDCalibHypoTool()
| virtual IDCalibHypoTool::~IDCalibHypoTool |
( |
| ) |
|
|
virtualdefault |
◆ decide()
| StatusCode IDCalibHypoTool::decide |
( |
std::vector< IDCalibHypoInfo > & | toolInputs | ) |
const |
decides upon a collection of tracks
Definition at line 39 of file IDCalibHypoTool.cxx.
40{
42 size_t numTrks = toolInputs.size();
43
45
46 if ( numTrigger == 1 ) {
49 }
50 else {
53 }
54
55 return StatusCode::SUCCESS;
56}
◆ decideOnSingleObject()
| bool IDCalibHypoTool::decideOnSingleObject |
( |
IDCalibHypoInfo & | input, |
|
|
size_t | cutIndex ) const |
|
private |
Definition at line 130 of file IDCalibHypoTool.cxx.
131{
132 bool is_passed = false;
133
134
136 pt /= Gaudi::Units::GeV;
137
138
140
141
142 ATH_MSG_DEBUG(
" isPassed = " << is_passed <<
", cut index / pT = " << cutIndex <<
" / " << pt );
143 return is_passed;
144}
◆ 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()
◆ evtStore()
◆ 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
◆ inclusiveSelection()
| StatusCode IDCalibHypoTool::inclusiveSelection |
( |
std::vector< IDCalibHypoInfo > & | toolInputs | ) |
const |
|
private |
Definition at line 61 of file IDCalibHypoTool.cxx.
62{
63 bool isPassed = false;
64 unsigned int iTrk=0;
65 for ( auto& input: toolInputs ) {
70 isPassed = true;
72 }
73 } else {
75 }
76 ++iTrk;
77 }
78
79 ATH_MSG_DEBUG(
"Inclusive selection isPassed = " << isPassed );
80 return StatusCode::SUCCESS;
81}
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
◆ initialize()
| StatusCode IDCalibHypoTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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.
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ multiplicitySelection()
| StatusCode IDCalibHypoTool::multiplicitySelection |
( |
std::vector< IDCalibHypoInfo > & | toolInputs | ) |
const |
|
private |
Definition at line 86 of file IDCalibHypoTool.cxx.
87{
89
90 for (
size_t cutIndex=0; cutIndex <
m_cutTrackPtGeV.size(); ++cutIndex ) {
91 size_t elementIndex{ 0 };
92 for ( auto& input: toolInputs ) {
96 passingSelection[cutIndex].push_back( elementIndex );
97 }
98 }
99 else {
101 }
102 elementIndex++;
103 }
104
105 if ( passingSelection[cutIndex].
empty() ) {
106 ATH_MSG_DEBUG(
"No object passed selection " << cutIndex <<
" rejecting" );
107 return StatusCode::SUCCESS;
108 }
109 }
110
111 std::set<size_t> passingIndices;
113
114 if ( passingIndices.empty() ) {
116 return StatusCode::SUCCESS;
117 }
118
119 for ( auto idx: passingIndices ) {
122 }
123
124 return StatusCode::SUCCESS;
125}
static const Attributes_t empty
void elementsInUniqueCombinations(const Index2DVec &indices, std::set< size_t > &participants, const std::function< bool(const Index1DVec &)> &filter)
std::vector< Index1DVec > Index2DVec
◆ 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.
◆ 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()
◆ 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_cutTrackPtGeV
| Gaudi::Property< std::vector<float> > IDCalibHypoTool::m_cutTrackPtGeV { this, "cutTrackPtGeV", { float(10.0) }, "Track pT requirement in GeV" } |
|
private |
Definition at line 43 of file IDCalibHypoTool.h.
43{
this,
"cutTrackPtGeV", {
float(10.0) },
"Track pT requirement in GeV" };
◆ m_decisionId
◆ m_detStore
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: