StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
digplane.cxx
1 // //
3 // //
4 // DIGPlane //
5 // //
6 // Plane/Chip class //
7 // contains geometrical information on the chip //
8 // (number of pixels, pitch, epitaxial layer thickness etc.) //
9 // //
10 // //
11 // //
13 #include <digplane.h>
14 
15 #include <TROOT.h> // for gROOT object
16 #include <TMath.h>
17 #include <TMatrixD.h>
18 #include <TCanvas.h>
19 #include <TGraph.h>
20 #include <TAxis.h>
21 #include <TRandom3.h>
22 #include <TFile.h>
23 #include <TTree.h>
24 #include <TBranch.h>
25 #include <TClonesArray.h>
26 using namespace std;
27 
28 //==============================================================================
29 ClassImp(DIGPlane)
30 
32 {
33  //
34  // default constructor
35  //
36  fPitchX = 0.0;
37  fPitchY = 0.0;
38  fXdimension = 0.0;
39  fYdimension = 0.0;
40  fZdimension = 0.0;
41  fNpixelsX = 0;
42  fNpixelsY = 0;
43 }
44 //______________________________________________________________________________
45 //
46 
47 DIGPlane::~DIGPlane() { //
48  // virtual destructor
49  //
50  // delete fLayers;
51 }
52 
53 //______________________________________________________________________________
54 //
55 
56 void DIGPlane::SetDimensions(Float_t Xdimension,Float_t Ydimension,Float_t Zdimension) {
57  //
58  // Set dimensions of the Plane
59  //
60  fXdimension = Xdimension;
61  fYdimension = Ydimension;
62  fZdimension = Zdimension;
63 }
64 
65 //______________________________________________________________________________
66 //
67 void DIGPlane::SetPitch(Float_t PitchX,Float_t PitchY){
68  fPitchX = PitchX;
69  fPitchY = PitchY;
70 }
71 //______________________________________________________________________________
72 //
73 void DIGPlane::SetNpixels(Int_t NpixelsX,Int_t NpixelsY){
74  fNpixelsX = NpixelsX;
75  fNpixelsY = NpixelsY;
76 }
77 //______________________________________________________________________________
78 //
79 void DIGPlane::SetNoiseElectrons(Float_t NoiseElectrons){
80  fNoiseElectrons = NoiseElectrons;
81 }
82 //______________________________________________________________________________
83 //
84 void DIGPlane::SetTemperature(Float_t Temperature){
85  fTemperature = Temperature;
86 }
87 //______________________________________________________________________________
88 //
89 void DIGPlane::SetIonizationEnergy(Float_t IonizationEnergy){
90  fIonizationEnergy = IonizationEnergy;
91 }
92 //______________________________________________________________________________
93 //
94 void DIGPlane::SetSegmentSize(Float_t SegmentSize){
95  fSegmentSize = SegmentSize;
96 }
97 //______________________________________________________________________________
98 //
99 void DIGPlane::SetMaximumSegmentSize(Float_t MaximumSegmentSize){
100  fMaximumSegmentSize = MaximumSegmentSize;
101 }
102 //______________________________________________________________________________
103 //
104 void DIGPlane::SetMaximumChargePerSegment(Float_t MaximumChargePerSegment){
105  fMaximumChargePerSegment = MaximumChargePerSegment;
106 }
107 //______________________________________________________________________________
108 //
109 void DIGPlane::SetDiffusionMaximumRange(Float_t DiffusionMaximumRangeInX,Float_t DiffusionMaximumRangeInY){
110  fDiffusionMaximumRangeInX = DiffusionMaximumRangeInX;
111  fDiffusionMaximumRangeInY = DiffusionMaximumRangeInY;
112 }
113 //______________________________________________________________________________
114 //
115 void DIGPlane::SetReflexionCoefficient(Float_t ReflexionCoefficient){
116  fReflexionCoefficient = ReflexionCoefficient;
117 }
118 //______________________________________________________________________________
119 //
120 void DIGPlane::SetBasicModel_SigmaTenMicrons(Float_t BasicModel_SigmaTenMicrons){
121  fBasicModel_SigmaTenMicrons = BasicModel_SigmaTenMicrons;
122 }
123 //______________________________________________________________________________
124 //
125 
126 void DIGPlane::PrintInfo() {
127  std::cout<<"---------Plane properties------------- "<<endl;
128  std::cout<<"fPitchX fPitchY fXdimension fYdimension fZdimension "<<endl;
129  std::cout<<fPitchX<<" "<< fPitchY<<" "<< fXdimension<<" "<< fYdimension<<" "<< fZdimension <<endl;
130  std::cout<<"fNpixelsX fNpixelsY fNoiseElectrons fTemperature "<<endl;
131  std::cout<<fNpixelsX<<" "<< fNpixelsY<<" "<< fNoiseElectrons<<" "<< fTemperature <<endl;
132  std::cout<<"fIonizationEnergy fSegmentSize fMaximumSegmentSize fMaximumChargePerSegment "<<endl;
133  std::cout<<fIonizationEnergy <<" "<<fSegmentSize<<" "<< fMaximumSegmentSize<<" "<< fMaximumChargePerSegment <<endl;
134  std::cout<<"fDiffusionMaximumRangeInX fDiffusionMaximumRangeInY fReflexionCoefficient "<<endl;
135  std::cout<<fDiffusionMaximumRangeInX<<" "<< fDiffusionMaximumRangeInY <<" "<<fReflexionCoefficient <<endl;
136  std::cout<<"fBasicModel_SigmaTenMicrons"<<endl;
137  std::cout<<fBasicModel_SigmaTenMicrons<<endl;
138 
139 }
140 
141 
142 //==============================================================================