ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
GlobalSim::EnergyThreshold_jXE Class Reference

#include <EnergyThreshold_jXE.h>

Collaboration diagram for GlobalSim::EnergyThreshold_jXE:

Public Member Functions

 EnergyThreshold_jXE (const std::string &name, unsigned int nbits, unsigned int threshold)
 
virtual ~EnergyThreshold_jXE ()=default
 
StatusCode run (const jXETOBArray &input, Count &count)
 
const std::vector< double > & input_ET () const
 
const std::vector< double > & passing_ET () const
 
const std::vector< double > & counts () const
 
std::string toString () const
 

Private Attributes

std::string m_name {}
 
unsigned int m_nbits {0u}
 
unsigned int m_100MeVthreshold {0u}
 
std::vector< double > m_inputET {}
 
std::vector< double > m_passingET {}
 
std::vector< double > m_counts {}
 

Detailed Description

Definition at line 19 of file EnergyThreshold_jXE.h.

Constructor & Destructor Documentation

◆ EnergyThreshold_jXE()

GlobalSim::EnergyThreshold_jXE::EnergyThreshold_jXE ( const std::string &  name,
unsigned int  nbits,
unsigned int  threshold 
)

Definition at line 22 of file EnergyThreshold_jXE.cxx.

22  {name},
23  m_nbits{nbits},
24  m_100MeVthreshold{threshold} // L1TopoSim uses L1Menu.thrValue100MeV()
25  {
26 
27  if (m_nbits == 0) {
28  throw std::runtime_error("EnergyThreshold_jXE m_nbits == 0");
29  }
30  }
31 
32  StatusCode EnergyThreshold_jXE::run(const jXETOBArray& jXEs,
33  Count& count) {

◆ ~EnergyThreshold_jXE()

virtual GlobalSim::EnergyThreshold_jXE::~EnergyThreshold_jXE ( )
virtualdefault

Member Function Documentation

◆ counts()

const std::vector< double > & GlobalSim::EnergyThreshold_jXE::counts ( ) const

Definition at line 75 of file EnergyThreshold_jXE.cxx.

◆ input_ET()

const std::vector< double > & GlobalSim::EnergyThreshold_jXE::input_ET ( ) const

Definition at line 67 of file EnergyThreshold_jXE.cxx.

68  {
69  return m_passingET;

◆ passing_ET()

const std::vector< double > & GlobalSim::EnergyThreshold_jXE::passing_ET ( ) const

Definition at line 71 of file EnergyThreshold_jXE.cxx.

72  {
73  return m_counts;

◆ run()

StatusCode GlobalSim::EnergyThreshold_jXE::run ( const jXETOBArray input,
Count count 
)

Definition at line 35 of file EnergyThreshold_jXE.cxx.

37  {0};
38 
39  auto threshsq = m_100MeVthreshold * m_100MeVthreshold;
40 
41  for(const auto& jxe : jXEs) {
42  m_inputET.push_back(jxe->Et());
43 
44  if(jxe->Et2() > threshsq) {
45  ++countVal;
46  m_passingET.push_back(jxe->Et());
47  }
48 
49  }
50 
51  count.setSizeCount(countVal);
52 
53  return StatusCode::SUCCESS;
54  }
55 
56  std::string EnergyThreshold_jXE::toString() const {
57  std::stringstream ss;

◆ toString()

std::string GlobalSim::EnergyThreshold_jXE::toString ( ) const

Definition at line 59 of file EnergyThreshold_jXE.cxx.

64  {
65  return m_inputET;

Member Data Documentation

◆ m_100MeVthreshold

unsigned int GlobalSim::EnergyThreshold_jXE::m_100MeVthreshold {0u}
private

Definition at line 43 of file EnergyThreshold_jXE.h.

◆ m_counts

std::vector<double> GlobalSim::EnergyThreshold_jXE::m_counts {}
private

Definition at line 48 of file EnergyThreshold_jXE.h.

◆ m_inputET

std::vector<double> GlobalSim::EnergyThreshold_jXE::m_inputET {}
private

Definition at line 46 of file EnergyThreshold_jXE.h.

◆ m_name

std::string GlobalSim::EnergyThreshold_jXE::m_name {}
private

Definition at line 40 of file EnergyThreshold_jXE.h.

◆ m_nbits

unsigned int GlobalSim::EnergyThreshold_jXE::m_nbits {0u}
private

Definition at line 42 of file EnergyThreshold_jXE.h.

◆ m_passingET

std::vector<double> GlobalSim::EnergyThreshold_jXE::m_passingET {}
private

Definition at line 47 of file EnergyThreshold_jXE.h.


The documentation for this class was generated from the following files:
GlobalSim::EnergyThreshold_jXE::m_inputET
std::vector< double > m_inputET
Definition: EnergyThreshold_jXE.h:46
GlobalSim::EnergyThreshold_jXE::m_passingET
std::vector< double > m_passingET
Definition: EnergyThreshold_jXE.h:47
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
GlobalSim::EnergyThreshold_jXE::run
StatusCode run(const jXETOBArray &input, Count &count)
Definition: EnergyThreshold_jXE.cxx:35
GlobalSim::EnergyThreshold_jXE::m_counts
std::vector< double > m_counts
Definition: EnergyThreshold_jXE.h:48
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GlobalSim::EnergyThreshold_jXE::m_100MeVthreshold
unsigned int m_100MeVthreshold
Definition: EnergyThreshold_jXE.h:43
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
threshold
Definition: chainparser.cxx:74
GlobalSim::EnergyThreshold_jXE::m_nbits
unsigned int m_nbits
Definition: EnergyThreshold_jXE.h:42
GlobalSim::EnergyThreshold_jXE::toString
std::string toString() const
Definition: EnergyThreshold_jXE.cxx:59