ATLAS Offline Software
Loading...
Searching...
No Matches
TrigT2MbtsBits Class Reference

#include <TrigT2MbtsBits.h>

Collaboration diagram for TrigT2MbtsBits:

Public Member Functions

 TrigT2MbtsBits ()=default
 TrigT2MbtsBits (const std::vector< float > &triggerEnergies, const std::vector< float > &triggerTimes)
 ~TrigT2MbtsBits ()=default
 TrigT2MbtsBits (const TrigT2MbtsBits &)=default
TrigT2MbtsBitsoperator= (const TrigT2MbtsBits &)=default
 TrigT2MbtsBits (TrigT2MbtsBits &&) noexcept=default
TrigT2MbtsBitsoperator= (TrigT2MbtsBits &&) noexcept=default
const std::vector< float > & triggerEnergies (void) const
 Return the trigger energies of each counter.
const std::vector< float > & triggerTimes (void) const
 Return the relative times of the triggers.
void print (void) const
 Prints out data members to std::cout.
void print (MsgStream &log) const
 Prints out data members to MsgStream.

Static Public Attributes

static constexpr int NUM_MBTS = 32
 A data member to contain the number of MBTS counters.

Private Attributes

std::vector< float > m_triggerEnergies {TrigT2MbtsBits::NUM_MBTS,0.f}
std::vector< float > m_triggerTimes {TrigT2MbtsBits::NUM_MBTS,0.f}

Detailed Description

Author
W. H. Bell W.Bel.nosp@m.l@ce.nosp@m.rn.ch

A class to contain the DSP energies and times of each MBTS counter.

Definition at line 22 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2MbtsBits.h.

Constructor & Destructor Documentation

◆ TrigT2MbtsBits() [1/4]

TrigT2MbtsBits::TrigT2MbtsBits ( )
default

◆ TrigT2MbtsBits() [2/4]

TrigT2MbtsBits::TrigT2MbtsBits ( const std::vector< float > & triggerEnergies,
const std::vector< float > & triggerTimes )

Definition at line 12 of file TrigT2MbtsBits.cxx.

13 :
16{
19}
static constexpr int NUM_MBTS
A data member to contain the number of MBTS counters.
const std::vector< float > & triggerTimes(void) const
Return the relative times of the triggers.
const std::vector< float > & triggerEnergies(void) const
Return the trigger energies of each counter.

◆ ~TrigT2MbtsBits()

TrigT2MbtsBits::~TrigT2MbtsBits ( )
default

◆ TrigT2MbtsBits() [3/4]

TrigT2MbtsBits::TrigT2MbtsBits ( const TrigT2MbtsBits & )
default

◆ TrigT2MbtsBits() [4/4]

TrigT2MbtsBits::TrigT2MbtsBits ( TrigT2MbtsBits && )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

TrigT2MbtsBits & TrigT2MbtsBits::operator= ( const TrigT2MbtsBits & )
default

◆ operator=() [2/2]

TrigT2MbtsBits & TrigT2MbtsBits::operator= ( TrigT2MbtsBits && )
defaultnoexcept

◆ print() [1/2]

void TrigT2MbtsBits::print ( MsgStream & log) const

Prints out data members to MsgStream.

Definition at line 28 of file TrigT2MbtsBits.cxx.

28 {
29 std::vector<float>::const_iterator itr;
30 std::vector<float>::const_iterator itr_end;
31
32 itr=m_triggerEnergies.begin();
33 itr_end=m_triggerEnergies.end();
34 log << MSG::DEBUG << "m_triggerEnergies = {";
35 for(;itr != itr_end; ++itr) {
36 log << MSG::DEBUG << (*itr) << ",";
37 }
38 log << MSG::DEBUG << "}\n";
39
40 itr = m_triggerTimes.begin();
41 itr_end = m_triggerTimes.end();
42 log << MSG::DEBUG << "m_triggerTimes = {";
43 for(;itr != itr_end; ++itr) {
44 log << MSG::DEBUG << (*itr) << ",";
45 }
46 log << MSG::DEBUG << "}" << endmsg;
47}
#define endmsg

◆ print() [2/2]

void TrigT2MbtsBits::print ( void ) const

Prints out data members to std::cout.

Definition at line 23 of file TrigT2MbtsBits.cxx.

23 {
24 std::cout << str(*this) << std::endl;
25}

◆ triggerEnergies()

const std::vector< float > & TrigT2MbtsBits::triggerEnergies ( void ) const
inline

Return the trigger energies of each counter.

Definition at line 34 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2MbtsBits.h.

34{ return m_triggerEnergies; }

◆ triggerTimes()

const std::vector< float > & TrigT2MbtsBits::triggerTimes ( void ) const
inline

Return the relative times of the triggers.

Definition at line 37 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2MbtsBits.h.

37{ return m_triggerTimes; }

Member Data Documentation

◆ m_triggerEnergies

std::vector<float> TrigT2MbtsBits::m_triggerEnergies {TrigT2MbtsBits::NUM_MBTS,0.f}
private

◆ m_triggerTimes

std::vector<float> TrigT2MbtsBits::m_triggerTimes {TrigT2MbtsBits::NUM_MBTS,0.f}
private

◆ NUM_MBTS

int TrigT2MbtsBits::NUM_MBTS = 32
staticconstexpr

A data member to contain the number of MBTS counters.

Definition at line 46 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2MbtsBits.h.


The documentation for this class was generated from the following files: