HYDRA_development_version
|
#include <hrichmappingpar.h>
Public Member Functions | |
HRichMappingPar (const Char_t *name="RichMappingParameters", const Char_t *title="Rich Mapping Parameters", const Char_t *context="RichMappingParProduction") | |
~HRichMappingPar () | |
Bool_t | setAddress (UInt_t row, UInt_t col, UInt_t adc, UInt_t apv, UInt_t ch) |
Bool_t | readline (const Char_t *buf) |
Bool_t | init (HParIo *input, Int_t *set) |
Int_t | write (HParIo *output) |
void | clear () |
void | putAsciiHeader (TString &header) |
void | write (std::fstream &fout) |
void | printParams () |
Bool_t | isValidSWAddress (Int_t row, Int_t col) |
Bool_t | isValidHWAddress (Int_t addrHW) |
Bool_t | getHWAddress (Int_t row, Int_t col, UInt_t &adc, UInt_t &apv, UInt_t &ch) |
Bool_t | getSWAddress (Int_t address, Int_t &row, Int_t &col) |
![]() | |
HParSet (const Char_t *name="", const Char_t *title="", const Char_t *context="") | |
virtual | ~HParSet () |
virtual Bool_t | init (void) |
virtual Bool_t | init (HParIo *io) |
virtual Int_t | write () |
virtual void | print () |
const Text_t * | getDetectorName () |
void | resetInputVersions () |
void | setInputVersion (Int_t v=-1, Int_t i=0) |
Int_t | getInputVersion (Int_t i) |
void | setStatic (Bool_t flag=kTRUE) |
Bool_t | isStatic () |
void | setChanged (Bool_t flag=kTRUE) |
Bool_t | hasChanged () |
void | setParamContext (const Char_t *) |
const Char_t * | getParamContext () const |
void | setAuthor (const Char_t *s) |
const Char_t * | getAuthor () const |
void | setDescription (const Char_t *s) |
const Char_t * | getDescription () const |
void | copyComment (HParSet &r) |
Private Attributes | |
Int_t | fAddrArrHW [RICH_SIZE_HW] |
Int_t | fAddrArrSW [RICH_SIZE_SW] |
Additional Inherited Members | |
![]() | |
Text_t | detName [20] |
Int_t | versions [3] |
name of the detector the container belongs to More... | |
Bool_t | status |
versions of container in the 2 possible inputs More... | |
Bool_t | changed |
static flag More... | |
TString | paramContext |
flag is kTRUE if parameters have changed More... | |
TString | author |
TString | description |
Definition at line 23 of file hrichmappingpar.h.
HRichMappingPar::HRichMappingPar | ( | const Char_t * | name = "RichMappingParameters" , |
const Char_t * | title = "Rich Mapping Parameters" , |
||
const Char_t * | context = "RichMappingParProduction" |
||
) |
|
inline |
Definition at line 36 of file hrichmappingpar.h.
|
virtual |
Reimplemented from HParSet.
Definition at line 44 of file hrichmappingpar.cc.
References RICH_SIZE_HW, and RICH_SIZE_SW.
Bool_t HRichMappingPar::getHWAddress | ( | Int_t | row, |
Int_t | col, | ||
UInt_t & | adc, | ||
UInt_t & | apv, | ||
UInt_t & | ch | ||
) |
Definition at line 198 of file hrichmappingpar.cc.
References RICH_ADC_MASK, RICH_APV_MASK, and RICH_CHANNEL_MASK.
Bool_t HRichMappingPar::getSWAddress | ( | Int_t | address, |
Int_t & | row, | ||
Int_t & | col | ||
) |
Definition at line 218 of file hrichmappingpar.cc.
References RICH_SIZE_HW.
Referenced by HRichUnpacker::execute(), and HRichUnpacker::printMapping().
|
virtual |
Reimplemented from HParSet.
Definition at line 59 of file hrichmappingpar.cc.
References HParIo::getDetParIo(), HDetParIo::init(), and input.
Bool_t HRichMappingPar::isValidHWAddress | ( | Int_t | addrHW | ) |
Definition at line 248 of file hrichmappingpar.cc.
References RICH_SIZE_HW.
Bool_t HRichMappingPar::isValidSWAddress | ( | Int_t | row, |
Int_t | col | ||
) |
Definition at line 239 of file hrichmappingpar.cc.
void HRichMappingPar::printParams | ( | void | ) |
Definition at line 160 of file hrichmappingpar.cc.
References RICH_ADC_MASK, RICH_APV_MASK, RICH_CHANNEL_MASK, and RICH_SIZE_SW.
void HRichMappingPar::putAsciiHeader | ( | TString & | header | ) |
Definition at line 189 of file hrichmappingpar.cc.
Bool_t HRichMappingPar::readline | ( | const Char_t * | buf | ) |
Definition at line 85 of file hrichmappingpar.cc.
Bool_t HRichMappingPar::setAddress | ( | UInt_t | row, |
UInt_t | col, | ||
UInt_t | adc, | ||
UInt_t | apv, | ||
UInt_t | ch | ||
) |
Definition at line 122 of file hrichmappingpar.cc.
References RICH700_MAX_COLS, RICH700_MAX_ROWS, RICH_MAX_ADCS, RICH_MAX_APVS, RICH_MAX_CHANNELS, and RICH_SIZE_HW.
|
virtual |
Reimplemented from HParSet.
Definition at line 74 of file hrichmappingpar.cc.
References HParIo::getDetParIo(), and HDetParIo::write().
void HRichMappingPar::write | ( | std::fstream & | fout | ) |
|
private |
Definition at line 27 of file hrichmappingpar.h.
|
private |
Definition at line 28 of file hrichmappingpar.h.