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

#include <CleanCondition.h>

Inheritance diagram for CleanCondition:
Collaboration diagram for CleanCondition:

Public Member Functions

 CleanCondition (const std::string &cName)
 
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

std::string m_cName
 

Static Private Attributes

static const unsigned int s_capacity {1}
 

Detailed Description

Definition at line 26 of file CleanCondition.h.

Constructor & Destructor Documentation

◆ CleanCondition()

CleanCondition::CleanCondition ( const std::string &  cName)

Definition at line 13 of file CleanCondition.cxx.

13  : m_cName(cName)
14 {
15 
16 }

Member Function Documentation

◆ capacity()

virtual unsigned int CleanCondition::capacity ( ) const
inlineoverridevirtual

Implements ICondition.

Definition at line 33 of file CleanCondition.h.

33 { return s_capacity; }

◆ isSatisfied() [1/2]

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

Implements ICondition.

Definition at line 66 of file CleanCondition.cxx.

67  {
68  auto result = isSatisfied(ips[0], c);
69  return result;
70 }

◆ isSatisfied() [2/2]

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

Definition at line 18 of file CleanCondition.cxx.

19  {
20 
21  bool momentValue;
22 
23  if (!(ip->getAttribute(m_cName, momentValue)))
24  {
25 
26  if (collector)
27  {
28  auto j_addr = static_cast<const void *>(ip.get());
29 
30  std::stringstream ss0;
31  ss0 << "CleanCondition: "
32  << " unable to retrieve " << m_cName << '\n';
33  std::stringstream ss1;
34  ss1 << " jet : (" << j_addr << ")";
35  collector->collect(ss0.str(), ss1.str());
36  }
37  return false;
38  }
39 
40  bool pass = momentValue;
41 
42  if (collector)
43  {
44  const void *address = static_cast<const void *>(this);
45 
46  std::stringstream ss0;
47  ss0 << "CleanCondition: (" << address
48  << ")"
49  << " moment " << m_cName
50  << " pass: " << std::boolalpha << pass << '\n';
51 
52  auto j_addr = static_cast<const void *>(ip.get());
53  std::stringstream ss1;
54  ss1 << " jet : (" << j_addr << ") "
55  "moment "
56  << m_cName << " value: " << momentValue << '\n';
57 
58  collector->collect(ss0.str(), ss1.str());
59  }
60 
61  return pass;
62 }

◆ toString()

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

Implements ICondition.

Definition at line 73 of file CleanCondition.cxx.

73  {
74  std::stringstream ss;
75  ss << "CleanCondition (" << this << ") "
76  << " Cleaning dec: "
77  << m_cName
78  <<'\n';
79 
80  return ss.str();
81 }

Member Data Documentation

◆ m_cName

std::string CleanCondition::m_cName
private

Definition at line 38 of file CleanCondition.h.

◆ s_capacity

const unsigned int CleanCondition::s_capacity {1}
staticprivate

Definition at line 42 of file CleanCondition.h.


The documentation for this class was generated from the following files:
get_generator_info.result
result
Definition: get_generator_info.py:21
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
ITrigJetHypoInfoCollector::collect
virtual void collect(const std::string &, const std::string &)=0
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
CleanCondition::m_cName
std::string m_cName
Definition: CleanCondition.h:38
RTTAlgmain.address
address
Definition: RTTAlgmain.py:55
CleanCondition::s_capacity
static const unsigned int s_capacity
Definition: CleanCondition.h:42
CleanCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition: CleanCondition.cxx:66
python.compressB64.c
def c
Definition: compressB64.py:93