StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSpaNoise.hh
1 // $Id: StSpaNoise.hh,v 1.2 2015/06/24 17:37:21 smirnovd Exp $
2 //
3 // $Log: StSpaNoise.hh,v $
4 // Revision 1.2 2015/06/24 17:37:21 smirnovd
5 // StSstUtil: Prepend included headers with path to submodule
6 //
7 // Revision 1.1 2015/06/23 16:26:19 jeromel
8 // First version created from the SSD code and reshaped
9 //
10 // Revision 1.1 2015/04/19 17:30:31 bouchet
11 // initial commit ; SST codes
12 //
13 // Revision 1.1 2015/01/29 20:16:37 bouchet
14 // SSD utils for hit reconstruction
15 //
16 // Revision 1.1 2006/10/16 16:43:29 bouchet
17 // StSstUtil regroups now methods for the classes StSstStrip, StSstCluster and StSstPoint
18 //
19 // Revision 1.2 2005/05/13 08:39:33 lmartin
20 // CVS tags added
21 //
22 
23 #ifndef STSPANOISE_HH
24 #define STSPANOISE_HH
25 # include "St_base/Stiostream.h"
26 # include <stdlib.h>
27 # include <math.h>
28 #include "Rtypes.h"
29 
30 class StSpaNoise {
31  public:
32  StSpaNoise(Int_t rNStrip, Int_t rPedestal, Int_t rSigma) :
33  mNStrip(rNStrip), mPedestal(rPedestal), mSigma(rSigma), mNoiseValue(0), mPrevNoise(0), mNextNoise(0),
34  mIsActive(1) {}
35 
36  ~StSpaNoise() {}
37 
38  void setNStrip(Int_t rNStrip){ mNStrip = rNStrip; }
39  void setPedestal(Int_t rPedestal){ mPedestal = rPedestal; }
40  void setSigma(Int_t rSigma){ mSigma = rSigma; }
41  void setNoiseValue(Int_t rNoiseValue){ mNoiseValue = rNoiseValue; }
42  void setIsActive(Int_t rIsActive){ mIsActive = rIsActive; }
43  void setPrevNoise(StSpaNoise *rPrevNoise){ mPrevNoise = rPrevNoise; }
44  void setNextNoise(StSpaNoise *rNextNoise){ mNextNoise = rNextNoise; }
45  Int_t getNStrip(){ return mNStrip; }
46  Int_t getPedestal(){ return mPedestal; }
47  Int_t getSigma(){ return mSigma; }
48  Int_t getNoiseValue(){ return mNoiseValue; }
49  Int_t getIsActive(){ return mIsActive; }
50  StSpaNoise* getPrevNoise(){ return mPrevNoise; }
51  StSpaNoise* getNextNoise(){ return mNextNoise; }
52  StSpaNoise* giveCopy();
53 
54 private:
55  Int_t mNStrip;
56  Int_t mPedestal;
57  Int_t mSigma;
58  Int_t mNoiseValue;
59  StSpaNoise *mPrevNoise;
60  StSpaNoise *mNextNoise;
61  Int_t mIsActive;
62 
63 };
64 #endif