StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSpaListNoise.hh
1 // $Id: StSpaListNoise.hh,v 1.2 2009/02/23 21:10:40 bouchet Exp $
2 //
3 // $Log: StSpaListNoise.hh,v $
4 // Revision 1.2 2009/02/23 21:10:40 bouchet
5 // increase NSaturationSignal to reflect the energy increase of the GEANT hit
6 //
7 // Revision 1.1 2006/10/16 16:43:29 bouchet
8 // StSsdUtil regroups now methods for the classes StSsdStrip, StSsdCluster and StSsdPoint
9 //
10 // Revision 1.3 2006/09/15 21:09:52 bouchet
11 // read the noise and pedestal from ssdStripCalib
12 //
13 // Revision 1.2 2005/05/13 08:39:32 lmartin
14 // CVS tags added
15 //
16 
17 #ifndef STSPALISTNOISE_HH
18 #define STSPALISTNOISE_HH
19 #include <stdlib.h>
20 #include <math.h>
21 #include "Rtypes.h"
22 #include "StSpaNoise.hh"
23 #include "StSsdStripList.hh"
24 
26 {
27  public:
29  ~StSpaListNoise();
30  StSpaNoise* next(StSpaNoise *ptr);
31  StSpaNoise* prev(StSpaNoise *ptr);
32  StSpaNoise* first();
33  StSpaNoise* last();
34  Int_t addNewNoise(StSpaNoise *ptr);
35  void setIsActive(Int_t rIsActive, Int_t rNStrip);
36  StSpaListNoise* addListNoise(StSpaListNoise *list);
37  void exchangeTwoNoise(StSpaNoise *ptr1, StSpaNoise *ptr2);
38  void sortStrip();
39  Int_t removeNoise(StSpaNoise *ptr);
40  Int_t getSize();
41  void addSignal(StSsdStripList *ptr, Long_t nElectronInAMip,Long_t adcDynamic);
42  void substractPedestal();
43  void convertAnalogToDigit(Long_t nElectronInAMip,Long_t adcDynamic,
44  Long_t nbitEncoding,Float_t daqCutValue);
45  void zeroSubstraction();
46 
47 private:
48  Int_t mListLength;
49  StSpaNoise *mFirstS;
50  StSpaNoise *mLastS;
51 };
52 #endif