ATLAS Offline Software
DipsCondition.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_DIPSCONDITION_H
6 #define TRIGHLTJETHYPO_DIPSCONDITION_H
7 
8 /********************************************************************
9  *
10  * NAME: DipsCondition.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 DipsCondition: public ICondition{
27  public:
28  DipsCondition(double workingPoint,
29  const float &cfrac,
30  const std::string &decName_pb,
31  const std::string &decName_pc,
32  const std::string &decName_pu,
33  const std::string &decName_isValid = "");
34 
35  float getDipsDecValue(const pHypoJet &ip,
36  const std::unique_ptr<ITrigJetHypoInfoCollector> &collector,
37  const std::string &decName) const;
38 
39  float evaluateDips(const float &dips_pb,
40  const float &dips_pc,
41  const float &dips_pu) const;
42 
43  bool isSatisfied(const HypoJetVector &,
44  const std::unique_ptr<ITrigJetHypoInfoCollector> &) const override;
45 
46  virtual unsigned int capacity() const override { return s_capacity; }
47 
48  std::string toString() const override;
49 
50  private:
52  float m_cfrac;
53  std::string m_decName_pb;
54  std::string m_decName_pc;
55  std::string m_decName_pu;
56  std::string m_decName_isValid;
57 
58  bool isSatisfied(const pHypoJet &,
59  const std::unique_ptr<ITrigJetHypoInfoCollector> &) const;
60 
61  const static unsigned int s_capacity{1};
62 
63 };
64 
65 #endif
DipsCondition
Definition: DipsCondition.h:26
DipsCondition::getDipsDecValue
float getDipsDecValue(const pHypoJet &ip, const std::unique_ptr< ITrigJetHypoInfoCollector > &collector, const std::string &decName) const
Definition: DipsCondition.cxx:31
DipsCondition::m_decName_pu
std::string m_decName_pu
Definition: DipsCondition.h:55
DipsCondition::m_cfrac
float m_cfrac
Definition: DipsCondition.h:52
DipsCondition::m_decName_isValid
std::string m_decName_isValid
Definition: DipsCondition.h:56
DipsCondition::DipsCondition
DipsCondition(double workingPoint, const float &cfrac, const std::string &decName_pb, const std::string &decName_pc, const std::string &decName_pu, const std::string &decName_isValid="")
Definition: DipsCondition.cxx:15
pHypoJet
std::shared_ptr< const HypoJet::IJet > pHypoJet
Definition: HypoJetDefs.h:25
ITrigJetHypoInfoCollector
Definition: ITrigJetHypoInfoCollector.h:9
ICondition
Definition: ICondition.h:22
DipsCondition::m_decName_pb
std::string m_decName_pb
Definition: DipsCondition.h:53
DipsCondition::toString
std::string toString() const override
Definition: DipsCondition.cxx:114
DipsCondition::s_capacity
static const unsigned int s_capacity
Definition: DipsCondition.h:61
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition: HypoJetDefs.h:27
JetContainer.h
DipsCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition: DipsCondition.cxx:107
DipsCondition::evaluateDips
float evaluateDips(const float &dips_pb, const float &dips_pc, const float &dips_pu) const
Definition: DipsCondition.cxx:57
ICondition.h
AsgTool.h
DipsCondition::m_workingPoint
double m_workingPoint
Definition: DipsCondition.h:51
DipsCondition::capacity
virtual unsigned int capacity() const override
Definition: DipsCondition.h:46
HypoJet
Definition: AcceptAllCondition.h:19
DipsCondition::m_decName_pc
std::string m_decName_pc
Definition: DipsCondition.h:54