ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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
 
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 }

◆ 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 }

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 {
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 }

◆ 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()

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

Definition at line 23 of file BaseObject.h.

23 { return m_name; }

◆ 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 }

◆ 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 {
44  m_number = number;
45 }

◆ tag()

ObjectType BaseObject::tag ( ) const
inlineinherited

Definition at line 22 of file BaseObject.h.

22 { return m_tag; }

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:
RPCtrigDataObject::m_number
int m_number
Definition: RPCtrigDataObject.h:17
RPCtrigDataObject::RPCtrigDataObject
RPCtrigDataObject(int, const std::string &)
Definition: RPCtrigDataObject.cxx:10
BaseObject::m_name
std::string m_name
Definition: BaseObject.h:16
patterns
std::vector< std::string > patterns
Definition: listroot.cxx:187
CMAidentity::type
ViewType type() const
Definition: CMAidentity.cxx:117
CMAreadout::sector
int sector(void) const
Definition: CMAreadout.h:45
MatrixReadOut::DataVersion
DataVersion
Definition: MatrixReadOut.h:20
CMAreadout::m_CMAconfiguration
CMAparameters::CMAconfiguration m_CMAconfiguration
Definition: CMAreadout.h:25
detail
Definition: extract_histogram_tag.cxx:14
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
CMAreadout::m_low_pt_matrix_readout
std::unique_ptr< MatrixReadOut > m_low_pt_matrix_readout
Definition: CMAreadout.h:31
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
BaseObject::name
std::string name() const
Definition: BaseObject.h:23
CMAidentity::Ixx_index
int Ixx_index() const
Definition: CMAidentity.cxx:123
CMAreadout::m_high_pt_matrix_readout
std::unique_ptr< MatrixReadOut > m_high_pt_matrix_readout
Definition: CMAreadout.h:31
RPCtrigDataObject
Definition: RPCtrigDataObject.h:15
CMAreadout::m_cma_identity
CMAidentity m_cma_identity
Definition: CMAreadout.h:28
CMAidentity::PAD_index
int PAD_index() const
Definition: CMAidentity.cxx:122
RPCtrigDataObject::number
int number(void) const
Definition: RPCtrigDataObject.h:29
BaseObject::m_tag
ObjectType m_tag
Definition: BaseObject.h:15
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MatrixReadOut::Atlas
@ Atlas
Definition: MatrixReadOut.h:20
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MatrixReadOut::Simulation
@ Simulation
Definition: MatrixReadOut.h:20
CMAreadout::m_high_pt_matrix
Matrix * m_high_pt_matrix
Definition: CMAreadout.h:30
CMAreadout::m_low_pt_matrix
Matrix * m_low_pt_matrix
Definition: CMAreadout.h:29
CMAreadout::id
const CMAidentity & id(void) const
Definition: CMAreadout.h:46
CMAreadout::m_sector
int m_sector
Definition: CMAreadout.h:27
CMAparameters::Atlas
@ Atlas
Definition: CMAparameters.h:23