StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSpaListNoise.hh
1 // $Id: StSpaListNoise.hh,v 1.1 2015/06/23 16:26:19 jeromel Exp $
2 //
3 // $Log: StSpaListNoise.hh,v $
4 // Revision 1.1 2015/06/23 16:26:19 jeromel
5 // First version created from the SSD code and reshaped
6 //
7 // Revision 1.1 2015/04/19 17:30:31 bouchet
8 // initial commit ; SST codes
9 //
10 // Revision 1.1 2015/01/29 20:16:36 bouchet
11 // SSD utils for hit reconstruction
12 //
13 // Revision 1.2 2009/02/23 21:10:40 bouchet
14 // increase NSaturationSignal to reflect the energy increase of the GEANT hit
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.3 2006/09/15 21:09:52 bouchet
20 // read the noise and pedestal from ssdStripCalib
21 //
22 // Revision 1.2 2005/05/13 08:39:32 lmartin
23 // CVS tags added
24 //
25 
26 #ifndef STSPALISTNOISE_HH
27 #define STSPALISTNOISE_HH
28 #include <stdlib.h>
29 #include <math.h>
30 #include "Rtypes.h"
31 #include "StSpaNoise.hh"
32 #include "StSstStripList.hh"
33 
34 class StSpaListNoise
35 {
36  public:
38  ~StSpaListNoise();
39  StSpaNoise* next(StSpaNoise *ptr);
40  StSpaNoise* prev(StSpaNoise *ptr);
41  StSpaNoise* first();
42  StSpaNoise* last();
43  Int_t addNewNoise(StSpaNoise *ptr);
44  void setIsActive(Int_t rIsActive, Int_t rNStrip);
45  StSpaListNoise* addListNoise(StSpaListNoise *list);
46  void exchangeTwoNoise(StSpaNoise *ptr1, StSpaNoise *ptr2);
47  void sortStrip();
48  Int_t removeNoise(StSpaNoise *ptr);
49  Int_t getSize();
50  void addSignal(StSstStripList *ptr, Long_t nElectronInAMip,Long_t adcDynamic);
51  void substractPedestal();
52  void convertAnalogToDigit(Long_t nElectronInAMip,Long_t adcDynamic,
53  Long_t nbitEncoding,Float_t daqCutValue);
54  void zeroSubstraction();
55 
56 private:
57  Int_t mListLength;
58  StSpaNoise *mFirstS;
59  StSpaNoise *mLastS;
60 };
61 #endif