//_HADES_CLASS_DESCRIPTION //////////////////////////////////////////////////////////////////////////// //*-- AUTHOR : I. Koenig //////////////////////////////////////////////////////////////////////////// // HEmcCellStatusPar // // Container class for EMC cell status parameters // (Condition Style) // // cellStatus: Lookup table for the cell status // 0: cell is OFF (delivers no signal on one or both sides) // 1: cell is ON (delivers signals on both sides) // By default all cells are ON. // Used in EMC hit finder // //////////////////////////////////////////////////////////////////////////// #include "hemccellstatuspar.h" #include "hparamlist.h" using namespace std; #include ClassImp(HEmcCellStatusPar) HEmcCellStatusPar::HEmcCellStatusPar(const Char_t* name,const Char_t* title, const Char_t* context) : HParCond(name,title,context) { cellStatus.Set(163*6); clear(); } void HEmcCellStatusPar::clear() { // Sets all cells ON cellStatus.Reset(1); status=kFALSE; resetInputVersions(); changed=kFALSE; } void HEmcCellStatusPar::setCellStatus(Int_t sec, Int_t cell, Int_t a) { // Sets the cell status if (sec<0||sec>5||cell<0||cell>163) { Error("setCellStatus","Address out of bounds"); } else { cellStatus[163*sec+cell]=a; } } void HEmcCellStatusPar::putParams(HParamList* l) { // Puts all parameters to the list used by the io; if (!l) return; l->add("cellStatus", cellStatus); } Bool_t HEmcCellStatusPar::getParams(HParamList* l) { // Retrieves from the list all parameters needed if (!l) return kFALSE; if (!(l->fill("cellStatus", &cellStatus))) return kFALSE; return kTRUE; } void HEmcCellStatusPar::printCellParams() { // Shows the status of all cells cout<<"---- Format: sector status_of_cells ----"<