ATLAS Offline Software
GNTauCondition.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_GNTAUCONDITION_H
6 #define TRIGHLTJETHYPO_GNTAUCONDITION_H
7 
8 /********************************************************************
9  *
10  * NAME: GNTauCondition.h
11  * PACKAGE: Trigger/TrigHypothesis/TrigHLTJetHypo
12  *
13  * AUTHOR: C. Pollard, 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 GNTauCondition: public ICondition{
27  public:
28  GNTauCondition(double workingPoint,
29  const std::string &decName_ptau,
30  const std::string &decName_pu,
31  const std::string &decName_isValid = "");
32 
33  float getGNTauDecValue(const pHypoJet &ip,
34  const std::unique_ptr<ITrigJetHypoInfoCollector> &collector,
35  const std::string &decName) const;
36 
37  float evaluateGNTau(const float &gntau_ptau,
38  const float &gntau_pu) const;
39 
40  bool isSatisfied(const HypoJetVector &,
41  const std::unique_ptr<ITrigJetHypoInfoCollector> &) const override;
42 
43  virtual unsigned int capacity() const override { return s_capacity; }
44 
45  std::string toString() const override;
46 
47  private:
49  std::string m_decName_ptau;
50  std::string m_decName_pu;
51  std::string m_decName_isValid;
52 
53  bool isSatisfied(const pHypoJet &,
54  const std::unique_ptr<ITrigJetHypoInfoCollector> &) const;
55 
56  const static unsigned int s_capacity{1};
57 
58 };
59 
60 #endif
GNTauCondition::m_decName_pu
std::string m_decName_pu
Definition: GNTauCondition.h:50
GNTauCondition::m_decName_isValid
std::string m_decName_isValid
Definition: GNTauCondition.h:51
GNTauCondition::s_capacity
static const unsigned int s_capacity
Definition: GNTauCondition.h:56
pHypoJet
std::shared_ptr< const HypoJet::IJet > pHypoJet
Definition: HypoJetDefs.h:25
ITrigJetHypoInfoCollector
Definition: ITrigJetHypoInfoCollector.h:9
GNTauCondition
Definition: GNTauCondition.h:26
ICondition
Definition: ICondition.h:22
GNTauCondition::getGNTauDecValue
float getGNTauDecValue(const pHypoJet &ip, const std::unique_ptr< ITrigJetHypoInfoCollector > &collector, const std::string &decName) const
Definition: GNTauCondition.cxx:27
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition: HypoJetDefs.h:27
GNTauCondition::toString
std::string toString() const override
Definition: GNTauCondition.cxx:107
GNTauCondition::m_decName_ptau
std::string m_decName_ptau
Definition: GNTauCondition.h:49
GNTauCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition: GNTauCondition.cxx:100
GNTauCondition::m_workingPoint
double m_workingPoint
Definition: GNTauCondition.h:48
GNTauCondition::GNTauCondition
GNTauCondition(double workingPoint, const std::string &decName_ptau, const std::string &decName_pu, const std::string &decName_isValid="")
Definition: GNTauCondition.cxx:15
JetContainer.h
ICondition.h
AsgTool.h
GNTauCondition::capacity
virtual unsigned int capacity() const override
Definition: GNTauCondition.h:43
HypoJet
Definition: AcceptAllCondition.h:19
GNTauCondition::evaluateGNTau
float evaluateGNTau(const float &gntau_ptau, const float &gntau_pu) const
Definition: GNTauCondition.cxx:53