ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
TrigADComboHypoTool Class Reference

#include <TrigADComboHypoTool.h>

Inheritance diagram for TrigADComboHypoTool:
Collaboration diagram for TrigADComboHypoTool:

Public Member Functions

 TrigADComboHypoTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual StatusCode initialize () override
 
virtual StatusCode decide (Combo::LegDecisionsMap &passingLegs, const EventContext &ctx) const override
 retrieves the decisions associated to this decId, make their combinations and apply the algorithm More...
 
virtual HLT::Identifier decisionId () const
 retrieves this ComboHypoTool's chain's decision ID More...
 
StatusCode setLegMultiplicity (const Combo::MultiplicityReqMap &multiplicityRequiredMap)
 Sets the number of legs and the multiplicity required on each leg. More...
 
const std::vector< int > & legMultiplicity () const
 Gets the number of legs and the multiplicity required on each leg. More...
 
HLT::Identifier legDecisionId (size_t i) const
 Retrieves this ComboHypoTool's chain's decision ID for a given leg. More...
 
const std::vector< HLT::Identifier > & legDecisionIds () const
 Retrieves this ComboHypoTool's chain's decision IDs for all legs. More...
 
virtual StatusCode decideOnSingleObject (TrigCompositeUtils::Decision *, const std::vector< const TrigCompositeUtils::DecisionIDContainer * > &) const
 Alternate method called by BPhysics ComboHypoAlgs instead of the base method decide(...). More...
 

Protected Member Functions

virtual bool executeAlg (const std::vector< Combo::LegDecision > &combination) const
 Only a dummy implementation exists in ComboHypoToolBase. More...
 
StatusCode selectLegs (const Combo::LegDecisionsMap &IDCombMap, std::vector< std::vector< Combo::LegDecision >> &leg_decisions) const
 Creates the per-leg vectors of Decision objects starting from the initial LegDecision map, storing only those concerning this HypoTool's chain Pack the Decision objects in std::pair<DecisionID, ElementLink<Decision>> so the derived class' executeAlg function knows which leg each object is on. More...
 
void updateLegDecisionsMap (const std::vector< std::vector< Combo::LegDecision >> &passing_comb, Combo::LegDecisionsMap &passingLegs) const
 For when the tool accepts some/all combinations. More...
 
void eraseFromLegDecisionsMap (Combo::LegDecisionsMap &passingLegs) const
 For when the tool rejects all combinations. More...
 
StatusCode printDebugInformation (const Combo::LegDecisionsMap &passingLegs) const
 Print the output of the tool, after having removed failed Decision Objects. More...
 

Protected Attributes

Gaudi::Property< size_t > m_combinationsThresholdWarn
 
Gaudi::Property< size_t > m_combinationsThresholdBreak
 
Gaudi::Property< bool > m_modeOR
 
Gaudi::Property< bool > m_enableOverride
 

Private Member Functions

bool getAdDecision (const std::vector< const xAOD::Jet * > &input_jets, const std::vector< const xAOD::Muon * > &input_muons, const std::vector< const xAOD::Electron * > &input_electrons, const std::vector< const xAOD::Photon * > &input_photons, const std::vector< const xAOD::TauJet * > &input_taus, const std::vector< const xAOD::TrigMissingET * > &input_mets) const
 
float runInference (std::vector< float > &tensor) const
 

Private Attributes

Gaudi::Property< unsigned int > m_maxjs {this, "max_jets",{6}, "Maximum number of jets allowed in the event"}
 
Gaudi::Property< unsigned int > m_maxes {this, "max_electrons",{3}, "Maximum number of electrons allowed in the event"}
 
Gaudi::Property< unsigned int > m_maxms {this, "max_muons",{3}, "Maximum number of muons allowed in the event"}
 
Gaudi::Property< unsigned int > m_maxgs {this, "max_photons",{3}, "Maximum number of photons allowed in the event"}
 
Gaudi::Property< double > m_adScoreThres {this, "adScoreThres", {0.}, "HLT AD score threshold"}
 
ServiceHandle< AthOnnx::IOnnxRuntimeSvcm_svc {this, "ONNXRuntimeSvc", "AthOnnx::OnnxRuntimeSvc", "TrigADComboHypoTool ONNXRuntimeSvc"}
 
std::unique_ptr< Ort::Session > m_session
 
std::vector< const char * > m_input_node_names
 
std::vector< const char * > m_output_node_names
 
std::vector< int64_t > m_input_node_dims
 
Gaudi::Property< std::string > m_modelFileName {this, "ModelFileName", "TrigAnomalyDetectionHypo/2025-03-10/HLT_AD_v1.onnx"}
 
HLT::Identifier m_decisionId
 The DecisionID of the chain, obtained from the Tool's name. More...
 
std::vector< HLT::Identifierm_legDecisionIds
 The DecisionIDs of the individual legs, derived from both m_decisionId and m_legMultiplicities. More...
 
std::vector< int > m_legMultiplicities
 The number of legs, and the required multiplicity on each leg. More...
 

Detailed Description

Definition at line 24 of file TrigADComboHypoTool.h.

Constructor & Destructor Documentation

◆ TrigADComboHypoTool()

TrigADComboHypoTool::TrigADComboHypoTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 24 of file TrigADComboHypoTool.cxx.

Member Function Documentation

◆ decide()

StatusCode TrigADComboHypoTool::decide ( Combo::LegDecisionsMap passingLegs,
const EventContext &   
) const
overridevirtual

retrieves the decisions associated to this decId, make their combinations and apply the algorithm

Parameters
[in]LegDecisionsMapthat lists all the passing decisions, to be updated by the tool depending on the outcome of executeAlg
[in]EventContext, currently unused

Reimplemented from ComboHypoToolBase.

Definition at line 96 of file TrigADComboHypoTool.cxx.

