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

#include <JEMHits.h>

Collaboration diagram for LVL1::JEMHits:

Public Member Functions

 JEMHits ()
 
 JEMHits (int crate, int module)
 
 JEMHits (int crate, int module, const std::vector< unsigned int > &JetHits, int peak)
 
virtual ~JEMHits ()
 
void setPeak (int peak)
 Specify peak slice
More...
 
void addJetHits (const std::vector< unsigned int > &hits)
 Set Jet hits. More...
 
int crate () const
 returns crate number More...
 
int module () const
 returns module number More...
 
unsigned int JetHits () const
 returns jet hits for peak sample More...
 
const std::vector< unsigned int > & JetHitsVec () const
 returns jet hits More...
 
int peak () const
 returns peak slice number More...
 
bool forward () const
 Central or FCAL JEM? More...
 

Private Attributes

int m_crate
 Internal data. More...
 
int m_module
 
int m_peak
 
std::vector< unsigned int > m_JetHits
 

Detailed Description

Definition at line 27 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMHits.h.

Constructor & Destructor Documentation

◆ JEMHits() [1/3]

LVL1::JEMHits::JEMHits ( )

Definition at line 27 of file JEMHits.cxx.

27 {
28 }
29 
31 }
32 

◆ JEMHits() [2/3]

LVL1::JEMHits::JEMHits ( int  crate,
int  module 
)

◆ JEMHits() [3/3]

LVL1::JEMHits::JEMHits ( int  crate,
int  module,
const std::vector< unsigned int > &  JetHits,
int  peak 
)

◆ ~JEMHits()

LVL1::JEMHits::~JEMHits ( )
virtual

Definition at line 35 of file JEMHits.cxx.

39 {

Member Function Documentation

◆ addJetHits()

void LVL1::JEMHits::addJetHits ( const std::vector< unsigned int > &  hits)

Set Jet hits.

Definition at line 85 of file JEMHits.cxx.

85  {
86  m_peak = peak;
87 }

◆ crate()

int LVL1::JEMHits::crate ( ) const

returns crate number

Definition at line 60 of file JEMHits.cxx.

60  {
61  return m_module;
62 }

◆ forward()

bool LVL1::JEMHits::forward ( ) const

Central or FCAL JEM?

Definition at line 80 of file JEMHits.cxx.

80  {
81  m_JetHits = hits;
82 }

◆ JetHits()

unsigned int LVL1::JEMHits::JetHits ( ) const

returns jet hits for peak sample

Definition at line 70 of file JEMHits.cxx.

70  {
71  return m_JetHits;
72 }

◆ JetHitsVec()

const std::vector< unsigned int > & LVL1::JEMHits::JetHitsVec ( ) const

returns jet hits

Definition at line 75 of file JEMHits.cxx.

75  {
76  return ( ((m_module%8) == 0) || ((m_module%8) == 7) );
77 }

◆ module()

int LVL1::JEMHits::module ( ) const

returns module number

Definition at line 65 of file JEMHits.cxx.

65  {
66  return m_JetHits[m_peak];
67 }

◆ peak()

int LVL1::JEMHits::peak ( ) const

returns peak slice number

Definition at line 95 of file JEMHits.cxx.

◆ setPeak()

void LVL1::JEMHits::setPeak ( int  peak)

Specify peak slice

Definition at line 90 of file JEMHits.cxx.

90  {
91  return m_peak;
92 }

Member Data Documentation

◆ m_crate

int LVL1::JEMHits::m_crate
private

Internal data.

Definition at line 48 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMHits.h.

◆ m_JetHits

std::vector<unsigned int> LVL1::JEMHits::m_JetHits
private

◆ m_module

int LVL1::JEMHits::m_module
private

◆ m_peak

int LVL1::JEMHits::m_peak
private

The documentation for this class was generated from the following files:
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
LVL1::JEMHits::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMHits.h:50
LVL1::JEMHits::m_JetHits
std::vector< unsigned int > m_JetHits
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMHits.h:51
LVL1::JEMHits::peak
int peak() const
returns peak slice number
Definition: JEMHits.cxx:95
LVL1::JEMHits::m_module
int m_module
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMHits.h:49
LVL1::JEMHits::~JEMHits
virtual ~JEMHits()
Definition: JEMHits.cxx:35