ATLAS Offline Software
PixelTB04RawData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // PixelTB04RawData.h
7 // Header file for class PixelTB04RawData
9 // (c) ATLAS Detector software
11 // Class to implement RawData for Pixel, using method 1 of decoding the word
13 // Version 1.0 13/08/2002 Veronique Boisvert
15 
16 #ifndef INDETRAWDATA_PIXELTB04RAWDATA_H
17 #define INDETRAWDATA_PIXELTB04RAWDATA_H
18 
19 // Base class
21 
22 // Data members classes
23 
24 
25 
27 
29  // Public methods:
31 public:
32 
33  // Constructor with parameters:
34  // offline hashId of the readout element,
35  // the word
36  PixelTB04RawData(const Identifier rdoId, const unsigned int word);
37  // Constructor with BCID as well (commented out, since not implemented)
38  // PixelTB04RawData(const Identifier rdoId, const unsigned int word, const unsigned int BCID);
39  // Constructor with BCID and LVL1ID as well
40  PixelTB04RawData(const Identifier rdoId, const unsigned int word, const unsigned int BCID, const unsigned int LVL1ID);
41  // Constructor using ToT and BCID, LVL1ID and LVL1A as well
42  PixelTB04RawData(const Identifier rdoId, const unsigned int ToT, const unsigned int BCID, const unsigned int LVL1ID, const unsigned int LVL1A);
43 
44 
45  // Destructor:
46  virtual ~PixelTB04RawData();
47 
49  // Virtual methods
51 
52 
53 
54 
55  virtual int getToT() const; // Time over Threshold value 0-255
56  virtual int getBCID() const; // Beam Crossing ID
57  virtual int getLVL1ID() const; // Level 1 accept, 0-15, used if reading
58  // consecutive BCOs
59  virtual int getLVL1A() const; // ATLAS LVL1 0-255
60 
61  // Create a new PixelTB04RawData and return a pointer to it:
62  // static PixelTB04RawData *newObject(const Identifier rdoId, const unsigned int word);
63 
64 public:
65  // public default constructor needed for I/O, but should not be
66  // called from an alg
68 
70  // Private data:
72 private:
73  unsigned int m_BCID;
74  unsigned int m_LVL1ID;
75 
76 };
77 
79 // Inline methods:
81 // decode TOT information (taken from Calvet RawData class)
82 inline int PixelTB04RawData::getToT() const
83 {
84  return (m_word & 0xFF);
85 }
86 
87 // decode BCID
88 inline int PixelTB04RawData::getBCID() const
89 {
90  return (m_BCID);
91 }
92 
93 // decode LVL1ID
94 inline int PixelTB04RawData::getLVL1ID() const
95 {
96  return (m_LVL1ID);
97 }
98 
99 // decode LVL1 accept
100 inline int PixelTB04RawData::getLVL1A() const
101 {
102  return ( (m_word>>8) & 0xF );
103 }
104 
105 #endif // INDETRAWDATA_PIXELTB04RAWDATA_H
PixelTB04RawData::getToT
virtual int getToT() const
Definition: PixelTB04RawData.h:82
PixelTB04RawData::getLVL1A
virtual int getLVL1A() const
Definition: PixelTB04RawData.h:100
PixelTB04RawData
Definition: PixelTB04RawData.h:26
PixelByteStreamErrors::BCID
@ BCID
Definition: PixelByteStreamErrors.h:13
PixelRDORawData.h
PixelTB04RawData::getBCID
virtual int getBCID() const
Definition: PixelTB04RawData.h:88
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
PixelTB04RawData::m_LVL1ID
unsigned int m_LVL1ID
Definition: PixelTB04RawData.h:74
InDetRawData::m_word
unsigned int m_word
Definition: InDetRawData.h:72
PixelTB04RawData::m_BCID
unsigned int m_BCID
Definition: PixelTB04RawData.h:73
PixelTB04RawData::PixelTB04RawData
PixelTB04RawData(const Identifier rdoId, const unsigned int word)
PixelRDORawData
Definition: PixelRDORawData.h:23
PixelTB04RawData::~PixelTB04RawData
virtual ~PixelTB04RawData()
Definition: PixelTB04RawData.cxx:44
PixelTB04RawData::getLVL1ID
virtual int getLVL1ID() const
Definition: PixelTB04RawData.h:94
PixelTB04RawData::PixelTB04RawData
PixelTB04RawData()
Definition: PixelTB04RawData.cxx:19
PixelByteStreamErrors::LVL1ID
@ LVL1ID
Definition: PixelByteStreamErrors.h:13