ATLAS Offline Software
InnerDetector
InDetRawEvent
InDetRawData
InDetRawData
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
20
#include "
InDetRawData/PixelRDORawData.h
"
21
22
23
class
Pixel1RawData
final :
public
PixelRDORawData
{
24
25
public
:
26
// Constructor with parameters:
27
// offline hashId of the readout element,
28
// the word
29
30
Pixel1RawData
();
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)
60
inline
int
Pixel1RawData
::
getToT
()
const
61
{
62
return
(
m_word
& 0xFF);
63
}
64
65
// decode BCID information
66
inline
int
Pixel1RawData::getBCID
()
const
67
{
68
return
( (
m_word
>>8) & 0xFF);
69
}
70
71
// decode LVL1 accept information
72
inline
int
Pixel1RawData::getLVL1A
()
const
73
{
74
return
( (
m_word
>>24) & 0xF);
75
}
76
77
// decode Atlas wide LVL1 information
78
inline
int
Pixel1RawData::getLVL1ID
()
const
79
{
80
return
( (
m_word
>>16) & 0xFF);
81
}
82
83
#endif // INDETRAWDATA_PIXEL1RAWDATA_H
Pixel1RawData::getToT
virtual int getToT() const override
Definition:
Pixel1RawData.h:60
Pixel1RawData::Pixel1RawData
Pixel1RawData()
Definition:
Pixel1RawData.cxx:19
Pixel1RawData::Pixel1RawData
Pixel1RawData(const Pixel1RawData &)=default
const
bool const RAWDATA *ch2 const
Definition:
LArRodBlockPhysicsV0.cxx:560
PixelByteStreamErrors::BCID
@ BCID
Definition:
PixelByteStreamErrors.h:13
PixelRDORawData.h
Pixel1RawData
Definition:
Pixel1RawData.h:23
InDetRawData::m_word
unsigned int m_word
Definition:
InDetRawData.h:72
Pixel1RawData::getBCID
virtual int getBCID() const override
Definition:
Pixel1RawData.h:66
Pixel1RawData::Pixel1RawData
Pixel1RawData(Pixel1RawData &&) noexcept=default
PixelRDORawData
Definition:
PixelRDORawData.h:23
Pixel1RawData::getLVL1ID
virtual int getLVL1ID() const override
Definition:
Pixel1RawData.h:78
python.CaloScaleNoiseConfig.default
default
Definition:
CaloScaleNoiseConfig.py:79
Pixel1RawData::getLVL1A
virtual int getLVL1A() const override
Definition:
Pixel1RawData.h:72
PixelByteStreamErrors::LVL1ID
@ LVL1ID
Definition:
PixelByteStreamErrors.h:13
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Thu Nov 7 2024 21:23:39 for ATLAS Offline Software by
1.8.18