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

#include <MultiplicityCondition.h>

Inheritance diagram for MultiplicityCondition:
Collaboration diagram for MultiplicityCondition:

Public Member Functions

 MultiplicityCondition (std::size_t multMin, std::size_t multMax)
 
 ~MultiplicityCondition () override
 
bool isSatisfied (const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
 
std::string toString () const override
 
virtual unsigned int capacity () const override
 

Private Attributes

std::size_t m_multMin
 
std::size_t m_multMax
 

Static Private Attributes

static const unsigned int s_capacity {0}
 

Detailed Description

Definition at line 28 of file MultiplicityCondition.h.

Constructor & Destructor Documentation

◆ MultiplicityCondition()

MultiplicityCondition::MultiplicityCondition ( std::size_t  multMin,
std::size_t  multMax 
)

Definition at line 14 of file MultiplicityCondition.cxx.

15  :
16  m_multMin{multMin}, m_multMax{multMax} {
17 }

◆ ~MultiplicityCondition()

MultiplicityCondition::~MultiplicityCondition ( )
inlineoverride

Definition at line 35 of file MultiplicityCondition.h.

35 {}

Member Function Documentation

◆ capacity()

virtual unsigned int MultiplicityCondition::capacity ( ) const
inlineoverridevirtual

Implements ICondition.

Definition at line 41 of file MultiplicityCondition.h.

41 {return s_capacity;}

◆ isSatisfied()

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

Implements ICondition.

Definition at line 21 of file MultiplicityCondition.cxx.

22  {
23 
24  auto mult = ips.size();
25  bool pass = mult >= m_multMin and mult < m_multMax;
26 
27  if(collector){
28  std::stringstream ss0;
29  const void* address = static_cast<const void*>(this);
30  ss0 << "MultCondition: (" << address << ") mult "
31  << mult << " "
32  << std::boolalpha << pass << " jet group: \n";
33 
34  collector -> collect(ss0.str(), "");
35  }
36 
37  return pass;
38 
39 }

◆ toString()

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

Implements ICondition.

Definition at line 42 of file MultiplicityCondition.cxx.

42  {
43  std::stringstream ss;
44  ss << "MultiplicityCondition: multMin: "
45  << m_multMin
46  << " multMax "
47  << m_multMax << '\n';
48 
49  return ss.str();
50 }

Member Data Documentation

◆ m_multMax

std::size_t MultiplicityCondition::m_multMax
private

Definition at line 47 of file MultiplicityCondition.h.

◆ m_multMin

std::size_t MultiplicityCondition::m_multMin
private

Definition at line 46 of file MultiplicityCondition.h.

◆ s_capacity

const unsigned int MultiplicityCondition::s_capacity {0}
staticprivate

Definition at line 50 of file MultiplicityCondition.h.


The documentation for this class was generated from the following files:
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
MultiplicityCondition::s_capacity
static const unsigned int s_capacity
Definition: MultiplicityCondition.h:50
MultiplicityCondition::m_multMin
std::size_t m_multMin
Definition: MultiplicityCondition.h:46
RTTAlgmain.address
address
Definition: RTTAlgmain.py:55
MultiplicityCondition::m_multMax
std::size_t m_multMax
Definition: MultiplicityCondition.h:47
Trig::FeatureAccessImpl::collect
void collect(const HLT::TriggerElement *te, std::vector< Trig::Feature< T > > &data, const std::string &label, unsigned int condition, const std::string &teName, const HLT::TrigNavStructure *navstructure)
actual feature acceess implementation It has (thanks to the ClassTraits) functionality to flatten con...
Definition: FeatureCollectAthena.h:299