ATLAS Offline Software
Loading...
Searching...
No Matches
TrigHIUCCHypoTool Class Reference

the tool to select Ultra Central Collisions (applies a cut on calo energy) More...

#include <TrigHIUCCHypoTool.h>

Inheritance diagram for TrigHIUCCHypoTool:
Collaboration diagram for TrigHIUCCHypoTool:

Public Member Functions

 TrigHIUCCHypoTool (const std::string &type, const std::string &name, const IInterface *parent)
virtual ~TrigHIUCCHypoTool () override
virtual StatusCode initialize () override
virtual StatusCode finalize () override
virtual StatusCode decide (const xAOD::HIEventShapeContainer *, bool &) const override
virtual const HLT::IdentifiergetId () const override

Private Attributes

HLT::Identifier m_decisionId
Gaudi::Property< float > m_FCalEtThreshold {this, "FCalEtThreshold", -1, "Threshold applied on ET from FCal"}

Detailed Description

the tool to select Ultra Central Collisions (applies a cut on calo energy)

Definition at line 22 of file TrigHIUCCHypoTool.h.

Constructor & Destructor Documentation

◆ TrigHIUCCHypoTool()

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

Definition at line 8 of file TrigHIUCCHypoTool.cxx.

8 :
9 base_class(type, name, parent),
11{
12}
static HLT::Identifier fromToolName(const std::string &tname)
HLT::Identifier m_decisionId

◆ ~TrigHIUCCHypoTool()

virtual TrigHIUCCHypoTool::~TrigHIUCCHypoTool ( )
inlineoverridevirtual

Definition at line 25 of file TrigHIUCCHypoTool.h.

25{}

Member Function Documentation

◆ decide()

StatusCode TrigHIUCCHypoTool::decide ( const xAOD::HIEventShapeContainer * eventShapeContainer,
bool & pass ) const
overridevirtual

Definition at line 18 of file TrigHIUCCHypoTool.cxx.

18 {
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)
Gaudi::Property< float > m_FCalEtThreshold
@ layer
Definition HitInfo.h:79
HIEventShape_v2 HIEventShape
Definition of the latest event info version.

◆ finalize()

virtual StatusCode TrigHIUCCHypoTool::finalize ( )
inlineoverridevirtual

Definition at line 28 of file TrigHIUCCHypoTool.h.

28{ return StatusCode::SUCCESS; }

◆ getId()

const HLT::Identifier & TrigHIUCCHypoTool::getId ( ) const
overridevirtual

Definition at line 14 of file TrigHIUCCHypoTool.cxx.

14 {
15 return m_decisionId;
16}

◆ initialize()

virtual StatusCode TrigHIUCCHypoTool::initialize ( )
inlineoverridevirtual

Definition at line 27 of file TrigHIUCCHypoTool.h.

27{ return StatusCode::SUCCESS; }

Member Data Documentation

◆ m_decisionId

HLT::Identifier TrigHIUCCHypoTool::m_decisionId
private

Definition at line 34 of file TrigHIUCCHypoTool.h.

◆ m_FCalEtThreshold

Gaudi::Property<float> TrigHIUCCHypoTool::m_FCalEtThreshold {this, "FCalEtThreshold", -1, "Threshold applied on ET from FCal"}
private

Definition at line 35 of file TrigHIUCCHypoTool.h.

35{this, "FCalEtThreshold", -1, "Threshold applied on ET from FCal"};

The documentation for this class was generated from the following files: