StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
digreadoutmap.h
1 #ifndef MAPS_DIGREADOUTMAP_H
2 #define MAPS_DIGREADOUTMAP_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 
25 class DIGInitialize;
26 class DIGPlane;
27 class DIGADC;
28 class DIGBeam;
29 class DIGTransport;
30 class DIGParticle;
31 class DIGAction;
32 class DIGEvent;
33 class DIGMAPS;
34 //==============================================================================
35 class DIGReadoutmap : public TObject {
36  public:
37  DIGReadoutmap();
38  DIGReadoutmap(Int_t Npixels);
39  DIGReadoutmap(DIGReadoutmap& adigreadoutmap);
40  virtual ~DIGReadoutmap();
41  void Clear(const Option_t * /*option*/ = "");
42  void PrintInfo();
43  void PrintOuput(Int_t Nx ,Int_t Ny);
44 
45  Int_t GetNpixels(){return fNpixels;}
46  std::vector<Int_t> GetPixelMap(){return fPixelMap;}
47  std::vector<Float_t> GetAnalogCharge(){return fAnalogChargeMap;}
48  std::vector<Int_t> GetDigitalCharge(){return fDigitalChargeMap;}
49 
50  void SetNpixels(Int_t Npixels){fNpixels = Npixels;}
51  void AddPixel(Float_t AnalogCharge, Int_t PixelNumber);
52  void UpdatePixel(Float_t AnalogCharge, Int_t PixelNumber);
53  void AnalogToDigitalconversion(DIGADC *myDIGADC, DIGPlane *myDIGPlane );
54 
55  protected:
56 
57  Int_t fNpixels;
58  vector< Int_t > fPixelMap;
59  vector< Float_t > fAnalogChargeMap;
60  vector< Int_t > fDigitalChargeMap;
61 
62 
63  ClassDef(DIGReadoutmap,1);
64 };
65 
66 
67 
68 //==============================================================================
69 
70 #endif
Definition: digadc.h:36