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