ATLAS Offline Software
Loading...
Searching...
No Matches
CMAreadout Class Reference

#include <CMAreadout.h>

Inheritance diagram for CMAreadout:
Collaboration diagram for CMAreadout:

Public Member Functions

 CMAreadout (CMApatterns *, uint NOBXS, uint BCZERO)
 CMAreadout (const CMAreadout &)
CMAreadout operator= (const CMAreadout &)
bool operator== (const CMAreadout &) const
bool operator!= (const CMAreadout &) const
bool operator< (const CMAreadout &) const
CMAparameters::CMAconfiguration CMAconfiguration (void) const
int sector (void) const
const CMAidentityid (void) const
const Matrixlow_pt_matrix (void) const
const Matrixhigh_pt_matrix (void) const
std::array< MatrixReadOut *, 2 > give_matrix_readout (MsgStream &log, uint NOBXS)
void set_number (int)
int number (void) const
void PrintElement (std::ostream &, std::string, bool) const
void Print (std::ostream &, bool) const
ObjectType tag () const
const std::string & name () const

Private Attributes

CMAparameters::CMAconfiguration m_CMAconfiguration
int m_sector
CMAidentity m_cma_identity
Matrixm_low_pt_matrix
Matrixm_high_pt_matrix
std::unique_ptr< MatrixReadOutm_low_pt_matrix_readout
std::unique_ptr< MatrixReadOutm_high_pt_matrix_readout
int m_number
ObjectType m_tag
std::string m_name

Detailed Description

Definition at line 22 of file CMAreadout.h.

Constructor & Destructor Documentation

◆ CMAreadout() [1/2]

CMAreadout::CMAreadout ( CMApatterns * patterns,
uint NOBXS,
uint BCZERO )

Definition at line 7 of file CMAreadout.cxx.

7 :
8 RPCtrigDataObject(patterns->number(),"CMA readout"),
9 m_CMAconfiguration(patterns->cma_parameters().conf_type()),
10 m_sector(patterns->sector()),
11 m_cma_identity(patterns->cma_parameters().id())
12{
13 m_low_pt_matrix = patterns->give_low_pt_matrix(NOBXS, BCZERO);
14 m_high_pt_matrix = patterns->give_high_pt_matrix(NOBXS, BCZERO);
15}
Matrix * m_low_pt_matrix
Definition CMAreadout.h:29
Matrix * m_high_pt_matrix
Definition CMAreadout.h:30
CMAparameters::CMAconfiguration m_CMAconfiguration
Definition CMAreadout.h:25
CMAidentity m_cma_identity
Definition CMAreadout.h:28
RPCtrigDataObject(int, const std::string &)
std::vector< std::string > patterns
Definition listroot.cxx:187

◆ CMAreadout() [2/2]

CMAreadout::CMAreadout ( const CMAreadout & readout)

Definition at line 18 of file CMAreadout.cxx.

18 :
19 RPCtrigDataObject(readout.number(),readout.name()),
21 m_sector(readout.m_sector),
25{
26}
const std::string & name() const
Definition BaseObject.h:23
int number(void) const

Member Function Documentation

◆ CMAconfiguration()

CMAparameters::CMAconfiguration CMAreadout::CMAconfiguration ( void ) const
inline

Definition at line 43 of file CMAreadout.h.

44 {return m_CMAconfiguration;}

◆ give_matrix_readout()

std::array< MatrixReadOut *, 2 > CMAreadout::give_matrix_readout ( MsgStream & log,
uint NOBXS )

Definition at line 74 of file CMAreadout.cxx.

75{
77 MatrixReadOut::Atlas : MatrixReadOut::Simulation;
78
80 m_low_pt_matrix_readout = std::make_unique<MatrixReadOut>(m_low_pt_matrix,0,NOBXS,type);
82 m_high_pt_matrix_readout = std::make_unique<MatrixReadOut>(m_high_pt_matrix,0,NOBXS,type);
83
84 unsigned short int lowFrag = m_low_pt_matrix_readout->checkFragment();
85 unsigned short int highFrag = m_high_pt_matrix_readout->checkFragment();
86 if (log.level()<=MSG::DEBUG) {
87 log << MSG::DEBUG << "CheckFragment for low Pt Matrix = " << lowFrag << endmsg;
88 log << MSG::DEBUG << "CheckFragment for high Pt Matrix = " << highFrag << endmsg;
89 }
90
92}
#define endmsg
std::unique_ptr< MatrixReadOut > m_high_pt_matrix_readout
Definition CMAreadout.h:31
std::unique_ptr< MatrixReadOut > m_low_pt_matrix_readout
Definition CMAreadout.h:31

◆ high_pt_matrix()

const Matrix * CMAreadout::high_pt_matrix ( void ) const
inline

Definition at line 48 of file CMAreadout.h.

48{return m_high_pt_matrix;}

◆ id()

const CMAidentity & CMAreadout::id ( void ) const
inline

