ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7#include <iostream>
8
9using namespace std;
10
11//----------------------------------------------------------------------------//
12CMReprocessing::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());
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//----------------------------------------------------------------------------//
43CMReprocessing::~CMReprocessing() {} // end-of-~CMReprocessing()
@ Hardware
Definition BaseObject.h:11
BaseObject(ObjectType, const std::string &)
Definition BaseObject.cxx:7
CMAword diffOut()
Definition CMROCompare.h:21
CMReprocessing(MatrixReadOut *hard, Matrix *CMsimu, int NOBXS)
void doMatrix(Matrix *CMpointer)
ubit16 readSubHeader()
void overwriteHeader(ubit16 thisRecord)
void reComputeFooter()
void overwriteSubHeader(ubit16 thisRecord)
ubit16 checkFragment()
STL namespace.