// -*- mode: c++ -*- // $Id: BrSiDig.h,v 1.3 2001/06/28 16:43:08 cholm Exp $ // // /////////////////////////////////////////////////////////////////////// // // // BrSiDig // // // // BRAHMS Raw Data Element for Multiplicity Si counters // // // // Author : F.Videbaek // // Created : February 2000 // // Version : 1.0 // // Changed : // // // /////////////////////////////////////////////////////////////////////// #ifndef BRAT_BrSiDig #define BRAT_BrSiDig #ifndef ROOT_TObject #include "TObject.h" #endif #ifndef BRAT_BrDataObject #include "BrDataObject.h" #endif // // There can be a total of 288 channels from the silicon array. // // 6 rows * 6 wafers/row * 8 channels/wafer // // The 8 channels per wafer are composed of 7 strip channels and 1 // temperature readout channel // #define BR_SI_CHAN_MAX 288 class BrSiDig: public BrDataObject { private: Int_t fNumSiChan; // Actual number of channels Short_t fAdc[BR_SI_CHAN_MAX]; // Si ADC Channels public: BrSiDig(); BrSiDig(const Char_t* name, const Char_t* title); virtual ~BrSiDig() { } virtual Int_t GetNumberOfChannels(void) const { return fNumSiChan; } virtual Short_t GetAdc(const Int_t itube) const ; virtual void SetAdc(const Int_t itube, const Short_t val); virtual Bool_t IsSortable() const {return kTRUE;} virtual void Clear(Option_t* option=""); virtual void Print(Option_t* option="R") const; //*MENU* ClassDef(BrSiDig,1) // BRAHMS Si Raw Digitized data class } ; #endif // // $Log: BrSiDig.h,v $ // Revision 1.3 2001/06/28 16:43:08 cholm // Added initialisation and fleshed out a couple of methods. Also added // Clear method to clear the internal array easily. // // Revision 1.2 2001/06/25 14:26:51 cholm // Made Print conform to TObject // // Revision 1.1.1.1 2001/06/21 14:55:01 hagel // Initial revision of brat2 // // Revision 1.3 2001/05/31 01:44:52 cholm // Second rewamp of this directory. All RDO modules use the common // BrMultRdoModule, and they both write BrMultRdo Objects. Also introduced // ABC for Br[Tile|Si][Parameters|Calibration] since they have a lot in common, // and the code can be made more efficient this way. // // A possible further thing to do, is to make an ABC for the CentModules, and // the corresponding calibration modules, since they are very VERY similar. // However, the current module BrMultCentModule is in the way. Need to talk // to Steve about that. // // Revision 1.2 2001/04/06 19:49:58 cholm // This class now has all needed data members. Please note that this version // is not binary compatible with previous versions. // // Revision 1.1 2001/01/29 20:46:20 cholm // Added the two classes BrSiDig and BrTileDig, which are basically a renaming // of the classes BrDigSi and BrDigTiles, however, the new ones fit in with // the intented naming scheme. The two old classes are kept for backward // compatiblity , but can be faced out soon. // //