ATLAS Offline Software
STGC_RawData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "MuonRDO/STGC_RawData.h"
6 #include "GaudiKernel/MsgStream.h"
7 
8 
9 
10 // P1 ------------------------
11 // Constructor for Hit
13  :m_id(id)
14 {
15 }
16 
17 Muon::STGC_RawData::STGC_RawData(const Identifier id, const uint16_t bcTag, const float time,
18  const unsigned int charge, const bool isDead, const bool timeAndChargeInCounts)
19  :m_id(id), m_time(time), m_charge(charge), m_bcTag(bcTag), m_isDead(isDead),m_timeAndChargeInCounts(timeAndChargeInCounts)
20 {
21  m_tdo = static_cast<unsigned int>(25.0+time); // place holder for time->tdo from calibration
22 }
23 
24 Muon::STGC_RawData::STGC_RawData(const Identifier id, const uint16_t bcTag, const float time,
25  const unsigned int tdo, const unsigned int charge, const bool isDead, const bool timeAndChargeInCounts)
26  :m_id(id), m_time(time), m_tdo(tdo), m_charge(charge), m_bcTag(bcTag), m_isDead(isDead),m_timeAndChargeInCounts(timeAndChargeInCounts)
27 {
28 }
29 
30 MsgStream& operator<<(MsgStream& sl, const Muon::STGC_RawData& data)
31 {
32  sl << "STGC_RawData ("<< &data <<") "
33  << ", Strip ID=" << data.identify();
34  return sl;
35 }
36 
37 std::ostream& operator<<(std::ostream& sl, const Muon::STGC_RawData& data)
38 {
39  sl << "STGC_RawData ("<< &data <<") "
40  << ", Strip ID=" << data.identify();
41  return sl;
42 }
43 
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
Muon::STGC_RawData::m_tdo
unsigned int m_tdo
Definition: STGC_RawData.h:27
Muon::STGC_RawData::STGC_RawData
STGC_RawData()=default
STGC_RawData.h
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
Muon::STGC_RawData
Definition: STGC_RawData.h:14
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
Muon::STGC_RawData::time
float time() const
Definition: STGC_RawData.h:55
charge
double charge(const T &p)
Definition: AtlasPID.h:538
Muon::operator<<
std::ostream & operator<<(std::ostream &ostr, const Muon::HedgehogBoard &board)
Definition: HedgehogBoard.cxx:11
bcTag
unsigned bcTag(unsigned bcBitMap)
Definition: TgcByteStreamData.h:359
Identifier
Definition: IdentifierFieldParser.cxx:14