96  {
97 
98  ATH_MSG_DEBUG("Size of passingLegs = " << passingLegs.size());
99 
100  if (passingLegs.size() == 0) { // if no combinations passed, then exit
101  return StatusCode::SUCCESS;
102  }
103 
104  std::vector<std::vector<Combo::LegDecision>> legDecisions;
105  ATH_CHECK(selectLegs(passingLegs, legDecisions));
106 
107  // get the lists of each object
108  ATH_MSG_DEBUG("Have "<<passingLegs.size()<<" passing legs in AD");
109 
110  std::vector<const xAOD::Jet*> input_jets;
111  std::map<const xAOD::Jet*, std::vector<Combo::LegDecision>> jet_decisions;
112  std::vector<const xAOD::Electron*> input_electrons;
113  std::map<const xAOD::Electron*, std::vector<Combo::LegDecision>> ele_decisions;
114  std::vector<const xAOD::Muon*> input_muons;
115  std::map<const xAOD::Muon*, std::vector<Combo::LegDecision>> muon_decisions;
116  std::vector<const xAOD::Photon*> input_photons;
117  std::map<const xAOD::Photon*, std::vector<Combo::LegDecision>> gam_decisions;
118  std::vector<const xAOD::TauJet*> input_taus;
119  std::map<const xAOD::TauJet*, std::vector<Combo::LegDecision>> taujet_decisions;
120  std::vector<const xAOD::TrigMissingET*> input_mets;
121  std::map<const xAOD::TrigMissingET*, std::vector<Combo::LegDecision>> met_decisions;
122 
123  for(const auto &leg_decs : legDecisions){ // loop over each leg
124  for(const auto &dec_pair : leg_decs){ // loop over each object in a leg
125  const TrigCompositeUtils::Decision* decision(*(dec_pair.second));
126  std::vector<TrigCompositeUtils::LinkInfo<xAOD::JetContainer>> jet_feature_links = TrigCompositeUtils::findLinks<xAOD::JetContainer>(decision, TrigCompositeUtils::featureString(), TrigDefs::lastFeatureOfType);
127  std::vector<TrigCompositeUtils::LinkInfo<xAOD::ElectronContainer>> ele_feature_links = TrigCompositeUtils::findLinks<xAOD::ElectronContainer>(decision, TrigCompositeUtils::featureString(), TrigDefs::lastFeatureOfType);
128  std::vector<TrigCompositeUtils::LinkInfo<xAOD::MuonContainer>> muon_feature_links = TrigCompositeUtils::findLinks<xAOD::MuonContainer>(decision, TrigCompositeUtils::featureString(), TrigDefs::lastFeatureOfType);
129  std::vector<TrigCompositeUtils::LinkInfo<xAOD::PhotonContainer>> gam_feature_links = TrigCompositeUtils::findLinks<xAOD::PhotonContainer>(decision, TrigCompositeUtils::featureString(), TrigDefs::lastFeatureOfType);
130  std::vector<TrigCompositeUtils::LinkInfo<xAOD::TauJetContainer>> taujet_feature_links = TrigCompositeUtils::findLinks<xAOD::TauJetContainer>(decision, TrigCompositeUtils::featureString(), TrigDefs::lastFeatureOfType);
131  std::vector<TrigCompositeUtils::LinkInfo<xAOD::TrigMissingETContainer>> met_feature_links = TrigCompositeUtils::findLinks<xAOD::TrigMissingETContainer>(decision, TrigCompositeUtils::featureString(), TrigDefs::lastFeatureOfType);
132  if(jet_feature_links.size()==1){
133  const TrigCompositeUtils::LinkInfo<xAOD::JetContainer> jet_feature_link = jet_feature_links.at(0);
134  ATH_CHECK(jet_feature_link.isValid());
135  const xAOD::Jet* jet = *(jet_feature_link.link);
136  jet_decisions[jet].push_back(dec_pair);
137  }
138  if(ele_feature_links.size()==1){
139  const TrigCompositeUtils::LinkInfo<xAOD::ElectronContainer> ele_feature_link = ele_feature_links.at(0);
140  ATH_CHECK(ele_feature_link.isValid());
141  const xAOD::Electron* electron = *(ele_feature_link.link);
142  ele_decisions[electron].push_back(dec_pair);
143  }
144  if(muon_feature_links.size()==1){
145  const TrigCompositeUtils::LinkInfo<xAOD::MuonContainer> muon_feature_link = muon_feature_links.at(0);
146  ATH_CHECK(muon_feature_link.isValid());
147  const xAOD::Muon* muon = *(muon_feature_link.link);
148  muon_decisions[muon].push_back(dec_pair);
149  }
150  if(gam_feature_links.size()==1){
151  const TrigCompositeUtils::LinkInfo<xAOD::PhotonContainer> gam_feature_link = gam_feature_links.at(0);
152  ATH_CHECK(gam_feature_link.isValid());
153  const xAOD::Photon* photon = *(gam_feature_link.link);
154  gam_decisions[photon].push_back(dec_pair);
155  }
156  if(taujet_feature_links.size()==1){
157  const TrigCompositeUtils::LinkInfo<xAOD::TauJetContainer> taujet_feature_link = taujet_feature_links.at(0);
158  ATH_CHECK(taujet_feature_link.isValid());
159  const xAOD::TauJet* taujet = *(taujet_feature_link.link);
160  taujet_decisions[taujet].push_back(dec_pair);
161  }
162  if(met_feature_links.size()==1){
163  const TrigCompositeUtils::LinkInfo<xAOD::TrigMissingETContainer> met_feature_link = met_feature_links.at(0);
164  ATH_CHECK(met_feature_link.isValid());
165  const xAOD::TrigMissingET* met = *(met_feature_link.link);
166  met_decisions[met].push_back(dec_pair);
167  }
168  }
169  }
170 
171  for(const auto &pair : jet_decisions){
172  input_jets.push_back(pair.first);
173  }
174  if(input_jets.size()>1){
175  std::sort(input_jets.begin(), input_jets.end(),
176  [](const auto a, const auto b){
177  return a->pt() > b->pt();
178  });
179  }
180 
181  for(const auto &pair : ele_decisions){
182  input_electrons.push_back(pair.first);
183  }
184  if(input_electrons.size()>1){
185  std::sort(input_electrons.begin(), input_electrons.end(),
186  [](const auto a, const auto b){
187  return a->pt() > b->pt();
188  });
189  }
190 
191  for(const auto &pair : muon_decisions){
192  input_muons.push_back(pair.first);
193  }
194  if(input_muons.size()>1){
195  std::sort(input_muons.begin(), input_muons.end(),
196  [](const auto a, const auto b){
197  return a->pt() > b->pt();
198  });
199  }
200 
201  for(const auto &pair : gam_decisions){
202  input_photons.push_back(pair.first);
203  }
204  if(input_photons.size()>1){
205  std::sort(input_photons.begin(), input_photons.end(),
206  [](const auto a, const auto b){
207  return a->pt() > b->pt();
208  });
209  }
210 
211  for(const auto &pair : taujet_decisions){
212  input_taus.push_back(pair.first);
213  }
214  if(input_taus.size()>1){
215  std::sort(input_taus.begin(), input_taus.end(),
216  [](const auto a, const auto b){
217  return a->pt() > b->pt();
218  });
219  }
220 
221  for(const auto &pair : met_decisions){
222  input_mets.push_back(pair.first);
223  }
224 
225  bool trigPass = this->getAdDecision(input_jets, input_muons, input_electrons, input_photons, input_taus, input_mets);
226 
227  if(!trigPass){
228  eraseFromLegDecisionsMap(passingLegs);
229  }
230 
231  return StatusCode::SUCCESS;
232 }