Definition at line 46 of file CMAreadout.h.

46{return m_cma_identity;}

◆ low_pt_matrix()

const Matrix * CMAreadout::low_pt_matrix ( void ) const
inline

Definition at line 47 of file CMAreadout.h.

47{return m_low_pt_matrix;}

◆ name()

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

Definition at line 23 of file BaseObject.h.

23{ return m_name; }
std::string m_name
Definition BaseObject.h:16

◆ number()

int RPCtrigDataObject::number ( void ) const
inlineinherited

Definition at line 29 of file RPCtrigDataObject.h.

29{return m_number;}

◆ operator!=()

bool CMAreadout::operator!= ( const CMAreadout & cmaReadout) const

Definition at line 56 of file CMAreadout.cxx.

57{
58 return !(*this == cmaReadout);
59}

◆ operator<()

bool CMAreadout::operator< ( const CMAreadout & cmaReadout) const

Definition at line 61 of file CMAreadout.cxx.

63{
64 if ( m_sector < cmaReadout.sector() ) return true;
65 if ( m_cma_identity.PAD_index() < cmaReadout.id().PAD_index() )
66 return true;
67 if ( m_cma_identity.type() < cmaReadout.id().type()) return true;
68 if ( m_cma_identity.Ixx_index() < cmaReadout.id().Ixx_index() )
69 return true;
70 return false;
71}
ViewType type() const
int Ixx_index() const
int PAD_index() const
const CMAidentity & id(void) const
Definition CMAreadout.h:46
int sector(void) const
Definition CMAreadout.h:45

◆ operator=()

CMAreadout CMAreadout::operator= ( const CMAreadout & readout)

Definition at line 29 of file CMAreadout.cxx.

30{
31 static_cast<RPCtrigDataObject&>(*this) =
32 static_cast<const RPCtrigDataObject&>(readout);
34 m_sector = readout.m_sector;
38 return *this;
39}

◆ operator==()

bool CMAreadout::operator== ( const CMAreadout & cmaReadout) const

Definition at line 43 of file CMAreadout.cxx.

44{
45 if( m_sector == cmaReadout.sector() &&
46 m_cma_identity.PAD_index() == cmaReadout.id().PAD_index() &&
47 m_cma_identity.type() == cmaReadout.id().type() &&
48 m_cma_identity.Ixx_index() == cmaReadout.id().Ixx_index() )
49 {
50 return true;
51 }
52 return false;
53}

◆ Print()

void RPCtrigDataObject::Print ( std::ostream & stream,
bool detail ) const
virtualinherited

Reimplemented from BaseObject.

Reimplemented in SLpatterns.

Definition at line 31 of file RPCtrigDataObject.cxx.

32{
33 detail = true;
34 if(detail)
35 {
36 stream << name() << " number " << setw(3) << number();
37 }
38 stream << endl;
39}

◆ PrintElement()

void RPCtrigDataObject::PrintElement ( std::ostream & ,
std::string ,
bool  ) const
inlineinherited

Definition at line 31 of file RPCtrigDataObject.h.

31{}

◆ sector()

int CMAreadout::sector ( void ) const
inline

Definition at line 45 of file CMAreadout.h.

45{return m_sector;}

◆ set_number()

void RPCtrigDataObject::set_number ( int number)
inherited

Definition at line 42 of file RPCtrigDataObject.cxx.

43{
45}

◆ tag()

ObjectType BaseObject::tag ( ) const
inlineinherited

Definition at line 22 of file BaseObject.h.

22{ return m_tag; }
ObjectType m_tag
Definition BaseObject.h:15

Member Data Documentation

◆ m_cma_identity

CMAidentity CMAreadout::m_cma_identity
private

Definition at line 28 of file CMAreadout.h.

◆ m_CMAconfiguration

CMAparameters::CMAconfiguration CMAreadout::m_CMAconfiguration
private

Definition at line 25 of file CMAreadout.h.

◆ m_high_pt_matrix

Matrix* CMAreadout::m_high_pt_matrix
private

Definition at line 30 of file CMAreadout.h.

◆ m_high_pt_matrix_readout

std::unique_ptr<MatrixReadOut> CMAreadout::m_high_pt_matrix_readout
private

Definition at line 31 of file CMAreadout.h.

◆ m_low_pt_matrix

Matrix* CMAreadout::m_low_pt_matrix
private

Definition at line 29 of file CMAreadout.h.

◆ m_low_pt_matrix_readout

std::unique_ptr<MatrixReadOut> CMAreadout::m_low_pt_matrix_readout
private

Definition at line 31 of file CMAreadout.h.

◆ m_name

std::string BaseObject::m_name
privateinherited

Definition at line 16 of file BaseObject.h.

◆ m_number

int RPCtrigDataObject::m_number
privateinherited

Definition at line 17 of file RPCtrigDataObject.h.

◆ m_sector

int CMAreadout::m_sector
private

Definition at line 27 of file CMAreadout.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: