ATLAS Offline Software
Loading...
Searching...
No Matches
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:
31public:
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
64public:
65 // public default constructor needed for I/O, but should not be
66 // called from an alg
68
70 // Private data:
72private:
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)
82inline int PixelTB04RawData::getToT() const
83{
84 return (m_word & 0xFF);
85}
86
87// decode BCID
88inline int PixelTB04RawData::getBCID() const
89{
90 return (m_BCID);
91}
92
93// decode LVL1ID
95{
96 return (m_LVL1ID);
97}
98
99// decode LVL1 accept
101{
102 return ( (m_word>>8) & 0xF );
103}
104
105#endif // INDETRAWDATA_PIXELTB04RAWDATA_H
unsigned int m_word
PixelRDORawData(const Identifier rdoId, const unsigned int word)
unsigned int m_BCID
PixelTB04RawData(const Identifier rdoId, const unsigned int word)
unsigned int m_LVL1ID
virtual int getLVL1A() const
virtual int getBCID() const
virtual int getToT() const
virtual int getLVL1ID() const