ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
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
int getStrip() const
void setRowStrip(const int row, const int strip)
int getRow() const
friend class SCT3_RawDataCnv_p4
unsigned short m_word
unsigned short m_rowStrip