ATLAS Offline Software
Loading...
Searching...
No Matches
Pixel1RawData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
6// Pixel1RawData.h
7// Header file for class Pixel1RawData
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_PIXEL1RAWDATA_H
17#define INDETRAWDATA_PIXEL1RAWDATA_H
18
19// Base class
21
22
23class Pixel1RawData final : public PixelRDORawData{
24
25public:
26 // Constructor with parameters:
27 // offline hashId of the readout element,
28 // the word
29
31 Pixel1RawData(const Identifier rdoId, const unsigned int word);
32 //
33 Pixel1RawData(const Pixel1RawData&) = default;
34 Pixel1RawData(Pixel1RawData&&) noexcept = default;
35 Pixel1RawData& operator=(const Pixel1RawData&) = default;
36 Pixel1RawData& operator=(Pixel1RawData&&) noexcept = default;
37 virtual ~Pixel1RawData() = default;
38
39 // Constructor with full parameter list: hashId, ToT, BCO ID,
40 // LVL1 accept, ATLAS wide LVL1
41 Pixel1RawData(const Identifier rdoId, const unsigned int ToT,
42 const unsigned int BCID, const unsigned int LVL1ID,
43 const unsigned int LVL1A = 0);
44
46 // Virtual methods
48
49 virtual int getToT() const override; // Time over Threshold value 0-255
50 virtual int getBCID() const override; // Beam Crossing ID
51 virtual int getLVL1A() const override; // Level 1 accept, 0-15, used if
52 // reading consecutive BCOs
53 virtual int getLVL1ID() const override; // ATLAS LVL1 0-255
54};
55
57// Inline methods:
59// decode TOT information (taken from Calvet RawData class)
60inline int Pixel1RawData::getToT() const
61{
62 return (m_word & 0xFF);
63}
64
65// decode BCID information
66inline int Pixel1RawData::getBCID() const
67{
68 return ( (m_word>>8) & 0xFF);
69}
70
71// decode LVL1 accept information
72inline int Pixel1RawData::getLVL1A() const
73{
74 return ( (m_word>>24) & 0xF);
75}
76
77// decode Atlas wide LVL1 information
78inline int Pixel1RawData::getLVL1ID() const
79{
80 return ( (m_word>>16) & 0xFF);
81}
82
83#endif // INDETRAWDATA_PIXEL1RAWDATA_H
unsigned int m_word
Pixel1RawData(Pixel1RawData &&) noexcept=default
Pixel1RawData(const Pixel1RawData &)=default
virtual int getLVL1ID() const override
virtual int getToT() const override
virtual int getLVL1A() const override
virtual int getBCID() const override
PixelRDORawData(const Identifier rdoId, const unsigned int word)