◆ decideOnSingleObject()

StatusCode ComboHypoToolBase::decideOnSingleObject ( TrigCompositeUtils::Decision ,
const std::vector< const TrigCompositeUtils::DecisionIDContainer * > &   
) const
virtualinherited

Alternate method called by BPhysics ComboHypoAlgs instead of the base method decide(...).

This function should be considered a specialist use-case only. It must be over-ridden to do anything useful.

Reimplemented in TrigMultiTrkComboHypoTool, and TrigBmumuxComboHypoTool.

Definition at line 284 of file ComboHypoToolBase.cxx.

284  {
285  ATH_MSG_ERROR("Do not use ComboHypoToolBase on its own, inherit this class and override decideOnSingleObject.");
286  ATH_MSG_ERROR("NOTE: Only if you are also supplying your own decide(...) implimentation, or similar.");
287  ATH_MSG_ERROR("NOTE: Most uses cases should only need to override executeAlg(...).");
288  return StatusCode::FAILURE;
289 }

◆ decisionId()

virtual HLT::Identifier ComboHypoToolBase::decisionId ( ) const
inlinevirtualinherited

retrieves this ComboHypoTool's chain's decision ID

Definition at line 41 of file ComboHypoToolBase.h.

41 { return m_decisionId; }

◆ eraseFromLegDecisionsMap()

void ComboHypoToolBase::eraseFromLegDecisionsMap ( Combo::LegDecisionsMap passingLegs) const
protectedinherited

For when the tool rejects all combinations.

Remove all Decision Objects from all the legs of this HypoTool's chain.

Definition at line 253 of file ComboHypoToolBase.cxx.

253  {
254  for (auto& it : passingLegs) {
255  DecisionID id = it.first;
256  if (id == m_decisionId or (isLegId(id) and getIDFromLeg(id) == m_decisionId)) {
257  const size_t nDecisionObjects = it.second.size();
258  it.second.clear();
259  ATH_MSG_VERBOSE("-- Removed " << nDecisionObjects << " from " << id);
260  }
261  }
262 }

◆ executeAlg()

bool ComboHypoToolBase::executeAlg ( const std::vector< Combo::LegDecision > &  combination) const
protectedvirtualinherited

Only a dummy implementation exists in ComboHypoToolBase.

This should be over-ridden by a derived class. The derived class should return a boolean pass/fail for each possible combination in the event. param[in] combination A single combination of objects to be discriminated against. Vector contains the required number of objects over all legs. Use the pair.first to tell which leg a given pair.second decision object belongs to in the current combination.

Reimplemented in TrigEgammaTopoHypoTool, TrigAFPDijetComboHypoTool, DebugComboHypoTool, DeltaRRoIComboHypoTool, TrigMuonEFIdtpInvMassHypoTool, TrigMuonEFInvMassHypoTool, TrigMultiTrkComboHypoTool, and TrigBmumuxComboHypoTool.

Definition at line 279 of file ComboHypoToolBase.cxx.

279  {
280  ATH_MSG_ERROR("Do not use ComboHypoToolBase on its own, inherit this class and override executeAlg.");
281  return false;
282 }

◆ getAdDecision()

bool TrigADComboHypoTool::getAdDecision ( const std::vector< const xAOD::Jet * > &  input_jets,
const std::vector< const xAOD::Muon * > &  input_muons,
const std::vector< const xAOD::Electron * > &  input_electrons,
const std::vector< const xAOD::Photon * > &  input_photons,
const std::vector< const xAOD::TauJet * > &  input_taus,
const std::vector< const xAOD::TrigMissingET * > &  input_mets 
) const
private

Definition at line 234 of file TrigADComboHypoTool.cxx.

