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

CMMJetHits class stores Jet hit multiplicities received by and read out from the Jet CMMs. More...

#include <CMMJetHits.h>

Collaboration diagram for LVL1::CMMJetHits:

Public Types

enum  DataIDs {
  REMOTE_MAIN = 16, LOCAL_MAIN, TOTAL_MAIN, REMOTE_FORWARD,
  LOCAL_FORWARD, TOTAL_FORWARD, ET_MAP, MAXID
}
 

Public Member Functions

 CMMJetHits ()
 Constructors. More...
 
 CMMJetHits (int crate, int dataID)
 constructs a CMMJetHits object, specifying crate, data ID. More...
 
 CMMJetHits (int crate, int dataID, const std::vector< unsigned int > &hits, const std::vector< int > &errors, int peak)
 constructs a CMMJetHits object and fill all data members More...
 
virtual ~CMMJetHits ()
 Destructor. More...
 
void setPeak (int peak)
 In multi-slice readout, need to specify which slice corresponds to the triggered bunch-crossing. More...
 
void addHits (const std::vector< unsigned int > &hits, const std::vector< int > &errors)
 Add hits to existing object. More...
 
int crate () const
 Data accessors. More...
 
int dataID () const
 returns data ID of data More...
 
unsigned int Hits () const
 returns hits for peak sample More...
 
int Error () const
 returns error for peak sample More...
 
const std::vector< unsigned int > & HitsVec () const
 Multi-slice accessors. More...
 
const std::vector< int > & ErrorVec () const
 returns errors More...
 
int peak () const
 returns peak slice number More...
 

Private Attributes

int m_crate
 Internal data. More...
 
int m_dataID
 
int m_peak
 
std::vector< unsigned int > m_hits
 
std::vector< int > m_errors
 

Detailed Description

CMMJetHits class stores Jet hit multiplicities received by and read out from the Jet CMMs.

Its main function is in the unpacking and analysis of the Jet CMM readout.

Definition at line 32 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h.

Member Enumeration Documentation

◆ DataIDs

Enumerator
REMOTE_MAIN 
LOCAL_MAIN 
TOTAL_MAIN 
REMOTE_FORWARD 
LOCAL_FORWARD 
TOTAL_FORWARD 
ET_MAP 
MAXID 

Definition at line 35 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h.

Constructor & Destructor Documentation

◆ CMMJetHits() [1/3]

LVL1::CMMJetHits::CMMJetHits ( )

Constructors.

Definition at line 27 of file CMMJetHits.cxx.

28 {
29 }
30 
32 }
33 

◆ CMMJetHits() [2/3]

LVL1::CMMJetHits::CMMJetHits ( int  crate,
int  dataID 
)

constructs a CMMJetHits object, specifying crate, data ID.

Definition at line 40 of file CMMJetHits.cxx.

41 {
42 }
43 
46  const std::vector<unsigned int>& hits,
47  const std::vector<int>& errors, int peak):

◆ CMMJetHits() [3/3]

LVL1::CMMJetHits::CMMJetHits ( int  crate,
int  dataID,
const std::vector< unsigned int > &  hits,
const std::vector< int > &  errors,
int  peak 
)

constructs a CMMJetHits object and fill all data members

Definition at line 50 of file CMMJetHits.cxx.

