ATLAS Offline Software
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:
32 public:
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 
73 public:
74  // public default constructor needed for I/O, but should not be
75  // called from an alg
77 
79  // Private data:
81 private:
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;
89  int m_stream;
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 
103 inline unsigned int SCT_TB03_RawData::getEvent() const
104 {
105  return m_event;
106 }
107 
108 inline unsigned int SCT_TB03_RawData::getFragmentType() const
109 {
110  return m_fragment_type;
111 }
112 
113 inline unsigned int SCT_TB03_RawData::getSize() const
114 {
115  return m_size;
116 }
117 
118 inline unsigned int SCT_TB03_RawData::getWordErrorCount() const
119 {
120  return m_word_error_count;
121 }
122 
123 inline unsigned int SCT_TB03_RawData::getEventCount() const
124 {
125  return m_event_count;
126 }
127 
129 {
130  return m_tbin;
131 }
132 
133 inline int SCT_TB03_RawData::getStream() const
134 {
135  return m_stream;
136 }
137 
138 
139 #endif // SITRACKEREVENT_SCT_TB03_RAWDATA_H
SCT_TB03_RawData::getSize
unsigned int getSize() const
Definition: SCT_TB03_RawData.h:113
TrigConf::JetWindowSize::Size
Size
Definition: TriggerThresholdValue.h:17
Event
Definition: trigbs_orderedMerge.cxx:42
SCT_TB03_RawData::m_event_count
unsigned int m_event_count
Definition: SCT_TB03_RawData.h:87
SCT_RDORawData
Definition: SCT_RDORawData.h:24
SCT_TB03_RawData::getEventCount
unsigned int getEventCount() const
Definition: SCT_TB03_RawData.h:123
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
SCT_TB03_RawData::m_stream
int m_stream
Definition: SCT_TB03_RawData.h:89
SCT_TB03_RawData::getGroupSize
virtual int getGroupSize() const
Definition: SCT_TB03_RawData.h:97
SCT_TB03_RawData::m_word_error_count
unsigned int m_word_error_count
Definition: SCT_TB03_RawData.h:86
SCT_TB03_RawData::getEvent
unsigned int getEvent() const
Definition: SCT_TB03_RawData.h:103
InDetRawData::m_word
unsigned int m_word
Definition: InDetRawData.h:72
SCT_TB03_RawData::m_fragment_type
unsigned int m_fragment_type
Definition: SCT_TB03_RawData.h:84
SCT_TB03_RawData::SCT_TB03_RawData
SCT_TB03_RawData()
Definition: SCT_TB03_RawData.cxx:19
SCT_RDORawData.h
SCT_TB03_RawData::m_size
unsigned int m_size
Definition: SCT_TB03_RawData.h:85
SCT_TB03_RawData::m_tbin
int m_tbin
Definition: SCT_TB03_RawData.h:88
SCT_TB03_RawData
Definition: SCT_TB03_RawData.h:27
SCT_TB03_RawData::getTimeBin
int getTimeBin() const
Definition: SCT_TB03_RawData.h:128
SCT_TB03_RawData::getStream
int getStream() const
Definition: SCT_TB03_RawData.h:133
SCT_TB03_RawData::m_event
unsigned int m_event
Definition: SCT_TB03_RawData.h:83
SCT_TB03_RawData::~SCT_TB03_RawData
virtual ~SCT_TB03_RawData()=default
SCT_TB03_RawData::getFragmentType
unsigned int getFragmentType() const
Definition: SCT_TB03_RawData.h:108
SCT_TB03_RawData::getWordErrorCount
unsigned int getWordErrorCount() const
Definition: SCT_TB03_RawData.h:118
Identifier
Definition: IdentifierFieldParser.cxx:14