ATLAS Offline Software
Loading...
Searching...
No Matches
TrigHIUCCHypoTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "TrigHIUCCHypoTool.h"
6#include <GaudiKernel/StatusCode.h>
7
8TrigHIUCCHypoTool::TrigHIUCCHypoTool(const std::string& type, const std::string& name, const IInterface* parent) :
9 base_class(type, name, parent),
10 m_decisionId(HLT::Identifier::fromToolName(name))
11{
12}
13
17
18StatusCode TrigHIUCCHypoTool::decide(const xAOD::HIEventShapeContainer* eventShapeContainer, bool& pass) const {
19 ATH_MSG_DEBUG("Executing decide() of " << name());
20
21 float totalFCalEt = 0;
22 for (const xAOD::HIEventShape* es: *eventShapeContainer) {
23 const int layer = es->layer();
24 if (layer < 21 or layer > 23) { //only use FCal information (calo samplings 21: FCAL0, 22: FCAL1, 23: FCAL2)
25 continue;
26 }
27 totalFCalEt += es->et();
28 }
29 pass = totalFCalEt > m_FCalEtThreshold;
30 return StatusCode::SUCCESS;
31}
#define ATH_MSG_DEBUG(x)
virtual const HLT::Identifier & getId() const override
Gaudi::Property< float > m_FCalEtThreshold
virtual StatusCode decide(const xAOD::HIEventShapeContainer *, bool &) const override
TrigHIUCCHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
HLT::Identifier m_decisionId
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
HIEventShapeContainer_v2 HIEventShapeContainer
Define the latest version of the container.
HIEventShape_v2 HIEventShape
Definition of the latest event info version.