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

#include <EtaConditionSigned.h>

Inheritance diagram for EtaConditionSigned:
Collaboration diagram for EtaConditionSigned:

Public Member Functions

 EtaConditionSigned (double etaMin, double etaMax)
 
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 26 of file EtaConditionSigned.h.

Constructor & Destructor Documentation

◆ EtaConditionSigned()

EtaConditionSigned::EtaConditionSigned ( double  etaMin,
double  etaMax 
)

Definition at line 13 of file EtaConditionSigned.cxx.

14  :
16 }

Member Function Documentation

◆ capacity()

virtual unsigned int EtaConditionSigned::capacity ( ) const
inlineoverridevirtual

Implements ICondition.

Definition at line 34 of file EtaConditionSigned.h.

34 {return s_capacity;}

◆ isSatisfied() [1/2]

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

Implements ICondition.

Definition at line 45 of file EtaConditionSigned.cxx.

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

◆ isSatisfied() [2/2]

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

Definition at line 19 of file EtaConditionSigned.cxx.

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

◆ toString()

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

Implements ICondition.

Definition at line 52 of file EtaConditionSigned.cxx.

52  {
53  std::stringstream ss;
54  ss << "EtaConditionSigned (" << this << ") etaMin "
55  << m_min
56  << " etaMax "
57  << m_max
58  <<'\n';
59 
60  return ss.str();
61 }

Member Data Documentation

◆ m_max

double EtaConditionSigned::m_max
private

Definition at line 40 of file EtaConditionSigned.h.

◆ m_min

double EtaConditionSigned::m_min
private

Definition at line 39 of file EtaConditionSigned.h.

◆ s_capacity

const unsigned int EtaConditionSigned::s_capacity {1}
staticprivate

Definition at line 44 of file EtaConditionSigned.h.


The documentation for this class was generated from the following files:
EtaConditionSigned::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition: EtaConditionSigned.cxx:45
get_generator_info.result
result
Definition: get_generator_info.py:21
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
xAOD::etaMax
etaMax
Definition: HIEventShape_v2.cxx:46
EtaConditionSigned::m_min
double m_min
Definition: EtaConditionSigned.h:39
ITrigJetHypoInfoCollector::collect
virtual void collect(const std::string &, const std::string &)=0
EtaConditionSigned::m_max
double m_max
Definition: EtaConditionSigned.h:40
EtaConditionSigned::s_capacity
static const unsigned int s_capacity
Definition: EtaConditionSigned.h:44
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
RTTAlgmain.address
address
Definition: RTTAlgmain.py:55
LArCellBinning.etaMin
etaMin
Definition: LArCellBinning.py:84
python.compressB64.c
def c
Definition: compressB64.py:93