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

#include <SMCCondition.h>

Inheritance diagram for SMCCondition:
Collaboration diagram for SMCCondition:

Public Member Functions

 SMCCondition (double massMin, double massMax)
 
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
 
double m_max
 

Static Private Attributes

static const unsigned int s_capacity {1}
 

Detailed Description

Definition at line 25 of file SMCCondition.h.

Constructor & Destructor Documentation

◆ SMCCondition()

SMCCondition::SMCCondition ( double  massMin,
double  massMax 
)

Definition at line 13 of file SMCCondition.cxx.

14  :
15 m_min(massMin), m_max(massMax){
16 }

Member Function Documentation

◆ capacity()

virtual unsigned int SMCCondition::capacity ( ) const
inlineoverridevirtual

Implements ICondition.

Definition at line 33 of file SMCCondition.h.

33 {return s_capacity;}

◆ isSatisfied() [1/2]

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

Implements ICondition.

Definition at line 46 of file SMCCondition.cxx.

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

◆ isSatisfied() [2/2]

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

Definition at line 20 of file SMCCondition.cxx.

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

◆ toString()

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

Implements ICondition.

Definition at line 53 of file SMCCondition.cxx.

53  {
54  std::stringstream ss;
55  ss << "SMCCondition (" << this << ") mass min "
56  << m_min
57  << " mass max "
58  << m_max
59  <<'\n';
60 
61  return ss.str();
62 }

Member Data Documentation

◆ m_max

double SMCCondition::m_max
private

Definition at line 39 of file SMCCondition.h.

◆ m_min

double SMCCondition::m_min
private

Definition at line 38 of file SMCCondition.h.

◆ s_capacity

const unsigned int SMCCondition::s_capacity {1}
staticprivate

Definition at line 43 of file SMCCondition.h.


The documentation for this class was generated from the following files:
SMCCondition::s_capacity
static const unsigned int s_capacity
Definition: SMCCondition.h:43
get_generator_info.result
result
Definition: get_generator_info.py:21
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
SMCCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition: SMCCondition.cxx:46
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
SMCCondition::m_max
double m_max
Definition: SMCCondition.h:39
SMCCondition::m_min
double m_min
Definition: SMCCondition.h:38
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
RTTAlgmain.address
address
Definition: RTTAlgmain.py:55
python.compressB64.c
def c
Definition: compressB64.py:93