00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef STSPANOISE_HH
00012 #define STSPANOISE_HH
00013 # include "Stiostream.h"
00014 # include <stdlib.h>
00015 # include <math.h>
00016 #include "Rtypes.h"
00017
00018 class StSpaNoise {
00019 public:
00020 StSpaNoise(Int_t rNStrip, Int_t rPedestal, Int_t rSigma) :
00021 mNStrip(rNStrip), mPedestal(rPedestal), mSigma(rSigma), mNoiseValue(0), mPrevNoise(0), mNextNoise(0),
00022 mIsActive(1) {}
00023
00024 ~StSpaNoise() {}
00025
00026 void setNStrip(Int_t rNStrip){ mNStrip = rNStrip; }
00027 void setPedestal(Int_t rPedestal){ mPedestal = rPedestal; }
00028 void setSigma(Int_t rSigma){ mSigma = rSigma; }
00029 void setNoiseValue(Int_t rNoiseValue){ mNoiseValue = rNoiseValue; }
00030 void setIsActive(Int_t rIsActive){ mIsActive = rIsActive; }
00031 void setPrevNoise(StSpaNoise *rPrevNoise){ mPrevNoise = rPrevNoise; }
00032 void setNextNoise(StSpaNoise *rNextNoise){ mNextNoise = rNextNoise; }
00033 Int_t getNStrip(){ return mNStrip; }
00034 Int_t getPedestal(){ return mPedestal; }
00035 Int_t getSigma(){ return mSigma; }
00036 Int_t getNoiseValue(){ return mNoiseValue; }
00037 Int_t getIsActive(){ return mIsActive; }
00038 StSpaNoise* getPrevNoise(){ return mPrevNoise; }
00039 StSpaNoise* getNextNoise(){ return mNextNoise; }
00040 StSpaNoise* giveCopy();
00041
00042 private:
00043 Int_t mNStrip;
00044 Int_t mPedestal;
00045 Int_t mSigma;
00046 Int_t mNoiseValue;
00047 StSpaNoise *mPrevNoise;
00048 StSpaNoise *mNextNoise;
00049 Int_t mIsActive;
00050
00051 };
00052 #endif