StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSpaNoise.hh
1 // $Id: StSpaNoise.hh,v 1.1 2006/10/16 16:43:29 bouchet Exp $
2 //
3 // $Log: StSpaNoise.hh,v $
4 // Revision 1.1 2006/10/16 16:43:29 bouchet
5 // StSsdUtil regroups now methods for the classes StSsdStrip, StSsdCluster and StSsdPoint
6 //
7 // Revision 1.2 2005/05/13 08:39:33 lmartin
8 // CVS tags added
9 //
10 
11 #ifndef STSPANOISE_HH
12 #define STSPANOISE_HH
13 # include "Stiostream.h"
14 # include <stdlib.h>
15 # include <math.h>
16 #include "Rtypes.h"
17 
18 class StSpaNoise {
19  public:
20  StSpaNoise(Int_t rNStrip, Int_t rPedestal, Int_t rSigma) :
21  mNStrip(rNStrip), mPedestal(rPedestal), mSigma(rSigma), mNoiseValue(0), mPrevNoise(0), mNextNoise(0),
22  mIsActive(1) {}
23 
24  ~StSpaNoise() {}
25 
26  void setNStrip(Int_t rNStrip){ mNStrip = rNStrip; }
27  void setPedestal(Int_t rPedestal){ mPedestal = rPedestal; }
28  void setSigma(Int_t rSigma){ mSigma = rSigma; }
29  void setNoiseValue(Int_t rNoiseValue){ mNoiseValue = rNoiseValue; }
30  void setIsActive(Int_t rIsActive){ mIsActive = rIsActive; }
31  void setPrevNoise(StSpaNoise *rPrevNoise){ mPrevNoise = rPrevNoise; }
32  void setNextNoise(StSpaNoise *rNextNoise){ mNextNoise = rNextNoise; }
33  Int_t getNStrip(){ return mNStrip; }
34  Int_t getPedestal(){ return mPedestal; }
35  Int_t getSigma(){ return mSigma; }
36  Int_t getNoiseValue(){ return mNoiseValue; }
37  Int_t getIsActive(){ return mIsActive; }
38  StSpaNoise* getPrevNoise(){ return mPrevNoise; }
39  StSpaNoise* getNextNoise(){ return mNextNoise; }
40  StSpaNoise* giveCopy();
41 
42 private:
43  Int_t mNStrip;
44  Int_t mPedestal;
45  Int_t mSigma;
46  Int_t mNoiseValue;
47  StSpaNoise *mPrevNoise;
48  StSpaNoise *mNextNoise;
49  Int_t mIsActive;
50 
51 };
52 #endif