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

#include <HTConditionFastReduction.h>

Inheritance diagram for HTConditionFastReduction:
Collaboration diagram for HTConditionFastReduction:

Public Member Functions

 HTConditionFastReduction (double htMin, double htMax)
 
 ~HTConditionFastReduction () 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

double m_htMin
 

Static Private Attributes

static const unsigned int s_capacity {0}
 

Detailed Description

Definition at line 28 of file HTConditionFastReduction.h.

Constructor & Destructor Documentation

◆ HTConditionFastReduction()

HTConditionFastReduction::HTConditionFastReduction ( double  htMin,
double  htMax 
)

Definition at line 14 of file HTConditionFastReduction.cxx.

15  :
16  m_htMin(ht_min) {
17 }

◆ ~HTConditionFastReduction()

HTConditionFastReduction::~HTConditionFastReduction ( )
inlineoverride

Definition at line 35 of file HTConditionFastReduction.h.

35 {}

Member Function Documentation

◆ capacity()

virtual unsigned int HTConditionFastReduction::capacity ( ) const
inlineoverridevirtual

Implements ICondition.

Definition at line 41 of file HTConditionFastReduction.h.

41 {return s_capacity;}

◆ isSatisfied()

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

Implements ICondition.

Definition at line 21 of file HTConditionFastReduction.cxx.

22  {
23 
24  auto htsum = std::accumulate(ips.begin(),
25  ips.end(),
26  0.0,
27  [](double sum, const pHypoJet& jp){
28  return sum + jp->et();});
29  bool pass = htsum > m_htMin;
30 
31  if(collector){
32  std::stringstream ss0;
33  const void* address = static_cast<const void*>(this);
34  ss0 << "HTCondition: (" << address << ") Sum(et) "
35  << htsum << " "
36  << std::boolalpha << pass << " jet group: \n";
37 
38  std::stringstream ss1;
39 
40  for(const auto& ip : ips){
41  address = static_cast<const void*>(ip.get());
42  ss1 << " " << address << " " << ip->eta() << " e " << ip->e() << '\n';
43  }
44  ss1 << '\n';
45  collector -> collect(ss0.str(), ss1.str());
46  }
47 
48  return pass;
49 
50 }

◆ toString()

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

Implements ICondition.

Definition at line 53 of file HTConditionFastReduction.cxx.

53  {
54  std::stringstream ss;
55  ss << "HTConditionFastReduction: htMin: "
56  << m_htMin;
57 
58 
59 
60  ss <<'\n';
61 
62  return ss.str();
63 }

Member Data Documentation

◆ m_htMin

double HTConditionFastReduction::m_htMin
private

Definition at line 45 of file HTConditionFastReduction.h.

◆ s_capacity

const unsigned int HTConditionFastReduction::s_capacity {0}
staticprivate

Definition at line 48 of file HTConditionFastReduction.h.


The documentation for this class was generated from the following files:
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
accumulate
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
Definition: FPGATrackSimMatrixAccumulator.cxx:22
pHypoJet
std::shared_ptr< const HypoJet::IJet > pHypoJet
Definition: HypoJetDefs.h:25
convertTimingResiduals.sum
sum
Definition: convertTimingResiduals.py:55
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
HTConditionFastReduction::s_capacity
static const unsigned int s_capacity
Definition: HTConditionFastReduction.h:48
RTTAlgmain.address
address
Definition: RTTAlgmain.py:55
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
HTConditionFastReduction::m_htMin
double m_htMin
Definition: HTConditionFastReduction.h:45