ATLAS Offline Software
CscRawData_p0.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUON_CSCRAWDATA_P0_H
6 #define MUON_CSCRAWDATA_P0_H
7 
8 /*
9 Persistent representation of the old CscRawData class
10 Used by ROOT streamer
11 Author: Marcin Nowak
12  CERN, December 2005
13 */
14 
15 #include <inttypes.h>
16 #include <vector>
17 
19 {
20 
21  public:
22  CscRawData_p0 () : m_address(0), m_dpuID(0), m_id(0) {}
23  virtual ~CscRawData_p0() {}
24 
26  uint16_t dpuID() const { return m_dpuID; }
27  uint16_t identify() const {return m_id;}
28  const std::vector<uint16_t> & getSamples() const { return m_amps; }
29  uint32_t getAddress() const { return m_address; }
30 
31  // to be removed eventually
32  const uint16_t * getAmplitudes() const { return m_amplitude; }
33 
34 
35 private:
36 
38 
40 
41  // this data member is
42  // only here for backward compatibility with ROOT3
44 
45  std::vector<uint16_t> m_amps;
48 
49 };
50 
51 #endif
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
64 
CscRawData_p0::~CscRawData_p0
virtual ~CscRawData_p0()
Definition: CscRawData_p0.h:23
CscRawData_p0::getAddress
uint32_t getAddress() const
Definition: CscRawData_p0.h:29
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
CscRawData_p0::m_dpuID
uint16_t m_dpuID
Definition: CscRawData_p0.h:46
CscRawData_p0::m_id
uint16_t m_id
Definition: CscRawData_p0.h:47
CscRawData_p0
Definition: CscRawData_p0.h:19
CscRawData_p0::setDpuID
void setDpuID(uint16_t dpuID)
Definition: CscRawData_p0.h:25
CscRawData_p0::m_address
uint32_t m_address
!!!!!!!!!!!!!! Order of data fields sorted alphabethically for compatibility with ROOT 3 and 4 (Refle...
Definition: CscRawData_p0.h:39
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
CscRawData_p0::dpuID
uint16_t dpuID() const
Definition: CscRawData_p0.h:26
CscRawData_p0::getSamples
const std::vector< uint16_t > & getSamples() const
Definition: CscRawData_p0.h:28
CscRawData_p0::CscRawData_p0
CscRawData_p0()
Definition: CscRawData_p0.h:22
CscRawData_p0::identify
uint16_t identify() const
Definition: CscRawData_p0.h:27
CscRawData_p0::m_amps
std::vector< uint16_t > m_amps
Definition: CscRawData_p0.h:45
CscRawData_p0::getAmplitudes
const uint16_t * getAmplitudes() const
Definition: CscRawData_p0.h:32
CscRawData_p0::m_amplitude
uint16_t m_amplitude[4]
Definition: CscRawData_p0.h:43