1 |
pam-fi |
1.1 |
C------------------------------------------------- |
2 |
|
|
C |
3 |
|
|
C------------------------------------------------- |
4 |
|
|
|
5 |
|
|
|
6 |
|
|
parameter (dedxmax=250.) !cut on de/dx (scaled to 300 microns) |
7 |
|
|
* !for eta calibrations |
8 |
|
|
* !(to avoid delta-rays) |
9 |
|
|
parameter (rigmax=0.25) !cut on rigidity |
10 |
|
|
* !used for eta calibrations and |
11 |
|
|
* !check histograms |
12 |
|
|
|
13 |
|
|
C------------------------------------------------- |
14 |
|
|
C output files logical units |
15 |
|
|
C------------------------------------------------- |
16 |
|
|
parameter (lun_file_out=70) !output file id number |
17 |
|
|
parameter (lun_file_log=73) !log file id number |
18 |
|
|
parameter (lun_file_eta=74) !eta param file id number |
19 |
|
|
|
20 |
|
|
|
21 |
|
|
c$$$C------------------------------------------------- |
22 |
|
|
c$$$C variables for the good track identification |
23 |
|
|
c$$$C------------------------------------------------- |
24 |
|
|
c$$$ real xpa(nplanes),ypa(nplanes) !PAMELA frame measured coordinates |
25 |
|
|
c$$$ real xres(nplanes),yres(nplanes) !residuals |
26 |
|
|
c$$$ real chix,chiy !chi-squared |
27 |
|
|
c$$$ real thetax,thetay !incidence angle |
28 |
|
|
c$$$ real xsi(nplanes),ysi(nplanes) !silicon sensor frame measured coordinates |
29 |
|
|
c$$$ integer lad(nplanes) !hit ladders |
30 |
|
|
c$$$ integer isensor(nplanes) !hit sensors |
31 |
|
|
integer which_cl_x(nplanes),which_cl_y(nplanes) |
32 |
|
|
c$$$c real fitz(nplanes) !z coordinates of the planes |
33 |
|
|
c$$$ |
34 |
|
|
common/good_track_cl/ |
35 |
|
|
c$$$c $ fitz, |
36 |
|
|
c$$$ $ xpa,ypa,xres,yres, |
37 |
|
|
c$$$ $ chix,chiy, |
38 |
|
|
c$$$ $ thetax,thetay, |
39 |
|
|
c$$$ $ xsi,ysi, |
40 |
|
|
c$$$ $ lad,isensor, |
41 |
|
|
$ which_cl_x,which_cl_y |
42 |
|
|
|
43 |
|
|
C------------------------------------------------- |
44 |
|
|
C level1 n-tuple with selected events |
45 |
|
|
C------------------------------------------------- |
46 |
|
|
|
47 |
|
|
c parameter (ntp_level1_tmp=41) |
48 |
|
|
|
49 |
|
|
C------------------------------------------------- |
50 |
|
|
C some check histos |
51 |
|
|
C------------------------------------------------- |
52 |
|
|
parameter (id_hi_chi=10000) |
53 |
|
|
parameter (id_hi_mult=7000000) |
54 |
|
|
parameter (id_hi_charge=8000000) |
55 |
|
|
parameter (id_hi_rig=11000) |
56 |
|
|
|
57 |
|
|
parameter (id_hi_angle=9000000) |
58 |
|
|
parameter (id_hi_angle_stat=9900000) |
59 |
|
|
|
60 |
|
|
parameter (id_hi_beam=5000000) |
61 |
|
|
|
62 |
|
|
parameter (id_hi_bx=2000) |
63 |
|
|
parameter (id_hi_by=3000) |
64 |
|
|
parameter (id_hi_bz=4000) |
65 |
|
|
|
66 |
|
|
parameter(nhside=5) |
67 |
|
|
|
68 |
|
|
|
69 |
|
|
c------------------------------------------------------------------------ |
70 |
|
|
c |
71 |
|
|
c eta-2 eta-3 eta-4 histograms |
72 |
|
|
c |
73 |
|
|
c here is defined the histogram and angular binning |
74 |
|
|
c for eta corrections |
75 |
|
|
c------------------------------------------------------------------------ |
76 |
|
|
|
77 |
|
|
parameter (id_hi_eta2=20000) |
78 |
|
|
parameter (id_hi_eta3=30000) |
79 |
|
|
parameter (id_hi_eta4=40000) |
80 |
|
|
|
81 |
|
|
* eta2 ==> -0.5 : 0.5 |
82 |
|
|
* eta3 ==> -0.5 : 0.5 |
83 |
|
|
* eta4 ==> -1.0 : 1.0 |
84 |
|
|
* !!!!!!! ATTENZIONE !!!!!!!!!!!! |
85 |
|
|
* mi sono convinta che anche eta4 deve essere definito |
86 |
|
|
* tra -0.5 e 0.5, perche` questa e` la periodicita` del sensore |
87 |
|
|
* |
88 |
|
|
parameter (nhbin2=100) !eta-2 histo bins |
89 |
|
|
parameter (nhbin3=nhbin2) !eta-3 histo bins |
90 |
|
|
* parameter (nhbin4=2*nhbin2) !eta-4 histo bins |
91 |
|
|
parameter (nhbin4=nhbin2) !eta-4 histo bins |
92 |
|
|
|
93 |
|
|
c$$$ real histo2(nhbin2) |
94 |
|
|
real eta2corr(nhbin2+1,nviews) !eta2 correction |
95 |
|
|
real eta2abs(nhbin2+1) !eta2 abscissa |
96 |
|
|
common/eta2/eta2corr,eta2abs |
97 |
|
|
|
98 |
|
|
c$$$# ifdef TEST2003 |
99 |
|
|
c$$$ parameter (nangbin=3) !number of angular bins |
100 |
|
|
c$$$c real angbin(nang+1) !bin extremes |
101 |
|
|
c$$$ data angbin/ !nang=3 |
102 |
|
|
c$$$ $ -6.0, |
103 |
|
|
c$$$ $ -2.0, |
104 |
|
|
c$$$ $ 2.0, |
105 |
|
|
c$$$ $ 6.0/ |
106 |
|
|
c$$$# else |
107 |
|
|
c$$$ parameter (nangbin=3) !number of angular bins |
108 |
|
|
c$$$c real angbin(nang+1) !bin extremes |
109 |
|
|
c$$$ data angbin/ !nang=3 |
110 |
|
|
c$$$ $ -6.0, |
111 |
|
|
c$$$ $ -2.0, |
112 |
|
|
c$$$ $ 2.0, |
113 |
|
|
c$$$ $ 6.0/ |
114 |
|
|
c$$$# endif |
115 |
|
|
|
116 |
|
|
c$$$ parameter (nangmax=50) |
117 |
|
|
c$$$ integer nang,angbin(nangmax) |
118 |
|
|
real avangbin(nangmax,nviews),navangbin(nangmax,nviews) !average angle in the bin |
119 |
|
|
common/avang/avangbin,navangbin |
120 |
|
|
|
121 |
|
|
c------------------------------------------------------------------------ |
122 |
|
|
c |
123 |
|
|
c charge correlation histograms |
124 |
|
|
c |
125 |
|
|
c------------------------------------------------------------------------ |
126 |
|
|
parameter (id_hi_chargeco=500000) |
127 |
|
|
|
128 |
|
|
real syksx(nplanes),sycsx(nplanes) |
129 |
|
|
real esyksx(nplanes),esycsx(nplanes) |
130 |
|
|
common/sxsy/syksx,sycsx,esyksx,esycsx |
131 |
|
|
|
132 |
|
|
* --------------------------------------------- |
133 |
|
|
* common per la correlazione di carica (MINUIT) |
134 |
|
|
parameter (ncorrmax=20000) |
135 |
|
|
real chargexy(nplanes,3,ncorrmax,2) |
136 |
|
|
integer whichplane,whichladder,goodtr |
137 |
|
|
common/chargecorr/chargexy,whichplane,whichladder,goodtr |
138 |
|
|
|
139 |
|
|
c double precision val,error |
140 |
|
|
c character*12 chnam |
141 |
|
|
c real esyksx(nplanes),esycsx(nplanes) |
142 |
|
|
* --------------------------------------------- |
143 |
|
|
|