ATLAS Offline Software
CleanCondition.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGHLTJETHYPO_CLEANCONDITION_H
6 #define TRIGHLTJETHYPO_CLEANCONDITION_H
7 
8 /********************************************************************
9  *
10  * NAME: CleanCondition.h
11  * PACKAGE: Trigger/TrigHypothesis/TrigHLTJetHypo
12  *
13  * AUTHOR: M. Valente
14  *********************************************************************/
15 
16 #include <string>
17 #include "./ICondition.h"
18 #include "AsgTools/AsgTool.h"
19 #include "xAODJet/JetContainer.h"
20 namespace HypoJet{
21  class IJet;
22 }
23 
25 
26 class CleanCondition: public ICondition{
27  public:
28  CleanCondition(const std::string& cName);
29 
30  bool isSatisfied(const HypoJetVector &,
31  const std::unique_ptr<ITrigJetHypoInfoCollector> &) const override;
32 
33  virtual unsigned int capacity() const override { return s_capacity; }
34 
35  std::string toString() const override;
36  private:
37 
38  std::string m_cName;
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
CleanCondition::capacity
virtual unsigned int capacity() const override
Definition: CleanCondition.h:33
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
CleanCondition
Definition: CleanCondition.h:26
CleanCondition::toString
std::string toString() const override
Definition: CleanCondition.cxx:73
CleanCondition::m_cName
std::string m_cName
Definition: CleanCondition.h:38
JetContainer.h
CleanCondition::s_capacity
static const unsigned int s_capacity
Definition: CleanCondition.h:42
CleanCondition::CleanCondition
CleanCondition(const std::string &cName)
Definition: CleanCondition.cxx:13
CleanCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition: CleanCondition.cxx:66
ICondition.h
AsgTool.h
HypoJet
Definition: AcceptAllCondition.h:19