ATLAS Offline Software
Loading...
Searching...
No Matches
SectorLogicRXReadOut.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TrigT1RPChardware_SectorLogicRXReadOut_H
6#define TrigT1RPChardware_SectorLogicRXReadOut_H
7
8#include <iostream>
9
16
18public:
21 void initialize();
22 void reset();
23
24 void writeRecord(ubit16 thisRecord, bool last);
25
28
30 uint16_t readSLHitCurrent();
31 //
32 void display(std::ostream &stream);
33 // bool checkFragment();
34 //
35 //*********************************************************//
36 // overload of "inseritore" operator //
37 //*********************************************************//
38 friend std::ostream &operator<<(std::ostream &stream, SectorLogicRXReadOut *p) {
39 p->display(stream);
40 return stream;
41 }
42 friend std::ostream &operator<<(std::ostream &stream, SectorLogicRXReadOut &p) {
43 p.display(stream);
44 return stream;
45 }
46 //*********************************************************//
47
48private:
49 void deleteSLBody();
50 void makeNewHit(ubit16 newHit);
51
52 struct SLRXROData {
53 uint16_t hit;
55 };
56
57 uint16_t m_Header;
58 uint16_t m_SubHeader;
59 uint16_t m_Footer;
63
64 //*******************************************************//
65 SLRXROData *m_BodyLast; // pointer to the last hit recorded
66 SLRXROData *m_BodyCurr; // pointer to the current hit scanned
67 //*******************************************************//
68 // uint16_t m_lastHit;
69};
70#endif
unsigned short int ubit16
BaseObject(ObjectType, const std::string &)
Definition BaseObject.cxx:7
void writeRecord(ubit16 thisRecord, bool last)
friend std::ostream & operator<<(std::ostream &stream, SectorLogicRXReadOut &p)
friend std::ostream & operator<<(std::ostream &stream, SectorLogicRXReadOut *p)
void display(std::ostream &stream)
void makeNewHit(ubit16 newHit)