53 {
54 }
55 
56 
58 int CMMJetHits::crate() const{
59  return m_crate;

◆ ~CMMJetHits()

LVL1::CMMJetHits::~CMMJetHits ( )
virtual

Destructor.

Definition at line 36 of file CMMJetHits.cxx.

41 {

Member Function Documentation

◆ addHits()

void LVL1::CMMJetHits::addHits ( const std::vector< unsigned int > &  hits,
const std::vector< int > &  errors 
)

Add hits to existing object.

Set hits.

Definition at line 93 of file CMMJetHits.cxx.

95  {
96  m_peak = peak;
97 }

◆ crate()

int LVL1::CMMJetHits::crate ( ) const

Data accessors.

returns crate number

Definition at line 63 of file CMMJetHits.cxx.

63  {
64  return m_dataID;
65 }

◆ dataID()

int LVL1::CMMJetHits::dataID ( ) const

returns data ID of data

Definition at line 68 of file CMMJetHits.cxx.

68  {
69  return m_hits[m_peak];
70 }

◆ Error()

int LVL1::CMMJetHits::Error ( ) const

returns error for peak sample

Definition at line 78 of file CMMJetHits.cxx.

78  {
79  return m_hits;
80 }

◆ ErrorVec()

const std::vector< int > & LVL1::CMMJetHits::ErrorVec ( ) const

returns errors

Definition at line 88 of file CMMJetHits.cxx.

89  {
90  m_hits = hits;

◆ Hits()

unsigned int LVL1::CMMJetHits::Hits ( ) const

returns hits for peak sample

Definition at line 73 of file CMMJetHits.cxx.

73  {
74  return m_errors[m_peak];
75 }

◆ HitsVec()

const std::vector< unsigned int > & LVL1::CMMJetHits::HitsVec ( ) const

Multi-slice accessors.

returns hits

Definition at line 83 of file CMMJetHits.cxx.

83  {
84  return m_errors;
85 }

◆ peak()

int LVL1::CMMJetHits::peak ( ) const

returns peak slice number

Definition at line 105 of file CMMJetHits.cxx.

◆ setPeak()

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

In multi-slice readout, need to specify which slice corresponds to the triggered bunch-crossing.

Specify peak slice

Definition at line 100 of file CMMJetHits.cxx.

100  {
101  return m_peak;
102 }

Member Data Documentation

◆ m_crate

int LVL1::CMMJetHits::m_crate
private

Internal data.

Definition at line 68 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h.

◆ m_dataID

int LVL1::CMMJetHits::m_dataID
private

◆ m_errors

std::vector<int> LVL1::CMMJetHits::m_errors
private

◆ m_hits

std::vector<unsigned int> LVL1::CMMJetHits::m_hits
private

◆ m_peak

int LVL1::CMMJetHits::m_peak
private

The documentation for this class was generated from the following files:
LVL1::CMMJetHits::LOCAL_FORWARD
@ LOCAL_FORWARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:36
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
LVL1::CMMJetHits::peak
int peak() const
returns peak slice number
Definition: CMMJetHits.cxx:105
LVL1::CMMJetHits::crate
int crate() const
Data accessors.
Definition: CMMJetHits.cxx:63
LVL1::CMMJetHits::m_hits
std::vector< unsigned int > m_hits
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:71
LVL1::CMMJetHits::TOTAL_MAIN
@ TOTAL_MAIN
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:35
LVL1::CMMJetHits::REMOTE_FORWARD
@ REMOTE_FORWARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:36
LVL1::CMMJetHits::CMMJetHits
CMMJetHits()
Constructors.
Definition: CMMJetHits.cxx:27
LVL1::CMMJetHits::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:70
LVL1::CMMJetHits::m_dataID
int m_dataID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:69
LVL1::CMMJetHits::MAXID
@ MAXID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:37
LVL1::CMMJetHits::m_errors
std::vector< int > m_errors
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:72
LVL1::CMMJetHits::REMOTE_MAIN
@ REMOTE_MAIN
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:35
LVL1::CMMJetHits::dataID
int dataID() const
returns data ID of data
Definition: CMMJetHits.cxx:68
LVL1::CMMJetHits::ET_MAP
@ ET_MAP
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:37
LVL1::CMMJetHits::LOCAL_MAIN
@ LOCAL_MAIN
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:35
mergePhysValFiles.errors
list errors
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:43
LVL1::CMMJetHits::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:68
LVL1::CMMJetHits::TOTAL_FORWARD
@ TOTAL_FORWARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:36
LVL1::CMMJetHits::~CMMJetHits
virtual ~CMMJetHits()
Destructor.
Definition: CMMJetHits.cxx:36