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

#include <jJetSelect.h>

Collaboration diagram for GlobalSim::jJetSelect:

Public Member Functions

 jJetSelect (const std::string &name, unsigned int InputWidth, unsigned int MinET, unsigned int MinEta, unsigned int MaxEta)
 
virtual ~jJetSelect ()
 
StatusCode run (const jJetTOBArray &, GenericTOBArray &) const
 
std::string toString () const
 

Private Types

using parType_t = unsigned int
 

Private Attributes

std::string m_name {}
 
unsigned int m_InputWidth
 
unsigned int m_MinET {0u}
 
unsigned int m_MinEta {0u}
 
unsigned int m_MaxEta {0u}
 

Detailed Description

Definition at line 18 of file Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.h.

Member Typedef Documentation

◆ parType_t

using GlobalSim::jJetSelect::parType_t = unsigned int
private

Constructor & Destructor Documentation

◆ jJetSelect()

GlobalSim::jJetSelect::jJetSelect ( const std::string &  name,
unsigned int  InputWidth,
unsigned int  MinET,
unsigned int  MinEta,
unsigned int  MaxEta 
)

Definition at line 16 of file Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.cxx.

20  :
21  m_name{name},
22  m_InputWidth{InputWidth},
23  m_MinET{MinET},
24  m_MinEta{MinEta},
25  m_MaxEta{MaxEta}{
26  }

◆ ~jJetSelect()

virtual GlobalSim::jJetSelect::~jJetSelect ( )
inlinevirtual

Definition at line 27 of file Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.h.

27 {}

Member Function Documentation

◆ run()

StatusCode GlobalSim::jJetSelect::run ( const jJetTOBArray jets,
GenericTOBArray output 
) const

Definition at line 29 of file Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.cxx.

30  {
31 
32 
33 
34  // fill output array with GenericTOBs builds from jets
35 
36  std::size_t njets{0};
37  for (const auto& jet : jets) {
38  unsigned int Et = jet->Et();
39  unsigned int eta = std::abs(jet-> eta());
40  if(Et <= m_MinET or eta < m_MinEta or eta > m_MaxEta){
41  continue;
42  }
43 
44  output.push_back(TCS::GenericTOB(*jet));
45  if (++njets > m_InputWidth) {break;}
46  }
47 
48  return StatusCode::SUCCESS;
49  }

◆ toString()

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

Definition at line 51 of file Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.cxx.

51  {
52  std::stringstream ss;
53  ss << "jJetSelect. name: " << m_name << '\n'
54  << " maxJets: " << m_InputWidth
55  << " minET " << m_MinET
56  << " minEta " << m_MinEta
57  << " maxEta " << m_MaxEta;
58 
59  return ss.str();
60  }

Member Data Documentation

◆ m_InputWidth

unsigned int GlobalSim::jJetSelect::m_InputWidth
private

◆ m_MaxEta

unsigned int GlobalSim::jJetSelect::m_MaxEta {0u}
private

◆ m_MinET

unsigned int GlobalSim::jJetSelect::m_MinET {0u}
private

◆ m_MinEta

unsigned int GlobalSim::jJetSelect::m_MinEta {0u}
private

◆ m_name

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

The documentation for this class was generated from the following files:
GlobalSim::jJetSelect::m_MaxEta
unsigned int m_MaxEta
Definition: Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.h:41
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
GlobalSim::jJetSelect::m_name
std::string m_name
Definition: Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.h:34
GlobalSim::jJetSelect::m_InputWidth
unsigned int m_InputWidth
Definition: Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.h:38
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
merge.output
output
Definition: merge.py:17
TCS::GenericTOB
Definition: GenericTOB.h:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
GlobalSim::jJetSelect::m_MinEta
unsigned int m_MinEta
Definition: Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.h:40
GlobalSim::jJetSelect::m_MinET
unsigned int m_MinET
Definition: Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.h:39
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24