ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
CMReprocessing Class Reference

#include <CMReprocessing.h>

Inheritance diagram for CMReprocessing:
Collaboration diagram for CMReprocessing:

Public Member Functions

 CMReprocessing (MatrixReadOut *hard, Matrix *CMsimu, int NOBXS)
 
 ~CMReprocessing ()
 
ObjectType tag () const
 
std::string name () const
 
virtual void Print (std::ostream &, bool) const
 

Private Attributes

ObjectType m_tag
 
std::string m_name
 

Detailed Description

Definition at line 17 of file CMReprocessing.h.

Constructor & Destructor Documentation

◆ CMReprocessing()

CMReprocessing::CMReprocessing ( MatrixReadOut hard,
Matrix CMsimu,
int  NOBXS 
)

Definition at line 12 of file CMReprocessing.cxx.

12  : 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

◆ ~CMReprocessing()

CMReprocessing::~CMReprocessing ( )

Definition at line 43 of file CMReprocessing.cxx.

43 {} // end-of-~CMReprocessing()

Member Function Documentation

◆ name()

std::string BaseObject::name ( ) const
inlineinherited

Definition at line 23 of file BaseObject.h.

23 { return m_name; }

◆ Print()

virtual void BaseObject::Print ( std::ostream &  ,
bool   
) const
inlinevirtualinherited

◆ tag()

ObjectType BaseObject::tag ( ) const
inlineinherited

Definition at line 22 of file BaseObject.h.

22 { return m_tag; }

Member Data Documentation

◆ m_name

std::string BaseObject::m_name
privateinherited

Definition at line 16 of file BaseObject.h.

◆ m_tag

ObjectType BaseObject::m_tag
privateinherited

Definition at line 15 of file BaseObject.h.


The documentation for this class was generated from the following files:
MatrixReadOut::readSubHeader
ubit16 readSubHeader()
Definition: MatrixReadOut.cxx:659
BaseObject::m_name
std::string m_name
Definition: BaseObject.h:16
Matrix::reset
void reset()
Definition: Trigger/TrigT1/TrigT1RPChardware/src/Matrix.cxx:153
MatrixReadOut::readHeader
ubit16 readHeader()
Definition: MatrixReadOut.cxx:657
MatrixReadOut
Definition: MatrixReadOut.h:18
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::BaseObject
BaseObject(ObjectType, const std::string &)
Definition: BaseObject.cxx:7
BaseObject::m_tag
ObjectType m_tag
Definition: BaseObject.h:15
MatrixReadOut::Atlas
@ Atlas
Definition: MatrixReadOut.h:20
MatrixReadOut::doMatrix
void doMatrix(Matrix *CMpointer)
Definition: MatrixReadOut.cxx:963