ATLAS Offline Software
PtCondition.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGHLTJETHYPO_PTCONDITION_H
6 #define TRIGHLTJETHYPO_PTCONDITION_H
7 
8 /********************************************************************
9  *
10  * NAME: PtCondition.h
11  * PACKAGE: Trigger/TrigHypothesis/TrigHLTJetHypo
12  *
13  * AUTHOR: P. Sherwood
14  *********************************************************************/
15 
16 #include <string>
17 #include "./ICondition.h"
18 
19 namespace HypoJet{
20  class IJet;
21 }
22 
24 
25 class PtCondition: public ICondition{
26  public:
27  PtCondition(double threshold);
28 
29  bool isSatisfied(const HypoJetVector&,
30  const std::unique_ptr<ITrigJetHypoInfoCollector>&) const override;
31 
32  virtual unsigned int capacity() const override{return s_capacity;}
33 
34 
35  std::string toString() const override;
36  private:
37 
38  double m_min;
39  bool isSatisfied(const pHypoJet&,
40  const std::unique_ptr<ITrigJetHypoInfoCollector>&) const;
41 
42  const static unsigned int s_capacity{1};
43 
44 };
45 
46 #endif
PtCondition::m_min
double m_min
Definition: PtCondition.h:38
PtCondition::capacity
virtual unsigned int capacity() const override
Definition: PtCondition.h:32
pHypoJet
std::shared_ptr< const HypoJet::IJet > pHypoJet
Definition: HypoJetDefs.h:25
ITrigJetHypoInfoCollector
Definition: ITrigJetHypoInfoCollector.h:9
ICondition
Definition: ICondition.h:22
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition: HypoJetDefs.h:27
PtCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition: PtCondition.cxx:43
threshold
Definition: chainparser.cxx:74
PtCondition
Definition: PtCondition.h:25
PtCondition::toString
std::string toString() const override
Definition: PtCondition.cxx:50
PtCondition::s_capacity
static const unsigned int s_capacity
Definition: PtCondition.h:42
ICondition.h
PtCondition::PtCondition
PtCondition(double threshold)
Definition: PtCondition.cxx:13
HypoJet
Definition: AcceptAllCondition.h:19