240  {
241 
242  ATH_MSG_DEBUG( "Counting AD input objects in the event ... "
243  << "Jets: " << input_jets.size() << ", "
244  << "Muons: " << input_muons.size() << ", "
245  << "Electrons: " << input_electrons.size() << ", "
246  << "Photons: " << input_photons.size() << ", "
247  << "TauJets: " << input_taus.size() << ", "
248  << "METs: " << input_mets.size());
249 
250  // pt1 eta1 phi1 pt2 eta2 phi2 ... for 6 jets, 3 electrons, 3 muons, 3 photons, and MET
251  unsigned int metind = (m_maxjs.value()+m_maxes.value()+m_maxms.value()+m_maxgs.value())*3;
252  std::vector<float> inputTensor;
253 
254  unsigned int jet_count = 0;
255  for(const auto &jet : input_jets){
256  ATH_MSG_DEBUG( std::setprecision(3) << std::fixed
257  << "jet[" << jet_count << "] = ("
258  << jet->pt()/1000 << ", "
259  << jet->eta() << ", "
260  << jet->phi() << ", "
261  << jet->m()/1000 << ")");
262  if (jet_count<m_maxjs.value()) {
263  inputTensor.insert(inputTensor.end(), {static_cast<float>(jet->pt()/1000), static_cast<float>(jet->eta()), static_cast<float>(jet->phi())});
264  jet_count++;
265  }
266  }
267  inputTensor.insert(inputTensor.end(), 3*(m_maxjs.value()-jet_count), 0.);
268 
269  unsigned int ele_count = 0;
270  for(const auto &ele : input_electrons){
271  ATH_MSG_DEBUG( std::setprecision(3) << std::fixed
272  << "ele[" << ele_count << "] = ("
273  << ele->pt()/1000 << ", "
274  << ele->eta() << ", "
275  << ele->phi() << ", "
276  << ele->m()/1000 << ")");
277  if (ele_count<m_maxes.value()) {
278  inputTensor.insert(inputTensor.end(), {static_cast<float>(ele->pt()/1000), static_cast<float>(ele->eta()), static_cast<float>(ele->phi())});
279  ele_count++;
280  }
281  }
282  inputTensor.insert(inputTensor.end(), 3*(m_maxes.value()-ele_count), 0.);
283 
284  unsigned int muon_count = 0;
285  for(const auto &muon : input_muons){
286  ATH_MSG_DEBUG( std::setprecision(3) << std::fixed
287  << "muon[" << muon_count << "] = ("
288  << muon->pt()/1000 << ", "
289  << muon->eta() << ", "
290  << muon->phi() << ", "
291  << muon->m()/1000 << ")");
292  if (muon_count<m_maxms.value()) {
293  inputTensor.insert(inputTensor.end(), {static_cast<float>(muon->pt()/1000), static_cast<float>(muon->eta()), static_cast<float>(muon->phi())});
294  muon_count++;
295  }
296  }
297  inputTensor.insert(inputTensor.end(), 3*(m_maxms.value()-muon_count), 0.);
298 
299  unsigned int gam_count = 0;
300  for(const auto &gam : input_photons){
301  ATH_MSG_DEBUG( std::setprecision(3) << std::fixed
302  << "gam[" << gam_count << "] = ("
303  << gam->pt()/1000 << ", "
304  << gam->eta() << ", "
305  << gam->phi() << ", "
306  << gam->m()/1000 << ")");
307  if (gam_count<m_maxgs.value()) {
308  inputTensor.insert(inputTensor.end(), {static_cast<float>(gam->pt()/1000), static_cast<float>(gam->eta()), static_cast<float>(gam->phi())});
309  gam_count++;
310  }
311  }
312  inputTensor.insert(inputTensor.end(), 3*(m_maxgs.value()-gam_count), 0.);
313 
314  inputTensor.insert(inputTensor.end(), {0., 0., 0.});
315  for(const auto &met : input_mets){
316  ROOT::Math::XYVectorF metv(met->ex(),met->ey());
317  float met_phi = metv.phi();
318  float met_et = metv.r();
319 
320  ATH_MSG_DEBUG( std::setprecision(3) << std::fixed
321  << "MET = ("
322  << met_et/1000 << ", "
323  << met_phi << ")");
324  inputTensor[metind] = met_et/1000;
325  inputTensor[metind+2] = met_phi;
326  }
327 
328  ATH_MSG_DEBUG("inputTensor size = " << inputTensor.size());
329  if(msgLvl(MSG::DEBUG)){
330  for (unsigned int i=0; i<inputTensor.size(); i++){
331  ATH_MSG_DEBUG("inputTensor[" << i << "] = " << inputTensor[i]);
332  }
333  }
334 
335  float outputScore = runInference(inputTensor);
336  ATH_MSG_DEBUG("Computed TrigADScore: " << outputScore);
337 
338  bool trigPass = (outputScore > m_adScoreThres);
339 
340  return trigPass;
341 }

◆ initialize()

StatusCode TrigADComboHypoTool::initialize ( )
overridevirtual

Definition at line 26 of file TrigADComboHypoTool.cxx.

26  {
27 
28  ATH_CHECK( m_svc.retrieve() );
29  std::string model_file_name = PathResolverFindCalibFile(m_modelFileName);
30 
31  if (m_modelFileName.empty() || model_file_name.empty()) {
32  ATH_MSG_ERROR("Could not find the requested ONNX model file: " << m_modelFileName);
33  ATH_MSG_ERROR("Please make sure it exists in the ATLAS calibration area (https://atlas-groupdata.web.cern.ch/atlas-groupdata/), and provide a model file name relative to the root of the calibration area.");
34 
35  return StatusCode::FAILURE;
36  }
37 
38  // initialise session
39  Ort::SessionOptions session_options;
40  Ort::AllocatorWithDefaultOptions allocator;
41  session_options.SetIntraOpNumThreads(1);
42  session_options.SetGraphOptimizationLevel(ORT_ENABLE_BASIC);
43 
44  m_session = std::make_unique<Ort::Session>(m_svc->env(), model_file_name.c_str(), session_options);
45 
46  ATH_MSG_INFO("Created ONNX runtime session with model " << model_file_name);
47 
48  size_t num_input_nodes = m_session->GetInputCount();
49  m_input_node_names.resize(num_input_nodes);
50 
51  for (std::size_t i = 0; i < num_input_nodes; i++) {
52  char* input_name = m_session->GetInputNameAllocated(i, allocator).release();
53  ATH_MSG_DEBUG("Input " << i << " : " << " name= " << input_name);
54  m_input_node_names[i] = input_name;
55 
56  Ort::TypeInfo type_info = m_session->GetInputTypeInfo(i);
57  auto tensor_info = type_info.GetTensorTypeAndShapeInfo();
58  ONNXTensorElementDataType type = tensor_info.GetElementType();
59  ATH_MSG_DEBUG("Input " << i << " : " << " type= " << type);
60 
61  m_input_node_dims = tensor_info.GetShape();
62  ATH_MSG_DEBUG("Input " << i << " : num_dims= " << m_input_node_dims.size());
63  for (std::size_t j = 0; j < m_input_node_dims.size(); j++) {
64  if (m_input_node_dims[j] < 0) m_input_node_dims[j] = 1;
65  ATH_MSG_DEBUG("Input " << i << " : dim " << j << "= " << m_input_node_dims[j]);
66  }
67  }
68 
69  std::vector<int64_t> output_node_dims;
70  size_t num_output_nodes = m_session->GetOutputCount();
71  ATH_MSG_DEBUG("Have output nodes " << num_output_nodes);
72  m_output_node_names.resize(num_output_nodes);
73 
74  for (std::size_t i = 0; i < num_output_nodes; i++) {
75  char* output_name = m_session->GetOutputNameAllocated(i, allocator).release();
76  ATH_MSG_DEBUG("Output " << i << " : " << " name= " << output_name);
77  m_output_node_names[i] = output_name;
78 
79  Ort::TypeInfo type_info = m_session->GetOutputTypeInfo(i);
80  auto tensor_info = type_info.GetTensorTypeAndShapeInfo();
81  ONNXTensorElementDataType type = tensor_info.GetElementType();
82  ATH_MSG_DEBUG("Output " << i << " : " << " type= " << type);
83 
84  output_node_dims = tensor_info.GetShape();
85  ATH_MSG_DEBUG("Output " << i << " : num_dims= " << output_node_dims.size());
86  for (std::size_t j = 0; j < output_node_dims.size(); j++) {
87  if (output_node_dims[j] < 0) output_node_dims[j] = 1;
88  ATH_MSG_DEBUG("Output" << i << " : dim " << j << "= " << output_node_dims[j]);
89  }
90  }
91 
92 
93  return StatusCode::SUCCESS;
94 }

