ATLAS Offline Software
Loading...
Searching...
No Matches
InDetRawData.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// InDetRawData.h
7// Header file for class InDetRawData
9// (c) ATLAS Detector software
11// Class to handle raw data objects for Pixel and SCT and TRT
13// Version 1.0 13/08/2002 Veronique Boisvert
15
16#ifndef INDETRAWDATA_INDETRAWDATA_H
17#define INDETRAWDATA_INDETRAWDATA_H
18
19// Base class
21#include "Identifier/Identifier.h"
22class MsgStream;
23
24
25class InDetRawData : public Identifiable {
26
28 // Public methods:
30public:
31
32 // Constructor with parameters:
33 // offline compact identifier of the readout channel
34 InDetRawData(const Identifier rdoId, const unsigned int word);
35 virtual ~InDetRawData() = default;
36
38 // Virtual methods:
40
41 virtual Identifier identify() const override final
42 {
43 return m_rdoId;
44 }
45
46
47 unsigned int getWord() const
48 {
49 return m_word;
50 }
51
53 // Clients should not use default constructor, rather use the one
54 // above. It must be public for pool I/O.
56 InDetRawData() = default;
57
58 // OR the data word from OTHER into our data word.
59 // Used by InDetOverlay.
60 void merge (const InDetRawData& other)
61 {
62 m_word |= other.m_word;
63 }
64
66 // Private data:
68private:
69 Identifier m_rdoId; //Offline ID for readout channel
70
71protected:
72 unsigned int m_word = 0; // raw data word
73};
74
76MsgStream& operator << ( MsgStream& sl, const InDetRawData& rdo);
77
79std::ostream& operator << ( std::ostream& sl, const InDetRawData& rdo);
80
81#endif // INDETRAWDATA_INDETRAWDATA_H
82
MsgStream & operator<<(MsgStream &sl, const InDetRawData &rdo)
Overload of << operator for MsgStream for debug output.
This class provides an abstract interface to an Identifiable object.
InDetRawData()=default
unsigned int m_word
void merge(const InDetRawData &other)
InDetRawData(const Identifier rdoId, const unsigned int word)
virtual Identifier identify() const override final
Identifier m_rdoId
unsigned int getWord() const
virtual ~InDetRawData()=default