ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_TB03_RawData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6// SCT_TB03_RawData.h
7// Header file for class SCT_TB03_RawData
9// (c) ATLAS Detector software
11// Class to implement RawData for SCT, using TB03 for decoding word
13// Version 1.0 11/12/2003 MJ Costa
15
16#ifndef SITRACKEREVENT_SCT_TB03_RAWDATA_H
17#define SITRACKEREVENT_SCT_TB03_RAWDATA_H
18
19// Base class
21
22
23// Data members classes
24
25
26
28
30 // Public methods:
32public:
33
34 // Constructor with parameters:
35 // offline hash Id, last, word
36 SCT_TB03_RawData(const Identifier rdoId, const unsigned int word,
37 const unsigned int Event, const unsigned int FragmentIdentifier,
38 const unsigned int Size, const unsigned int WordErrorCount,
39 const unsigned int EventCount, const int tbin, const int stream);
40
41 // Destructor:
42 virtual ~SCT_TB03_RawData() = default;
43
45 // Virtual methods
47
48 // decode group of strips
49 virtual int getGroupSize() const;
50
51 unsigned int getEvent() const;
52
53 unsigned int getFragmentType() const;
54
55 unsigned int getSize() const;
56
57 unsigned int getWordErrorCount() const;
58
59 unsigned int getEventCount() const;
60
61 int getTimeBin() const;
62
63 int getStream() const;
64
66 // Static methods:
68
69
70 // Create a new SCT_TB03_RawData and return a pointer to it:
71 // static SCT_TB03_RawData *newObject(const Identifier rdoId, const unsigned int word);
72
73public:
74 // public default constructor needed for I/O, but should not be
75 // called from an alg
77
79 // Private data:
81private:
82
83 unsigned int m_event;
84 unsigned int m_fragment_type;
85 unsigned int m_size;
86 unsigned int m_word_error_count;
87 unsigned int m_event_count;
88 int m_tbin;
90
91};
92
94// Inline methods:
96// decode size of group of strips information (from Calvet RawData class)
98{
99// Temporary mask, should be fixed later
100 return (m_word & 0xFFFF);
101}
102
103inline unsigned int SCT_TB03_RawData::getEvent() const
104{
105 return m_event;
106}
107
108inline unsigned int SCT_TB03_RawData::getFragmentType() const
109{
110 return m_fragment_type;
111}
112
113inline unsigned int SCT_TB03_RawData::getSize() const
114{
115 return m_size;
116}
117
118inline unsigned int SCT_TB03_RawData::getWordErrorCount() const
119{
120 return m_word_error_count;
121}
122
123inline unsigned int SCT_TB03_RawData::getEventCount() const
124{
125 return m_event_count;
126}
127
129{
130 return m_tbin;
131}
132
134{
135 return m_stream;
136}
137
138
139#endif // SITRACKEREVENT_SCT_TB03_RAWDATA_H
unsigned int m_word
SCT_RDORawData(const Identifier rdoId, const unsigned int word)
unsigned int getWordErrorCount() const
unsigned int m_event_count
unsigned int m_fragment_type
unsigned int getSize() const
unsigned int m_event
virtual int getGroupSize() const
unsigned int getFragmentType() const
unsigned int getEventCount() const
SCT_TB03_RawData(const Identifier rdoId, const unsigned int word, const unsigned int Event, const unsigned int FragmentIdentifier, const unsigned int Size, const unsigned int WordErrorCount, const unsigned int EventCount, const int tbin, const int stream)
unsigned int m_word_error_count
unsigned int getEvent() const
virtual ~SCT_TB03_RawData()=default
unsigned int m_size