◆ legDecisionId()

HLT::Identifier ComboHypoToolBase::legDecisionId ( size_t  i) const
inlineinherited

Retrieves this ComboHypoTool's chain's decision ID for a given leg.

Only populated for chains with more than one leg. For chains with one leg, use decisionId()

Definition at line 60 of file ComboHypoToolBase.h.

60 { return m_legDecisionIds.at(i); }

◆ legDecisionIds()

const std::vector<HLT::Identifier>& ComboHypoToolBase::legDecisionIds ( ) const
inlineinherited

Retrieves this ComboHypoTool's chain's decision IDs for all legs.

Only populated for chains with more than one leg. For chains with one leg, use decisionId()

Definition at line 66 of file ComboHypoToolBase.h.

66 { return m_legDecisionIds; }

◆ legMultiplicity()

const std::vector<int>& ComboHypoToolBase::legMultiplicity ( ) const
inlineinherited

Gets the number of legs and the multiplicity required on each leg.

Definition at line 54 of file ComboHypoToolBase.h.

54 { return m_legMultiplicities; }

◆ printDebugInformation()

StatusCode ComboHypoToolBase::printDebugInformation ( const Combo::LegDecisionsMap passingLegs) const
protectedinherited

Print the output of the tool, after having removed failed Decision Objects.

Restricted to the ComboHypoTool's chain's legs.

Definition at line 264 of file ComboHypoToolBase.cxx.

264  {
265  ATH_MSG_DEBUG("ComboHypoToolBase: End of " << m_decisionId << ", passing elements are: ");
266  for (const auto& [id, ELV] : passingLegs) {
267  // Only print for this chain
268  if (id == m_decisionId or (isLegId(id) and m_decisionId == getIDFromLeg(id))) {
269  ATH_MSG_DEBUG("-- " << HLT::Identifier(id) << " with " << ELV.size() << " elements");
270  for (const auto& EL : ELV) {
271  ATH_MSG_DEBUG("-- -- container:" << EL.dataID() << ", index:" << EL.index());
272  }
273  }
274  }
275  return StatusCode::SUCCESS;
276 }

◆ runInference()

float TrigADComboHypoTool::runInference ( std::vector< float > &  tensor) const
private

Definition at line 343 of file TrigADComboHypoTool.cxx.

343  {
344 
345  ATH_MSG_DEBUG("in TrigADComboHypoTool::runInference()");
346 
347  auto memory_info = Ort::MemoryInfo::CreateCpu(OrtArenaAllocator, OrtMemTypeDefault);
348  int input_tensor_size = (m_maxjs.value()+m_maxes.value()+m_maxms.value()+m_maxgs.value()+1)*3;
349  Ort::Value input_tensor = Ort::Value::CreateTensor<float>(memory_info, tensor.data(), input_tensor_size, m_input_node_dims.data(), m_input_node_dims.size());
350 
351  // Ort::Session::Run is non-const.
352  // However, the onnx authors claim that it is safe to call from multiple threads:
353  // https://github.com/Microsoft/onnxruntime/issues/114
354  Ort::Session* session ATLAS_THREAD_SAFE = m_session.get();
355  auto output_tensors = session->Run(Ort::RunOptions{nullptr}, m_input_node_names.data(), &input_tensor, m_input_node_names.size(), m_output_node_names.data(), m_output_node_names.size());
356 
357  float *output_score_array = output_tensors.front().GetTensorMutableData<float>();
358  unsigned int output_size = output_tensors.front().GetTensorTypeAndShapeInfo().GetElementCount();
359 
360  float output_score = 0.;
361  if(output_size!=1){
362  ATH_MSG_ERROR("Invalid output tensor size: " << output_size);
363  }else{
364  output_score = output_score_array[0];
365  }
366 
367  return output_score;
368 }

◆ selectLegs()

StatusCode ComboHypoToolBase::selectLegs ( const Combo::LegDecisionsMap IDCombMap,
std::vector< std::vector< Combo::LegDecision >> &  leg_decisions 
) const
protectedinherited

Creates the per-leg vectors of Decision objects starting from the initial LegDecision map, storing only those concerning this HypoTool's chain Pack the Decision objects in std::pair<DecisionID, ElementLink<Decision>> so the derived class' executeAlg function knows which leg each object is on.

Definition at line 172 of file ComboHypoToolBase.cxx.

