ATLAS Offline Software
Loading...
Searching...
No Matches
SPCountHypoTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef TRIGMINBIAS_SPCOUNTHYPOTOOL_H
5#define TRIGMINBIAS_SPCOUNTHYPOTOOL_H
6
9#include "Gaudi/Property.h"
12
13class SPCountHypoTool : virtual public AthCheckedComponent<::AthAlgTool> {
14 public:
15 SPCountHypoTool(const std::string &type, const std::string &name, const IInterface *parent);
16
17 virtual StatusCode initialize() override;
18
24
25 StatusCode decide(SPCountsInfo &decisions) const;
26
27 private:
28 template<typename DetailType>
29 bool applyCut(const Gaudi::Property<DetailType> &threshold, const xAOD::TrigComposite *composit, const std::string_view name = "") const;
30 template<typename DetailType>
31 bool applyInverseCut(const Gaudi::Property<DetailType> &threshold, const xAOD::TrigComposite *composit, const std::string_view name = "") const;
32
34
35 Gaudi::Property<int> m_pixCL{this, "pixCL", -1, "Require Clusters (of any size) Count > threshold (-1 disabled) in whole pixel"};
36 Gaudi::Property<int> m_pixCLMax{this, "pixCLMax", -1, "Require Clusters (of any size) Count < threshold (-1 disabled) in whole pixel"};
37 Gaudi::Property<int> m_pixCLnoToT{this, "pixCLnoToT", -1, "Require Clusters (of any size, without ToT cut) Count > threshold (-1 disabled) in whole pixel"};
38 Gaudi::Property<int> m_pixCL_1{this, "pixCL_1", -1, "Require Clusters Count made of clusters of size 1 > threshold (-1 disabled) in whole pixel"};
39 Gaudi::Property<int> m_pixCL_2{this, "pixCL_2", -1, "Require Clusters Count made of clusters of size 2 > threshold (-1 disabled) in whole pixel"};
40 Gaudi::Property<int> m_pixCLmin3{this, "pixCLmin3", -1, "Accept eventss with minimum 3 SP Count > threshold (-1 disabled) in pixel"};
41 Gaudi::Property<int> m_pixCLBarrel{this, "pixCLBarrel", -1, "Require Clusters Count > threshold (-1 disabled) in pixel Barrel"};
42 Gaudi::Property<int> m_pixCLEndcapA{this, "pixCLEndcapA", -1, "Require Clusters Count > threshold (-1 disabled) in pixel Endcap A side"};
43 Gaudi::Property<int> m_pixCLEndcapC{this, "pixCLEndcapC", -1, "Require Clusters > threshold (-1 disabled) in pixel Endcap C side"};
44 Gaudi::Property<int> m_sctSP{this, "sctSP", -1, "Require SP Count > threshold (-1 disabled) in whole SCT"};
45 Gaudi::Property<int> m_sctSPMax{this, "sctSPMax", -1, "Require SP Count < threshold (-1 disabled) in whole SCT"};
46 Gaudi::Property<int> m_sctSPBarrel{this, "sctSPBarrel", -1, "Require SP Count > threshold (-1 disabled) in SCT Barrel"};
47 Gaudi::Property<int> m_sctSPEndcapA{this, "sctSPEndcapA", -1, "Require SP Count > threshold (-1 disabled) in SCT Endcap A side"};
48 Gaudi::Property<int> m_sctSPEndcapC{this, "sctSPEndcapC", -1, "Require SP Count > threshold (-1 disabled) in SCT Endcap C side"};
49 Gaudi::Property<bool> m_logicAnd{this, "TriggerTypeAnd", true, "And/Or Logic"};
50 Gaudi::Property<float> m_pixQ2mod{this, "pixQ2mod", -1, "Cut on the value of QT magnitude"};
51
52};
53
54#endif //> !TRIGMINBIAS_SPCOUNTHYPOTOOL_H
Mixin class to perform additional checks on a component.
Gaudi::Property< int > m_sctSPBarrel
Gaudi::Property< int > m_pixCL_1
Gaudi::Property< int > m_pixCLEndcapC
SPCountHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize() override
Gaudi::Property< int > m_sctSPMax
Gaudi::Property< int > m_sctSPEndcapC
Gaudi::Property< float > m_pixQ2mod
Gaudi::Property< int > m_pixCLMax
HLT::Identifier m_decisionId
Gaudi::Property< int > m_pixCL_2
Gaudi::Property< int > m_pixCL
bool applyCut(const Gaudi::Property< DetailType > &threshold, const xAOD::TrigComposite *composit, const std::string_view name="") const
Gaudi::Property< int > m_pixCLmin3
Gaudi::Property< int > m_pixCLBarrel
StatusCode decide(SPCountsInfo &decisions) const
Gaudi::Property< bool > m_logicAnd
bool applyInverseCut(const Gaudi::Property< DetailType > &threshold, const xAOD::TrigComposite *composit, const std::string_view name="") const
Gaudi::Property< int > m_sctSP
Gaudi::Property< int > m_sctSPEndcapA
Gaudi::Property< int > m_pixCLEndcapA
Gaudi::Property< int > m_pixCLnoToT
std::set< DecisionID > DecisionIDContainer
TrigComposite_v1 TrigComposite
Declare the latest version of the class.
const xAOD::TrigComposite * counts
TrigCompositeUtils::Decision * decision
const TrigCompositeUtils::DecisionIDContainer previousDecisionIDs