6 |
C Author: Vannuccini Elena |
C Author: Vannuccini Elena |
7 |
C Date: 2004/2005 |
C Date: 2004/2005 |
8 |
C |
C |
9 |
|
|
10 |
|
c include 'level1.f' |
11 |
c+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- |
c+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- |
12 |
c SPEP 1 CLUSTERS ----> COUPLES and SINGLETS |
c SPEP 1 CLUSTERS ----> COUPLES and SINGLETS |
13 |
c+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- |
c+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- |
18 |
c * charge correlation |
c * charge correlation |
19 |
c |
c |
20 |
c------------------------------------------------------------------------ |
c------------------------------------------------------------------------ |
21 |
* cut on maximum number of cluster allowed for track finding |
|
22 |
parameter (nclstrmax_level2=10*nplanes) |
* maximum (total) number of stored clusters |
23 |
|
parameter (nclstrmax_level2 = nclstrmax) |
24 |
|
c parameter (nclstrmax_level2=10*nplanes) |
25 |
c parameter (nclstrmax_level2=5*nplanes) |
c parameter (nclstrmax_level2=5*nplanes) |
26 |
|
|
27 |
|
* ----------------------------------------------------------- |
28 |
|
* maximum number of cluster (per view) required to perform |
29 |
|
* track serching with full Hough transform |
30 |
|
parameter (nclustermax=6) |
31 |
|
|
32 |
* ----------------------------------------------------------- |
* ----------------------------------------------------------- |
33 |
* maximum number of couples per plane and total |
* maximum number of couples per plane and total |
34 |
* (only to dimension the vectors) |
* (only to dimension the vectors) |
35 |
parameter (ncouplemax=(nclstrmax_level2/nplanes)**2) |
c parameter (ncouplemax=2*(nclstrmax_level2/nplanes)**2) |
36 |
parameter (ncouplemaxtot=ncouplemax*nplanes) |
c parameter (ncouplemaxtot=ncouplemax*nplanes) |
37 |
|
parameter (ncouplemax = nclustermax*nclustermax) |
38 |
|
parameter (ncouplemaxtot = ncouplemax*nplanes) |
39 |
* ----------------------------------------------------------- |
* ----------------------------------------------------------- |
40 |
* maximum number of STORED couples |
* maximum number of STORED couples |
41 |
* (if the identified couples exceeds this number the |
* (if the identified couples exceeds this number the |
42 |
* track identification is not performed and the event is |
* track identification is not performed and the event is |
43 |
* tagged as not good) |
* tagged as not good) |
44 |
c parameter (ncp_max=10*nplanes) |
c parameter (ncp_max=10*nplanes) |
45 |
parameter (ncp_max=20*nplanes) |
c parameter (ncp_max=10*nplanes) |
46 |
c parameter (ncp_max=ncouplemaxtot) |
c parameter (ncp_max = ncouplemaxtot) |
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
* ----------------------------------------------------------- |
51 |
|
* mask of views |
52 |
|
* 0 = ok |
53 |
|
* 1 = n.clusters > nclustermax |
54 |
|
* 2 = n.couples > ncouplemax |
55 |
|
* 3 = n.doublets > ndblt_max |
56 |
|
* 4 = n.triplets > ntrpt_max |
57 |
|
* 5 = n.clouds yz > ncloyz_max |
58 |
|
* 6 = n.clouds xz > ncloxz_max |
59 |
|
* 7 = n.track candidates > NTRACKSMAX |
60 |
|
integer mask_view(nviews) |
61 |
|
common/maskview/mask_view |
62 |
|
|
63 |
|
|
64 |
* ----------------------------------------------------------- |
* ----------------------------------------------------------- |
65 |
* --- CLUSTERS ---------------------------------------------- |
* --- CLUSTERS ---------------------------------------------- |
75 |
* mask for clusters associated to a track |
* mask for clusters associated to a track |
76 |
* 1 = used |
* 1 = used |
77 |
* 0 = not used |
* 0 = not used |
78 |
integer cl_used(nclstrmax_level2) |
integer cl_used(nclstrmax_level2) |
79 |
|
integer ncl_view(nviews) !n.clusters per plane |
80 |
* ----------------------------------------------------------- |
* ----------------------------------------------------------- |
81 |
common/clusters/cl_good,cl_used |
common/clusters/cl_good,cl_used,ncl_view |
82 |
|
|
83 |
* ----------------------------------------------------------- |
* ----------------------------------------------------------- |
84 |
* --- COUPLES ----------------------------------------------- |
* --- COUPLES ----------------------------------------------- |
290 |
|
|
291 |
|
|
292 |
|
|
293 |
|
c------------------------------------------------------------------------ |
294 |
|
c CUTS and other parameters |
295 |
|
c------------------------------------------------------------------------ |
296 |
|
PARAMETER (PIGR=3.14) !159265359)!(1) |
297 |
|
* ----------------------------------------------------- |
298 |
|
* cuts on cluster signal |
299 |
|
* ----------------------------------------------------- |
300 |
|
parameter (dedx_x_min=0.) |
301 |
|
parameter (dedx_y_min=0.) |
302 |
|
* ----------------------------------------------------- |
303 |
|
* number of GOOD strips around MAXS |
304 |
|
* (NB this cut has been removed in track fitting but |
305 |
|
* not in calibration) |
306 |
|
* ----------------------------------------------------- |
307 |
|
parameter (ngoodstr=2) |
308 |
|
* ----------------------------------------------------- |
309 |
|
* first cuts on the parameters determined with |
310 |
|
* the hough transform, in order to exclude from the |
311 |
|
* analysis non physical dublets and triplets |
312 |
|
* (out of the geometrical acceptance of the apparatus) |
313 |
|
* ----------------------------------------------------- |
314 |
|
* geometrical acceptance whit 6 planes |
315 |
|
c$$$ parameter (alfyz1_max=8.7) !Y0 (real acc+1cm) |
316 |
|
c$$$ parameter (alfyz2_max=0.47) !tg theta-yz (18+7deg) |
317 |
|
c$$$ parameter (alfxz1_max=9.5) !X0 (real acc+1cm) |
318 |
|
c$$$ parameter (alfxz2_max=0.47) !tg theta-xz (18+7deg) |
319 |
|
|
320 |
|
c$$$* geometrical acceptance whit the last 5 planes |
321 |
|
c$$$ parameter (alfyz1_max=12.4) !Y0 (real acc+1cm) |
322 |
|
c$$$ parameter (alfyz2_max=0.55) !tg theta-yz (22+7deg) |
323 |
|
c$$$ parameter (alfxz1_max=13.7) !X0 (real acc+1cm) |
324 |
|
c$$$ parameter (alfxz2_max=0.55) !tg theta-xz (22+7deg) |
325 |
|
c$$$ |
326 |
|
c$$$* geometrical acceptance whit the last 4 planes |
327 |
|
c$$$ parameter (alfyz1_max=18.6) !Y0 (real acc+1cm) |
328 |
|
c$$$ parameter (alfyz2_max=0.70) !tg theta-yz (28+7deg) |
329 |
|
c$$$ parameter (alfxz1_max=20.6) !X0 (real acc+1cm) |
330 |
|
c$$$ parameter (alfxz2_max=0.70) !tg theta-xz (28+7deg) |
331 |
|
c$$$ |
332 |
|
* geometrical acceptance whit the last 3 planes |
333 |
|
parameter (alfyz1_max=31.0) !Y0 (real acc+1cm) |
334 |
|
parameter (alfyz2_max=1.04) !tg theta-yz (39+7deg) |
335 |
|
parameter (alfxz1_max=34.4) !X0 (real acc+1cm) |
336 |
|
parameter (alfxz2_max=1.04) !tg theta-xz (39+7deg) |
337 |
|
* ----------------------------------------------------- |
338 |
|
* cut on the position of the circle center: |
339 |
|
* center inside the spectrometer volume is not physical |
340 |
|
* ==> THE TRIPLET IS REJECTED |
341 |
|
* ----------------------------------------------------- |
342 |
|
parameter (xclimit=8.) !cm |
343 |
|
* ----------------------------------------------------- |
344 |
|
* Parameter normalization constants, needed to evaluate |
345 |
|
* distances in parameter space |
346 |
|
* ----------------------------------------------------- |
347 |
|
parameter (Dalfaxz3=1.) |
348 |
|
parameter (Dalfayz1=0.8864e-1) |
349 |
|
parameter (Dalfayz2=0.6204e-3) |
350 |
|
parameter (Dalfaxz1=0.2909e-1) |
351 |
|
parameter (Dalfaxz2=0.2759e-2) |
352 |
|
* ----------------------------------------------------- |
353 |
|
* Cut on normalized distances in parameter space. |
354 |
|
* Doublets/triplets are recursively included in a cloud |
355 |
|
* if the distance from any of the points already included |
356 |
|
* is less than this cut. |
357 |
|
* ----------------------------------------------------- |
358 |
|
parameter(cutystart=0.3) |
359 |
|
parameter(cutystep=0.3) |
360 |
|
parameter(cutxstart=1.) |
361 |
|
parameter(cutxstep=1.) |
362 |
|
parameter(maxcuty=100.) |
363 |
|
parameter(maxcutx=150.) |
364 |
|
|
365 |
|
parameter(nstepx=50) !inclusion-cut increasing steps |
366 |
|
parameter(nstepy=50) |
367 |
|
|
368 |
|
real cutdistyz !y0 / tg theta_yz space |
369 |
|
real cutdistxz !x0 / tg theta_xz space |
370 |
|
common/cutdi/cutdistyz,cutdistxz |
371 |
|
* (NB deflection is not considered in the selection criteria) |
372 |
|
* -------------------------------------------------- |
373 |
|
* cloud selection |
374 |
|
* -------------------------------------------------- |
375 |
|
parameter(x_min_start=4) |
376 |
|
parameter(x_min_step=1) |
377 |
|
|
378 |
|
integer ncpxz_min |
379 |
|
integer nptxz_min !for a circle |
380 |
|
integer nplxz_min !for a circle |
381 |
|
|
382 |
|
common/cutxclouds/ncpxz_min,nptxz_min,nplxz_min |
383 |
|
|
384 |
|
parameter(y_min_start=3) |
385 |
|
|
386 |
|
integer ncpyz_min |
387 |
|
integer nptyz_min !for a straight line |
388 |
|
integer nplyz_min !for a circle |
389 |
|
common/cutyclouds/ncpyz_min,nptyz_min,nplyz_min |
390 |
|
* -------------------------------------------------- |
391 |
|
|
392 |
|
* ----------------------------------------------------- |
393 |
|
* minimum number of matching couples required to combine |
394 |
|
* XZ-YZ clouds and perform the fit |
395 |
|
* ----------------------------------------------------- |
396 |
|
parameter (ncpok=3) |
397 |
|
|
398 |
|
* ----------------------------------------------------- |
399 |
|
* maximum value of deflection from Hough transform |
400 |
|
* accepted in order to perform the track fit |
401 |
|
* ----------------------------------------------------- |
402 |
|
c parameter (defmax=10000.) !GV-1 |
403 |
|
parameter (defmax=100.) !GV-1 |
404 |
|
|
405 |
|
* ----------------------------------------------------- |
406 |
|
* cut to include new couple or single clusters in the |
407 |
|
* track fitting, after the first fit |
408 |
|
* ----------------------------------------------------- |
409 |
|
parameter (clinc=3) |
410 |
|
|
411 |
|
|
412 |
|
|