173 {
174  /*
175  legDecisions: nested vector like:
176  [(leg0, el0), (leg0, el1), (leg0, el2), (leg0, el3)], <-- All leg0 objects are in legDecisions[0][X]
177  [(leg1, mu0), (leg1, mu1)] <-- All leg1 objects are in legDecisions[1][X]
178  We keep the legID in the std::pair inside the inner vector as these pairs will be flattened into a single vector
179  when individual combinations of objects are passed to executeAlg, pair.first then contains the leg, with pair.second containing the Decision Object.
180  */
181 
182  // Extract from IDCombMap the features for this chain. Wrap the features up in a pair along with their leg ID
183  for (size_t legIndex = 0; legIndex < m_legMultiplicities.size(); ++ legIndex) {
184 
185  // If the chain has more than one leg, then we have per-leg IDs. Otherwise we just use the chain's ID
186  const HLT::Identifier& legIdentifier = (m_legMultiplicities.size() > 1 ? m_legDecisionIds.at(legIndex) : m_decisionId);
187 
188  // Combo::LegDecision is a pair of <DecisionID, ElementLink<Decision>>
189  std::vector<Combo::LegDecision> decisionObjectsOnLeg;
190 
191  // Find physics objects on this leg. May be zero.
192  const Combo::LegDecisionsMap::const_iterator it = IDCombMap.find(legIdentifier.numeric());
193 
194  if (it != IDCombMap.end()) {
195  for (const ElementLink<DecisionContainer>& el : it->second) {
196  decisionObjectsOnLeg.emplace_back(legIdentifier, el);
197  }
198  }
199 
200  legDecisions.push_back(std::move(decisionObjectsOnLeg));
201  }
202 
203  if (msgLvl(MSG::DEBUG)) {
204  ATH_MSG_DEBUG("Getting " << legDecisions.size() << " legs to combine, for ID: " << decisionId());
205  size_t count = 0;
206  for (const auto& leg : legDecisions) {
207  ATH_MSG_DEBUG("Leg " << count++ << " --");
208  for (const auto& dEL : leg) {
209  ATH_MSG_DEBUG("-- " << HLT::Identifier(dEL.first) << " container:" << dEL.second.dataID() << ", index:" << dEL.second.index());
210  }
211  }
212  }
213  return StatusCode::SUCCESS;
214 }

◆ setLegMultiplicity()

StatusCode ComboHypoToolBase::setLegMultiplicity ( const Combo::MultiplicityReqMap multiplicityRequiredMap)
inherited

Sets the number of legs and the multiplicity required on each leg.

This should be called when the Tool is retrieved by its parent ComboHypo alg. This also sets the leg Decision IDs at the same time param[in] multiplicityRequiredMap: Mapping of chains to required multiplicity per leg.

Definition at line 16 of file ComboHypoToolBase.cxx.

16  {
17  const std::string nameOfToolsChain = m_decisionId.name();
18  const Combo::MultiplicityReqMap::const_iterator it = multiplicityRequiredMap.find(nameOfToolsChain);
19 
20  if (it == multiplicityRequiredMap.end()) {
21  ATH_MSG_ERROR("ComboHypoTool for " << m_decisionId << " could not find its required multiplcity data in the map supplied by its parent alg.");
22  return StatusCode::FAILURE;
23  }
24 
25  m_legMultiplicities = it->second;
26  if (m_legMultiplicities.size() == 0) {
27  ATH_MSG_ERROR("ComboHypoTool for " << m_decisionId << " was listed in the supplied multiplicityRequiredMap, but data was not supplied for any legs.");
28  return StatusCode::FAILURE;
29  }
30 
31  m_legDecisionIds.clear();
32  for (size_t i = 0; i < m_legMultiplicities.size(); ++i) {
33  if(m_legMultiplicities.at(i) < 0) {
34  ATH_MSG_ERROR("ComboHypoTool for " << m_decisionId << " has been configured with an impossible multiplicity requirement of " << m_legMultiplicities.at(i) << " on leg " << i);
35  return StatusCode::FAILURE;
36  }
37  ATH_MSG_DEBUG("ComboHypoTool for " << m_decisionId << " will require multiplicity " << m_legMultiplicities.at(i) << " on leg " << i);
38  if (m_legMultiplicities.size() > 1) { // We only have per-leg IDs when there is more than one leg
40  } else { // For one leg, just repete the chain's ID
41  m_legDecisionIds.push_back(m_decisionId);
42  }
43  }
44 
45  return StatusCode::SUCCESS;
46 }

◆ updateLegDecisionsMap()

void ComboHypoToolBase::updateLegDecisionsMap ( const std::vector< std::vector< Combo::LegDecision >> &  passing_comb,
Combo::LegDecisionsMap passingLegs 
) const
protectedinherited

For when the tool accepts some/all combinations.

Remove Decision Objects from legs of this HypoTool's chain which participated in NONE of combinations which were flagged as accepting the event.

Definition at line 216 of file ComboHypoToolBase.cxx.

216  {
217  if (msgLvl(MSG::DEBUG)) {
218  size_t count = 0;
219  for (const std::vector<Combo::LegDecision>& comb : passingComb) {
220  ATH_MSG_DEBUG("-- Passing combination " << count++ << " of " << passingComb.size());
221  for (const auto& [id, EL] : comb) {
222  ATH_MSG_DEBUG("-- -- " << HLT::Identifier(id) << " container:" << EL.dataID() << ", index:" << EL.index());
223  }
224  }
225  }
226 
227  // remove combinations that didn't pass from the final map passingLegs
228  for (auto& it : passingLegs) {
229  DecisionID legId = it.first;
230  if (not(legId == m_decisionId or (isLegId(legId) and getIDFromLeg(legId) == m_decisionId))) {
231  continue; // Some other chain, ignore it to get faster execution.
232  }
233  std::vector<ElementLink<DecisionContainer>> updatedDecisionObjectsOnLeg;
234  bool update = false;
235  // Loop over all passing combinations, and all Decision Objects in each passing combination. Find Decision Objects on this leg.
236  for (const std::vector<Combo::LegDecision>& comb : passingComb) {
237  for (const auto& [id, EL] : comb) {
238  // Check that this Decision Object is on the correct leg, and that we haven't collated it already from another combination.
239  if (id == legId and std::find(updatedDecisionObjectsOnLeg.begin(), updatedDecisionObjectsOnLeg.end(), EL) == updatedDecisionObjectsOnLeg.end()) {
240  ATH_MSG_VERBOSE("Keeping on leg " << HLT::Identifier(id) << " the Decision Object container:" << EL.dataID() << ", index:" << EL.index());
241  updatedDecisionObjectsOnLeg.push_back(EL);
242  update = true;
243  }
244  }
245  }
246  // only update those concerning this tool ID
247  if (update){
248  it.second = updatedDecisionObjectsOnLeg;
249  }
250  }
251 }

Member Data Documentation

◆ m_adScoreThres

Gaudi::Property<double> TrigADComboHypoTool::m_adScoreThres {this, "adScoreThres", {0.}, "HLT AD score threshold"}
private

Definition at line 38 of file TrigADComboHypoTool.h.

◆ m_combinationsThresholdBreak

Gaudi::Property<size_t> ComboHypoToolBase::m_combinationsThresholdBreak
protectedinherited
Initial value:
{this, "CombinationsThresholdBreak", 10000,
"Events processing this many combinations will generate a second WARNING message, and the loop over combinations will be terminated at this point."}

Definition at line 109 of file ComboHypoToolBase.h.

◆ m_combinationsThresholdWarn

Gaudi::Property<size_t> ComboHypoToolBase::m_combinationsThresholdWarn
protectedinherited
Initial value:
{this, "CombinationsThresholdWarn", 1000,
"Events processing this many combinations will generate a WARNING message."}

Definition at line 106 of file ComboHypoToolBase.h.

◆ m_decisionId

HLT::Identifier ComboHypoToolBase::m_decisionId
privateinherited

The DecisionID of the chain, obtained from the Tool's name.

Definition at line 122 of file ComboHypoToolBase.h.

◆ m_enableOverride

Gaudi::Property<bool> ComboHypoToolBase::m_enableOverride
protectedinherited
Initial value:
{this, "EnableOverride", false,
"Stops processing combinations as soon as a valid combination is found in OR mode, or as soon as an invalid combination is found in AND mode. This is to save CPU."}

Definition at line 115 of file ComboHypoToolBase.h.

◆ m_input_node_dims

std::vector<int64_t> TrigADComboHypoTool::m_input_node_dims
private

Definition at line 58 of file TrigADComboHypoTool.h.

◆ m_input_node_names

std::vector<const char *> TrigADComboHypoTool::m_input_node_names
private

Definition at line 54 of file TrigADComboHypoTool.h.

◆ m_legDecisionIds

std::vector<HLT::Identifier> ComboHypoToolBase::m_legDecisionIds
privateinherited

The DecisionIDs of the individual legs, derived from both m_decisionId and m_legMultiplicities.

Definition at line 123 of file ComboHypoToolBase.h.

◆ m_legMultiplicities

std::vector<int> ComboHypoToolBase::m_legMultiplicities
privateinherited

The number of legs, and the required multiplicity on each leg.

Definition at line 124 of file ComboHypoToolBase.h.

◆ m_maxes

Gaudi::Property<unsigned int> TrigADComboHypoTool::m_maxes {this, "max_electrons",{3}, "Maximum number of electrons allowed in the event"}
private

Definition at line 34 of file TrigADComboHypoTool.h.

◆ m_maxgs

Gaudi::Property<unsigned int> TrigADComboHypoTool::m_maxgs {this, "max_photons",{3}, "Maximum number of photons allowed in the event"}
private

Definition at line 36 of file TrigADComboHypoTool.h.

◆ m_maxjs

Gaudi::Property<unsigned int> TrigADComboHypoTool::m_maxjs {this, "max_jets",{6}, "Maximum number of jets allowed in the event"}
private

Definition at line 33 of file TrigADComboHypoTool.h.

◆ m_maxms

Gaudi::Property<unsigned int> TrigADComboHypoTool::m_maxms {this, "max_muons",{3}, "Maximum number of muons allowed in the event"}
private

Definition at line 35 of file TrigADComboHypoTool.h.

◆ m_modelFileName

Gaudi::Property<std::string> TrigADComboHypoTool::m_modelFileName {this, "ModelFileName", "TrigAnomalyDetectionHypo/2025-03-10/HLT_AD_v1.onnx"}
private

Definition at line 61 of file TrigADComboHypoTool.h.

◆ m_modeOR

Gaudi::Property<bool> ComboHypoToolBase::m_modeOR
protectedinherited
Initial value:
{this, "ModeOR", true,
"Accepts based on the logical OR over all calls to executeAlg. If this flag is set to false then the logical AND is required instead."}

Definition at line 112 of file ComboHypoToolBase.h.

◆ m_output_node_names

std::vector<const char *> TrigADComboHypoTool::m_output_node_names
private

Definition at line 56 of file TrigADComboHypoTool.h.

◆ m_session

std::unique_ptr<Ort::Session> TrigADComboHypoTool::m_session
private

Definition at line 52 of file TrigADComboHypoTool.h.

◆ m_svc

ServiceHandle<AthOnnx::IOnnxRuntimeSvc> TrigADComboHypoTool::m_svc {this, "ONNXRuntimeSvc", "AthOnnx::OnnxRuntimeSvc", "TrigADComboHypoTool ONNXRuntimeSvc"}
private

Definition at line 50 of file TrigADComboHypoTool.h.


