ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2MbtsBits.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGT2MBTSBITS_H
6#define TRIGT2MBTSBITS_H
7
9
10
11#include <vector>
12#include <string>
13
14class MsgStream;
15
23
24 public:
25 TrigT2MbtsBits() = default;
26 TrigT2MbtsBits(const std::vector<float>& triggerEnergies, const std::vector<float>& triggerTimes);
27 ~TrigT2MbtsBits() = default;
28 TrigT2MbtsBits(const TrigT2MbtsBits&) = default;
30 TrigT2MbtsBits(TrigT2MbtsBits&&) noexcept = default;
31 TrigT2MbtsBits& operator=(TrigT2MbtsBits&&) noexcept = default;
32
34 const std::vector<float>& triggerEnergies(void) const { return m_triggerEnergies; }
35
37 const std::vector<float>& triggerTimes(void) const { return m_triggerTimes; }
38
40 void print(void) const;
41
43 void print(MsgStream& log) const;
44
46 static constexpr int NUM_MBTS = 32;
47
48 private:
51};
52
54std::string str(const TrigT2MbtsBits& trigT2MbtsBits);
55
57MsgStream& operator<< (MsgStream& m, const TrigT2MbtsBits& trigT2MbtsBits);
58
59CLASS_DEF( TrigT2MbtsBits , 100986084 , 1 )
60#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
MsgStream & operator<<(MsgStream &m, const TrigT2MbtsBits &trigT2MbtsBits)
Helper operator for printing the object.
TrigT2MbtsBits(const TrigT2MbtsBits &)=default
void print(void) const
Prints out data members to std::cout.
TrigT2MbtsBits & operator=(const TrigT2MbtsBits &)=default
TrigT2MbtsBits()=default
TrigT2MbtsBits(TrigT2MbtsBits &&) noexcept=default
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.
~TrigT2MbtsBits()=default
const std::vector< float > & triggerEnergies(void) const
Return the trigger energies of each counter.
STL namespace.