| 1 |
|
|---|
| 2 | # tell HistoManger where to find the histograms:
|
|---|
| 3 | hm.selectStore("xrayfluo.his")
|
|---|
| 4 |
|
|---|
| 5 | # ... and load them into memory:
|
|---|
| 6 | histoGamDet = hm.load1D(1)
|
|---|
| 7 | histoGamDetPre = hm.load1D(6)
|
|---|
| 8 | histoGamLeavSam = hm.load1D(4)
|
|---|
| 9 | histoEleLeavSam = hm.load1D(5)
|
|---|
| 10 | histoProtRD = hm.load1D(8)
|
|---|
| 11 | histoProtLS = hm.load1D(9)
|
|---|
| 12 | histoGamBornSam = hm.load1D(2)
|
|---|
| 13 | histoEleBornSam = hm.load1D(3)
|
|---|
| 14 | histoSpectrum = hm.load1D(7)
|
|---|
| 15 |
|
|---|
| 16 | # set plotter to 4*2 zones
|
|---|
| 17 | pl.zone(5,2)
|
|---|
| 18 | # ... and plot the histograms
|
|---|
| 19 | hplot(histoGamDet)
|
|---|
| 20 | hplot(histoGamDetPre)
|
|---|
| 21 | hplot(histoGamLeavSam)
|
|---|
| 22 | hplot(histoEleLeavSam)
|
|---|
| 23 | hplot(histoProtRD)
|
|---|
| 24 | hplot(histoProtLS)
|
|---|
| 25 | hplot(histoGamBornSam)
|
|---|
| 26 | hplot(histoEleBornSam)
|
|---|
| 27 | hplot(histoSpectrum)
|
|---|
| 28 |
|
|---|
| 29 | pl.psPrint("histos.ps")
|
|---|
| 30 |
|
|---|
| 31 | # prompt user for <return>
|
|---|
| 32 | wait()
|
|---|
| 33 |
|
|---|
| 34 | # set plotter to 1*1 zones
|
|---|
| 35 | pl.zone(1,1)
|
|---|
| 36 |
|
|---|
| 37 | #titols:
|
|---|
| 38 | pl.xAxisOption ("title","energy of the electrons generated in the sample")
|
|---|
| 39 | pl.xAxisOption ("label","E (keV)")
|
|---|
| 40 | pl.yAxisOption("title","counts")
|
|---|
| 41 |
|
|---|
| 42 | pl.textStyle("fontsize","10.")
|
|---|
| 43 | #color of the histogram
|
|---|
| 44 | pl.dataStyle("linecolor", "red")
|
|---|
| 45 |
|
|---|
| 46 | #draw a grid even on the top and on the right of the plot
|
|---|
| 47 | #pl.zoneOption("mirrorAxis","yes")
|
|---|
| 48 |
|
|---|
| 49 | #legend
|
|---|
| 50 | pl.dataOption("legend","EleBorn")
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | hplot(histoEleBornSam)
|
|---|
| 54 |
|
|---|
| 55 | wait()
|
|---|
| 56 | pl.psPrint("hEleBornSam.ps")
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 | #titols:
|
|---|
| 61 | pl.xAxisOption ("title","energy of the gammas generated in the sample")
|
|---|
| 62 | pl.xAxisOption ("label","E (keV)")
|
|---|
| 63 | pl.yAxisOption("title","counts")
|
|---|
| 64 |
|
|---|
| 65 | pl.textStyle("fontsize","10.")
|
|---|
| 66 | #colore dell'istogramma
|
|---|
| 67 | pl.dataStyle("linecolor", "blue")
|
|---|
| 68 |
|
|---|
| 69 | #draw a grid even on the top and on the right of the plot
|
|---|
| 70 | #pl.zoneOption("mirrorAxis","yes")
|
|---|
| 71 |
|
|---|
| 72 | #legend
|
|---|
| 73 | pl.dataOption("legend","GamBorn")
|
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 | hplot(histoGamBornSam)
|
|---|
| 77 | wait()
|
|---|
| 78 | pl.psPrint("hGamBornSam.ps")
|
|---|
| 79 |
|
|---|
| 80 | #titols:
|
|---|
| 81 | pl.xAxisOption ("title","energy deposit in the detector")
|
|---|
| 82 | pl.xAxisOption ("label","E (keV)")
|
|---|
| 83 | pl.yAxisOption("title","counts")
|
|---|
| 84 |
|
|---|
| 85 | pl.textStyle("fontsize","10.")
|
|---|
| 86 | #colore dell'istogramma
|
|---|
| 87 | pl.dataStyle("linecolor", "green")
|
|---|
| 88 |
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 | pl.dataOption("legend","EnergyDep")
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 | hplot(histoGamDet)
|
|---|
| 95 | wait()
|
|---|
| 96 | pl.psPrint("histoGamDet.ps")
|
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 | pl.xAxisOption ("title","spectrum of the incident photons")
|
|---|
| 100 | pl.xAxisOption ("label","E (keV)")
|
|---|
| 101 | pl.yAxisOption("title","counts")
|
|---|
| 102 |
|
|---|
| 103 | pl.textStyle("fontsize","10.")
|
|---|
| 104 |
|
|---|
| 105 | pl.dataStyle("linecolor", "yellow")
|
|---|
| 106 |
|
|---|
| 107 | #pl.zoneOption("mirrorAxis","yes")
|
|---|
| 108 |
|
|---|
| 109 | pl.dataOption("legend","B-Flare")
|
|---|
| 110 |
|
|---|
| 111 |
|
|---|
| 112 | hplot(histoSpectrum)
|
|---|
| 113 | wait()
|
|---|
| 114 | pl.psPrint("hSpectrum.ps")
|
|---|
| 115 |
|
|---|
| 116 |
|
|---|
| 117 | pl.xAxisOption ("title","spectrum of the photons at the detector")
|
|---|
| 118 | pl.xAxisOption ("label","E (keV)")
|
|---|
| 119 | pl.yAxisOption("title","counts")
|
|---|
| 120 |
|
|---|
| 121 | pl.textStyle("fontsize","10.")
|
|---|
| 122 |
|
|---|
| 123 | pl.dataStyle("linecolor", "blue")
|
|---|
| 124 |
|
|---|
| 125 | #pl.zoneOption("mirrorAxis","yes")
|
|---|
| 126 |
|
|---|
| 127 | pl.dataOption("legend","photonsDet")
|
|---|
| 128 |
|
|---|
| 129 |
|
|---|
| 130 | hplot(histoGamDetPre)
|
|---|
| 131 | wait()
|
|---|
| 132 | pl.psPrint("hGamDetPre.ps")
|
|---|
| 133 |
|
|---|
| 134 | pl.xAxisOption ("title","spectrum of the electrons leaving the sample")
|
|---|
| 135 | pl.xAxisOption ("label","E (keV)")
|
|---|
| 136 | pl.yAxisOption("title","counts")
|
|---|
| 137 |
|
|---|
| 138 | pl.textStyle("fontsize","10.")
|
|---|
| 139 |
|
|---|
| 140 | pl.dataStyle("linecolor", "red")
|
|---|
| 141 |
|
|---|
| 142 | #pl.zoneOption("mirrorAxis","yes")
|
|---|
| 143 |
|
|---|
| 144 | pl.dataOption("legend","electronsLeav")
|
|---|
| 145 |
|
|---|
| 146 | hplot(histoEleLeavSam)
|
|---|
| 147 | wait()
|
|---|
| 148 | pl.psPrint("hEleLeav.ps")
|
|---|
| 149 |
|
|---|
| 150 | pl.xAxisOption ("title","spectrum of the photons leaving the sample")
|
|---|
| 151 | pl.xAxisOption ("label","E (keV)")
|
|---|
| 152 | pl.yAxisOption("title","counts")
|
|---|
| 153 |
|
|---|
| 154 | pl.textStyle("fontsize","10.")
|
|---|
| 155 | #colore dell'istogramma
|
|---|
| 156 | pl.dataStyle("linecolor", "red")
|
|---|
| 157 |
|
|---|
| 158 | #disegna il reticolo anche sopra e a destra
|
|---|
| 159 | #pl.zoneOption("mirrorAxis","yes")
|
|---|
| 160 |
|
|---|
| 161 | pl.dataOption("legend","photonsLeav")
|
|---|
| 162 |
|
|---|
| 163 | hplot(histoGamLeavSam)
|
|---|
| 164 | wait()
|
|---|
| 165 | pl.psPrint("hGamLeav.ps")
|
|---|
| 166 |
|
|---|
| 167 | pl.xAxisOption ("title","history of photons")
|
|---|
| 168 | pl.xAxisOption ("label","E (keV)")
|
|---|
| 169 | pl.yAxisOption("title","counts")
|
|---|
| 170 |
|
|---|
| 171 | pl.dataStyle("linecolor", "yellow")
|
|---|
| 172 |
|
|---|
| 173 | pl.dataOption("legend","photonsBorn")
|
|---|
| 174 |
|
|---|
| 175 | hplot(histoGamBornSam)
|
|---|
| 176 |
|
|---|
| 177 | pl.dataStyle("linecolor", "red")
|
|---|
| 178 |
|
|---|
| 179 | pl.dataOption("legend","photonsLeav")
|
|---|
| 180 |
|
|---|
| 181 | v1=vm.from1D(histoGamLeavSam)
|
|---|
| 182 |
|
|---|
| 183 | pl.overlay(v1)
|
|---|
| 184 |
|
|---|
| 185 | pl.dataStyle("linecolor", "blue")
|
|---|
| 186 |
|
|---|
| 187 | pl.dataOption("legend","photonsDet")
|
|---|
| 188 |
|
|---|
| 189 | v2=vm.from1D(histoGamDetPre)
|
|---|
| 190 |
|
|---|
| 191 | pl.overlay(v2)
|
|---|
| 192 |
|
|---|
| 193 | wait()
|
|---|
| 194 | pl.psPrint("history.ps")
|
|---|
| 195 |
|
|---|
| 196 |
|
|---|
| 197 |
|
|---|
| 198 |
|
|---|
| 199 |
|
|---|