ATLAS Offline Software
SCT3_RawData_p4.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 #ifndef SCT3_RAWDATA_P4_H
10 #define SCT3_RAWDATA_P4_H
11 
12 #include "Identifier/Identifier.h"
13 
15  public:
17 // List of Cnv classes that convert this into Rdo objects
18  friend class SCT3_RawDataCnv_p4;
19  //private:
20  unsigned short m_rowStrip=0; // row and strip numbers from Identifier. Bits 0-12 for strip, Bits 13-15 for row
21  unsigned short m_word=0; // raw data word. Bits 0-10 for group size, Bits 11-13 for time bin
22 
23  void setRowStrip(const int row, const int strip) {
24  m_rowStrip = (static_cast<unsigned int>(strip) & 0x1FFF);
25  m_rowStrip |= ((static_cast<unsigned int>(row) & 0x7) << 13);
26  }
27 
28  int getRow() const {
29  return ((m_rowStrip >> 13) & 0x7);
30  }
31 
32  int getStrip() const {
33  return (m_rowStrip & 0x1FFF);
34  }
35 
36 };
37 
38 #endif // SCT3_RAWDATA_P4_H
query_example.row
row
Definition: query_example.py:24
SCT3_RawData_p4
S.Oda, Oct 2018 replace unsigned int by unsigned short for for the presampling samples for Overlay MC...
Definition: SCT3_RawData_p4.h:14
SiliconTech::strip
@ strip
SCT3_RawData_p4::getRow
int getRow() const
Definition: SCT3_RawData_p4.h:28
SCT3_RawData_p4::m_rowStrip
unsigned short m_rowStrip
Definition: SCT3_RawData_p4.h:20
SCT3_RawDataCnv_p4
Definition: SCT3_RawDataCnv_p4.h:22
SCT3_RawData_p4::m_word
unsigned short m_word
Definition: SCT3_RawData_p4.h:21
SCT3_RawData_p4::getStrip
int getStrip() const
Definition: SCT3_RawData_p4.h:32
SCT3_RawData_p4::SCT3_RawData_p4
SCT3_RawData_p4()
Definition: SCT3_RawData_p4.h:16
SCT3_RawData_p4::setRowStrip
void setRowStrip(const int row, const int strip)
Definition: SCT3_RawData_p4.h:23