The documentation for this class was generated from the following files:
TrigADComboHypoTool::m_maxes
Gaudi::Property< unsigned int > m_maxes
Definition: TrigADComboHypoTool.h:34
TrigADComboHypoTool::m_maxjs
Gaudi::Property< unsigned int > m_maxjs
Definition: TrigADComboHypoTool.h:33
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:196
TrigCompositeUtils::DecisionID
unsigned int DecisionID
Definition: TrigComposite_v1.h:27
TrigCompositeUtils::LinkInfo::link
ElementLink< T > link
Link to the feature.
Definition: LinkInfo.h:61
ComboHypoToolBase::eraseFromLegDecisionsMap
void eraseFromLegDecisionsMap(Combo::LegDecisionsMap &passingLegs) const
For when the tool rejects all combinations.
Definition: ComboHypoToolBase.cxx:253
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
HLT::Identifier::numeric
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:47
TrigCompositeUtils::LinkInfo::isValid
bool isValid() const
Definition: LinkInfo.h:43
python.TrigCompositeUtils.isLegId
def isLegId(chainName)
Definition: DecisionHandling/python/TrigCompositeUtils.py:18
skel.it
it
Definition: skel.GENtoEVGEN.py:407
TrigADComboHypoTool::m_input_node_names
std::vector< const char * > m_input_node_names
Definition: TrigADComboHypoTool.h:54
TrigADComboHypoTool::m_session
std::unique_ptr< Ort::Session > m_session
Definition: TrigADComboHypoTool.h:52
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
python.oracle.Session
Session
Definition: oracle.py:78
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
TrigADComboHypoTool::m_maxgs
Gaudi::Property< unsigned int > m_maxgs
Definition: TrigADComboHypoTool.h:36
ComboHypoToolBase::decisionId
virtual HLT::Identifier decisionId() const
retrieves this ComboHypoTool's chain's decision ID
Definition: ComboHypoToolBase.h:41
ComboHypoToolBase::m_legDecisionIds
std::vector< HLT::Identifier > m_legDecisionIds
The DecisionIDs of the individual legs, derived from both m_decisionId and m_legMultiplicities.
Definition: ComboHypoToolBase.h:123
met
Definition: IMETSignificance.h:24
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
lumiFormat.i
int i
Definition: lumiFormat.py:85
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
xAOD::TauJet_v3
Class describing a tau jet.
Definition: TauJet_v3.h:41
TrigADComboHypoTool::m_svc
ServiceHandle< AthOnnx::IOnnxRuntimeSvc > m_svc
Definition: TrigADComboHypoTool.h:50
test_pyathena.parent
parent
Definition: test_pyathena.py:15
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
compute_lumi.leg
leg
Definition: compute_lumi.py:95
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
HLT::Identifier
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:20
ComboHypoToolBase::m_decisionId
HLT::Identifier m_decisionId
The DecisionID of the chain, obtained from the Tool's name.
Definition: ComboHypoToolBase.h:122
TrigCompositeUtils::featureString
const std::string & featureString()
Definition: TrigCompositeUtilsRoot.cxx:884
ComboHypoToolBase::selectLegs
StatusCode selectLegs(const Combo::LegDecisionsMap &IDCombMap, std::vector< std::vector< Combo::LegDecision >> &leg_decisions) const
Creates the per-leg vectors of Decision objects starting from the initial LegDecision map,...
Definition: ComboHypoToolBase.cxx:172
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TrigADComboHypoTool::m_maxms
Gaudi::Property< unsigned int > m_maxms
Definition: TrigADComboHypoTool.h:35
xAOD::Electron_v1
Definition: Electron_v1.h:34
TrigCompositeUtils::createLegName
HLT::Identifier createLegName(const HLT::Identifier &chainIdentifier, size_t counter)
Generate the HLT::Identifier which corresponds to a specific leg of a given chain.
Definition: TrigCompositeUtilsRoot.cxx:166
PathResolverFindCalibFile
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.cxx:431
TrigADComboHypoTool::runInference
float runInference(std::vector< float > &tensor) const
Definition: TrigADComboHypoTool.cxx:343
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
ComboHypoToolBase::ComboHypoToolBase
ComboHypoToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition: ComboHypoToolBase.cxx:10
TrigCompositeUtils::LinkInfo
Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGr...
Definition: LinkInfo.h:28
TrigADComboHypoTool::m_input_node_dims
std::vector< int64_t > m_input_node_dims
Definition: TrigADComboHypoTool.h:58
xAOD::photon
@ photon
Definition: TrackingPrimitives.h:200
a
TList * a
Definition: liststreamerinfos.cxx:10
xAOD::Photon_v1
Definition: Photon_v1.h:37
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
xAOD::TrigMissingET_v1
Class holding the Missing ET trigger fex results.
Definition: TrigMissingET_v1.h:32
DEBUG
#define DEBUG
Definition: page_access.h:11
xAOD::EgammaParameters::electron
@ electron
Definition: EgammaEnums.h:18
HLT::Identifier::name
std::string name() const
reports human redable name if it is enabled or, empty string
Definition: HLTIdentifier.cxx:14
TrigADComboHypoTool::m_output_node_names
std::vector< const char * > m_output_node_names
Definition: TrigADComboHypoTool.h:56
TrigCompositeUtils::getIDFromLeg
HLT::Identifier getIDFromLeg(const HLT::Identifier &legIdentifier)
Generate the HLT::Identifier which corresponds to the chain name from the leg name.
Definition: TrigCompositeUtilsRoot.cxx:180
TrigADComboHypoTool::m_adScoreThres
Gaudi::Property< double > m_adScoreThres
Definition: TrigADComboHypoTool.h:38
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211
ComboHypoToolBase::m_legMultiplicities
std::vector< int > m_legMultiplicities
The number of legs, and the required multiplicity on each leg.
Definition: ComboHypoToolBase.h:124
TrigADComboHypoTool::m_modelFileName
Gaudi::Property< std::string > m_modelFileName
Definition: TrigADComboHypoTool.h:61
WriteBchToCool.update
update
Definition: WriteBchToCool.py:67
TrigADComboHypoTool::getAdDecision
bool getAdDecision(const std::vector< const xAOD::Jet * > &input_jets, const std::vector< const xAOD::Muon * > &input_muons, const std::vector< const xAOD::Electron * > &input_electrons, const std::vector< const xAOD::Photon * > &input_photons, const std::vector< const xAOD::TauJet * > &input_taus, const std::vector< const xAOD::TrigMissingET * > &input_mets) const
Definition: TrigADComboHypoTool.cxx:234