#ifndef HSTSSTATUSPAR_H #define HSTSSTATUSPAR_H #include "hdetpario.h" #include "hparcond.h" #include "hstscal.h" #include "stsdef.h" #include #include class HStsStatusPar : public HParCond { protected: // Parameters needed for digitizations of straws Int_t feb_status[STS_MAX_MODULES][STS_MAX_LAYERS][STS_MAX_UDCELLS]; //! feb status: 0 - neutral public: HStsStatusPar(const Char_t *name = "StsStatusPar", const Char_t *title = "Straw status parameters for Forward Straw Detector", const Char_t *context = "StsStatusParProduction"); // variables: // n - index number // m - mod // l - layer // s - straw // ud - sub-cell // c - cell // status - status Int_t getStrawStatus(Int_t m, Int_t l, Int_t c) { return feb_status[m][l][c]; } Int_t getStrawStatus(Int_t m, Int_t l, Int_t s, Int_t ud) { return feb_status[m][l][HStsCal::calcStrawIndex(s, ud)]; }; void setStrawStatus(Int_t m, Int_t l, Int_t c, Int_t status) { feb_status[m][l][c] = status; } void setStrawStatus(Int_t m, Int_t l, Int_t s, Int_t ud, Int_t status) { feb_status[m][l][HStsCal::calcStrawIndex(s, ud)] = status; } void putParams(HParamList *); Bool_t getParams(HParamList *); void clear(); void printParams(); private: static const Int_t max_straws = STS_MAX_MODULES * STS_MAX_LAYERS * STS_MAX_UDCELLS; ClassDef(HStsStatusPar, 1); // Container for the Forward Straw Detector digitization }; #endif /* !HSTSSTATUSPAR_H */