StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
digadc.h
1 #ifndef MAPS_ADC_H
2 #define MAPS_ADC_H
3 
4 #include <TNamed.h>
5 #include <TList.h>
6 #include <TGraph.h>
7 #include "Riostream.h"
8 #include "vector"
9 
10 // ROOT classes
11 #include "TString.h"
12 #include "TObject.h"
13 #include "TVector.h"
14 #include "TFile.h"
15 #include "TSystem.h"
16 #include "TRandom.h"
17 #include "TH1.h"
18 #include "TH2.h"
19 #include "TObjArray.h"
20 #include "TTree.h"
21 #include "TBranch.h"
22 #include "TClonesArray.h"
23 using namespace std;
24 //class DIGADC;
25 
26 class DIGInitialize;
27 class DIGPlane;
28 class DIGADC;
29 class DIGBeam;
30 class DIGTransport;
31 class DIGParticle;
32 class DIGAction;
33 class DIGEvent;
34 class DIGMAPS;
35 //==============================================================================
36 class DIGADC : public TObject {
37  public:
38  DIGADC();
39  // DIGPlane(char *name,char *title);
40  virtual ~DIGADC();
41 
42  // void AddLayer(char *name, Float_t radius, Float_t radL, Float_t phiRes=99999, Float_t zRes=99999, Float_t integrationTime=-1.);
43 
44 
45  void SetNbits(Int_t Nbits);
46  void SetNThresholds(Int_t NThresholds);
47  void SetADC_linear(Bool_t ADC_linear);
48  void SetLSB(Float_t LSB);
49  void SetElectron_Conversion(Float_t Electron_Conversion);
50  void SetADC_thresholds(Float_t ADC_thresholds[], Int_t NThresholds);
51 
52  void PrintInfo();
53  Int_t GetNbits(){return fNbits;}
54  Int_t GetNThresholds(){return fNThresholds;}
55  Bool_t GetADC_linear(){return fADC_linear;}
56  Float_t GetLSB(){return fLSB;}
57  Float_t GetElectron_Conversion(){return fElectron_Conversion;}
58  Float_t *GetADC_thresholds(){return fADC_thresholds;}
59  // Float_t Get(){return ;}
60 
61 
62  protected:
63  enum {adcnum = 4096}; //12bits maximum
64  Int_t fNbits;
65  Int_t fNThresholds; // actually (2^Nbits)-1
66  Bool_t fADC_linear;
67  Float_t fLSB;
68  Float_t fElectron_Conversion;
69  Float_t fADC_thresholds[adcnum]; //in S/N units.
70 
71 
72 
73  ClassDef(DIGADC,1);
74 };
75 
76 //==============================================================================
77 
78 #endif
Definition: digadc.h:36