ATLAS Offline Software
Trigger
TrigT1
TrigT1RPChardware
src
CMReprocessing.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigT1RPChardware/CMReprocessing.h
"
6
7
#include <iostream>
8
9
using namespace
std;
10
11
//----------------------------------------------------------------------------//
12
CMReprocessing::CMReprocessing
(
MatrixReadOut
*hard,
Matrix
*CMsimu,
int
NOBXS) :
BaseObject
(
Hardware
,
"CMROReprocessing"
) {
13
//
14
// load and run the Matrix object "CMsimu" using as RPC input the data available
15
// in the MatrixReadOut object "hard". CMsimu is created outside this method
16
// before this method is used.
17
//
18
CMsimu->
reset
();
19
hard->
doMatrix
(CMsimu);
20
MatrixReadOut
simu(CMsimu, 0, NOBXS,
MatrixReadOut::Atlas
);
21
//
22
// overwite header and subheader of the simulated readout fragment
23
// with the records from the hardware
24
//
25
simu.
overwriteHeader
(hard->
readHeader
());
26
simu.
overwriteSubHeader
(hard->
readSubHeader
());
27
//
28
// recompute the footer
29
//
30
simu.
reComputeFooter
();
31
//
32
CMROCompare
CMROcmp(hard, &simu);
33
int
outCompare = CMROcmp.
diffOut
();
34
cout <<
" Comparison flag = "
<< outCompare << endl <<
" check Fragment = "
<< simu.
checkFragment
() << endl;
35
36
if
(outCompare) {
37
CMsimu->
display
();
38
cout << endl;
39
}
//
40
41
}
// end-of-CMReprocessing
42
//----------------------------------------------------------------------------//
43
CMReprocessing::~CMReprocessing
() {}
// end-of-~CMReprocessing()
Matrix
Definition:
Trigger/TrigT1/TrigT1RPChardware/TrigT1RPChardware/Matrix.h:15
MatrixReadOut::overwriteHeader
void overwriteHeader(ubit16 thisRecord)
Definition:
MatrixReadOut.h:43
CMReprocessing::~CMReprocessing
~CMReprocessing()
Definition:
CMReprocessing.cxx:43
MatrixReadOut::readSubHeader
ubit16 readSubHeader()
Definition:
MatrixReadOut.cxx:659
Matrix::reset
void reset()
Definition:
Trigger/TrigT1/TrigT1RPChardware/src/Matrix.cxx:153
MatrixReadOut::readHeader
ubit16 readHeader()
Definition:
MatrixReadOut.cxx:657
CMReprocessing::CMReprocessing
CMReprocessing(MatrixReadOut *hard, Matrix *CMsimu, int NOBXS)
Definition:
CMReprocessing.cxx:12
MatrixReadOut::checkFragment
ubit16 checkFragment()
Definition:
MatrixReadOut.cxx:807
MatrixReadOut
Definition:
MatrixReadOut.h:18
MatrixReadOut::overwriteSubHeader
void overwriteSubHeader(ubit16 thisRecord)
Definition:
MatrixReadOut.h:44
CMReprocessing.h
Matrix::display
void display() const
Definition:
Trigger/TrigT1/TrigT1RPChardware/src/Matrix.cxx:1814
Hardware
@ Hardware
Definition:
BaseObject.h:11
CMROCompare
Definition:
CMROCompare.h:12
BaseObject
Definition:
BaseObject.h:13
MatrixReadOut::reComputeFooter
void reComputeFooter()
Definition:
MatrixReadOut.h:45
CMROCompare::diffOut
CMAword diffOut()
Definition:
CMROCompare.h:21
MatrixReadOut::Atlas
@ Atlas
Definition:
MatrixReadOut.h:20
MatrixReadOut::doMatrix
void doMatrix(Matrix *CMpointer)
Definition:
MatrixReadOut.cxx:963
Generated on Thu Nov 7 2024 21:12:02 for ATLAS Offline Software by
1.8.18