ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
EtCondition Class Reference

#include <EtCondition.h>

Inheritance diagram for EtCondition:
Collaboration diagram for EtCondition:

Public Member Functions

 EtCondition (double threshold)
 
bool isSatisfied (const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
 
virtual unsigned int capacity () const override
 
std::string toString () const override
 

Private Member Functions

bool isSatisfied (const pHypoJet &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const
 

Private Attributes

double m_min
 

Static Private Attributes

static const unsigned int s_capacity {1}
 

Detailed Description

Definition at line 25 of file EtCondition.h.

Constructor & Destructor Documentation

◆ EtCondition()

EtCondition::EtCondition ( double  threshold)

Definition at line 13 of file EtCondition.cxx.

13  : m_min(threshold) {
14 }

Member Function Documentation

◆ capacity()

virtual unsigned int EtCondition::capacity ( ) const
inlineoverridevirtual

Implements ICondition.

Definition at line 32 of file EtCondition.h.

32 {return s_capacity;}

◆ isSatisfied() [1/2]

bool EtCondition::isSatisfied ( const HypoJetVector ips,
const std::unique_ptr< ITrigJetHypoInfoCollector > &  c 
) const
overridevirtual

Implements ICondition.

Definition at line 45 of file EtCondition.cxx.

46  {
47  auto result = isSatisfied(ips[0], c);
48  return result;
49 }

◆ isSatisfied() [2/2]

bool EtCondition::isSatisfied ( const pHypoJet ip,
const std::unique_ptr< ITrigJetHypoInfoCollector > &  collector 
) const
private

Definition at line 17 of file EtCondition.cxx.

18  {
19 
20  auto et = ip->et();
21  bool pass = m_min <= et;
22 
23 
24  if(collector){
25  const void* address = static_cast<const void*>(this);
26 
27  std::stringstream ss0;
28  ss0 << "EtCondition: (" << address << ") "
29  << " et thresh " << m_min
30  << " pass: " << std::boolalpha << pass << '\n';
31 
32  auto j_addr = static_cast<const void*>(ip.get());
33  std::stringstream ss1;
34  ss1 << " jet : ("<< j_addr << ")"
35  " et " << et << '\n';
36 
37  collector->collect(ss0.str(), ss1.str());
38 
39  }
40  return pass;
41 }

◆ toString()

std::string EtCondition::toString ( ) const
overridevirtual

Implements ICondition.

Definition at line 52 of file EtCondition.cxx.

52  {
53  std::stringstream ss;
54  ss << "EtCondition (" << this << ") "
55  << " Et threshold: "
56  << m_min
57  <<'\n';
58 
59  return ss.str();
60 }

Member Data Documentation

◆ m_min

double EtCondition::m_min
private

Definition at line 38 of file EtCondition.h.

◆ s_capacity

const unsigned int EtCondition::s_capacity {1}
staticprivate

Definition at line 42 of file EtCondition.h.


The documentation for this class was generated from the following files:
et
Extra patterns decribing particle interation process.
get_generator_info.result
result
Definition: get_generator_info.py:21
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
xAOD::et
et
Definition: TrigEMCluster_v1.cxx:25
ITrigJetHypoInfoCollector::collect
virtual void collect(const std::string &, const std::string &)=0
EtCondition::m_min
double m_min
Definition: EtCondition.h:38
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
EtCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition: EtCondition.cxx:45
threshold
Definition: chainparser.cxx:74
RTTAlgmain.address
address
Definition: RTTAlgmain.py:55
python.compressB64.c
def c
Definition: compressB64.py:93
EtCondition::s_capacity
static const unsigned int s_capacity
Definition: EtCondition.h:42