3 #ifndef ALIEVE_ITSScaledModule_H
4 #define ALIEVE_ITSScaledModule_H
7 #include <Alieve/ITSModule.h>
13 /**************************************************************************/
15 /**************************************************************************/
17 class DigitScaleInfo : public TQObject, public Reve::ReferenceBackPtr
20 enum StatType_e { ST_Occup, ST_Average, ST_Rms };
22 // Bool_t fAutoUpdatePalette;
24 DigitScaleInfo(const DigitScaleInfo&); // Not implemented
25 DigitScaleInfo& operator=(const DigitScaleInfo&); // Not implemented
35 virtual ~DigitScaleInfo(){}
37 Int_t GetScale() { return fScale; }
38 void ScaleChanged(Int_t s);
40 Int_t GetStatType() { return fStatType; }
41 void StatTypeChanged(Int_t t);
43 Bool_t GetSyncPalette(){return fSyncPalette;}
44 void SetSyncPalette(Bool_t x){fSyncPalette = x;}
46 ClassDef(DigitScaleInfo, 1);
49 /**************************************************************************/
51 /**************************************************************************/
53 class ScaledDigit : public TObject
63 ScaledDigit(Int_t di, Int_t dj);
65 virtual void Dump() const;
68 /**************************************************************************/
70 /**************************************************************************/
72 class ITSScaledModule : public ITSModule
74 friend class ITSSDSubEditor;
76 map<Int_t, ScaledDigit> fDigitsMap;
78 ITSScaledModule(const ITSScaledModule&); // Not implemented
79 ITSScaledModule& operator=(const ITSScaledModule&); // Not implemented
82 Int_t fNx; // per module
85 Int_t fNCx; // per cell
88 DigitScaleInfo* fScaleInfo;
91 ITSScaledModule(Int_t gid, ITSDigitsInfo* info, DigitScaleInfo* si );
92 virtual ~ITSScaledModule();
94 virtual void DigitSelected(Int_t idx);
96 virtual void LoadQuads();
101 void GetScaleData(Int_t& cnx, Int_t& cnz, Int_t& total);
102 DigitScaleInfo* GetScaleInfo(){ return fScaleInfo; }
104 ClassDef(ITSScaledModule, 1);
105 }; // endclass ITSScaledModule