Project
Loading...
Searching...
No Matches
o2::trd::TrapConfig::TrapRegister Class Reference

#include <TrapConfig.h>

Inherits o2::trd::TrapConfig::TrapValue.

Public Member Functions

 TrapRegister ()
 
 ~TrapRegister ()
 
void init (const char *name, int addr, int nBits, int resetValue)
 
void initfromrun2 (const char *name, int addr, int nBits, int resetValue)
 
void reset ()
 
bool setValue (int value, int det)
 
bool setValue (int value, int det, int rob, int mcm)
 
int getValue (int det, int rob, int mcm)
 
std::string getName ()
 
unsigned short getAddr ()
 
unsigned short getNbits ()
 
unsigned int getResetValue ()
 
- Public Member Functions inherited from o2::trd::TrapConfig::TrapValue
 TrapValue ()
 
 ~TrapValue ()=default
 
bool allocate (Alloc_t mode)
 
bool allocatei (int mode)
 
void setDataFromRun2 (int value, int valid, unsigned int index)
 
int getAllocMode ()
 
unsigned int getDataRaw (int i)
 
unsigned int getValidRaw (int i)
 
unsigned int getDataSize ()
 

Protected Member Functions

 TrapRegister (const TrapRegister &rhs)
 
TrapRegisteroperator= (const TrapRegister &rhs)
 
 ClassDefNV (TrapRegister, 1)
 reset value
 
- Protected Member Functions inherited from o2::trd::TrapConfig::TrapValue
bool setData (unsigned int value)
 
bool setData (unsigned int value, int det)
 
bool setData (unsigned int value, int det, int rob, int mcm)
 
unsigned int getData (int det, int rob, int mcm)
 
int getIdx (int det, int rob, int mcm)
 

Protected Attributes

std::string mName
 
unsigned short mAddr
 Name of the register.
 
unsigned short mNbits
 Address in GIO of TRAP.
 
unsigned int mResetValue
 Number of bits, from 1 to 32.
 

Additional Inherited Members

- Static Public Attributes inherited from o2::trd::TrapConfig::TrapValue
static const std::array< int, TrapConfig::mlastAllocmgkSize = {0, 1, 540, 1080, 8 * 18 * 540, 4, 6, 8 * 18 * 30}
 

Detailed Description

Definition at line 598 of file TrapConfig.h.

Constructor & Destructor Documentation

◆ TrapRegister() [1/2]

TrapConfig::TrapRegister::TrapRegister ( )

Definition at line 975 of file TrapConfig.cxx.

◆ ~TrapRegister()

TrapConfig::TrapRegister::~TrapRegister ( )
default

◆ TrapRegister() [2/2]

o2::trd::TrapConfig::TrapRegister::TrapRegister ( const TrapRegister rhs)
protected

Member Function Documentation

◆ ClassDefNV()

o2::trd::TrapConfig::TrapRegister::ClassDefNV ( TrapRegister  ,
 
)
protected

reset value

◆ getAddr()

unsigned short o2::trd::TrapConfig::TrapRegister::getAddr ( )
inline

Definition at line 613 of file TrapConfig.h.

◆ getName()

std::string o2::trd::TrapConfig::TrapRegister::getName ( )
inline

Definition at line 612 of file TrapConfig.h.

◆ getNbits()

unsigned short o2::trd::TrapConfig::TrapRegister::getNbits ( )
inline

Definition at line 614 of file TrapConfig.h.

◆ getResetValue()

unsigned int o2::trd::TrapConfig::TrapRegister::getResetValue ( )
inline

Definition at line 615 of file TrapConfig.h.

◆ getValue()

int o2::trd::TrapConfig::TrapRegister::getValue ( int  det,
int  rob,
int  mcm 
)
inline

Definition at line 611 of file TrapConfig.h.

◆ init()

void TrapConfig::TrapRegister::init ( const char name,
int  addr,
int  nBits,
int  resetValue 
)

Definition at line 982 of file TrapConfig.cxx.

◆ initfromrun2()

void TrapConfig::TrapRegister::initfromrun2 ( const char name,
int  addr,
int  nBits,
int  resetValue 
)

Definition at line 996 of file TrapConfig.cxx.

◆ operator=()

TrapRegister & o2::trd::TrapConfig::TrapRegister::operator= ( const TrapRegister rhs)
protected

◆ reset()

void o2::trd::TrapConfig::TrapRegister::reset ( )
inline

Definition at line 606 of file TrapConfig.h.

◆ setValue() [1/2]

bool o2::trd::TrapConfig::TrapRegister::setValue ( int  value,
int  det 
)
inline

Definition at line 608 of file TrapConfig.h.

◆ setValue() [2/2]

bool o2::trd::TrapConfig::TrapRegister::setValue ( int  value,
int  det,
int  rob,
int  mcm 
)
inline

Definition at line 609 of file TrapConfig.h.

Member Data Documentation

◆ mAddr

unsigned short o2::trd::TrapConfig::TrapRegister::mAddr
protected

Name of the register.

Definition at line 624 of file TrapConfig.h.

◆ mName

std::string o2::trd::TrapConfig::TrapRegister::mName
protected

Definition at line 623 of file TrapConfig.h.

◆ mNbits

unsigned short o2::trd::TrapConfig::TrapRegister::mNbits
protected

Address in GIO of TRAP.

Definition at line 625 of file TrapConfig.h.

◆ mResetValue

unsigned int o2::trd::TrapConfig::TrapRegister::mResetValue
protected

Number of bits, from 1 to 32.

Definition at line 626 of file TrapConfig.h.


The documentation for this class was generated from the following files: