| 28 | debug = false; | debug = false; | 
| 29 | // debug = true; | // debug = true; | 
| 30 | usetrack = true; | usetrack = true; | 
| 31 |  | usepl18x = false; | 
| 32 | // | // | 
| 33 | }; | }; | 
| 34 |  |  | 
| 147 | // | // | 
| 148 | mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip); | mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip); | 
| 149 | // | // | 
| 150 |  | if ( !usepl18x && view==0 && plane==18 ) mip = 0.; | 
| 151 |  | // | 
| 152 |  | // | 
| 153 | // put in vfpl vector the energy release on the first plane | // put in vfpl vector the energy release on the first plane | 
| 154 | // | // | 
| 155 | if ( strip != -1 && view == 1 && plane == 0 ) { | if ( strip != -1 && view == 1 && plane == 0 ) { | 
| 218 | // | // | 
| 219 | mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip); | mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip); | 
| 220 | // | // | 
| 221 |  | if ( !usepl18x && view==0 && plane==18 ) mip = 0.; | 
| 222 |  | // | 
| 223 | if ( ntr >= 0 ){ | if ( ntr >= 0 ){ | 
| 224 | // | // | 
| 225 | if ( strip != -1 && | if ( strip != -1 && | 
| 289 | // | // | 
| 290 | mip = L2->GetCaloLevel1()->DecodeEstrip(ii,view,plane,strip); | mip = L2->GetCaloLevel1()->DecodeEstrip(ii,view,plane,strip); | 
| 291 | // | // | 
| 292 |  | if ( !usepl18x && view==0 && plane==18 ) mip = 0.; | 
| 293 |  | // | 
| 294 |  | // | 
| 295 | if ( ntr >= 0 ){ | if ( ntr >= 0 ){ | 
| 296 | if ( strip != -1 && mip > ethr && !wmulthit[view] && !wgap[view] && | if ( strip != -1 && mip > ethr && !wmulthit[view] && !wgap[view] && | 
| 297 | ( strip == (track->tibar[plane][view]-1) || strip == (track->tibar[plane][view]-2) || strip == (track->tibar[plane][view]) ) | ( strip == (track->tibar[plane][view]-1) || strip == (track->tibar[plane][view]-2) || strip == (track->tibar[plane][view]) ) | 
| 420 | // | // | 
| 421 | mip = L2->GetCaloLevel1()->DecodeEstrip(ii,view,plane,strip); | mip = L2->GetCaloLevel1()->DecodeEstrip(ii,view,plane,strip); | 
| 422 | // | // | 
| 423 |  | if ( !usepl18x && view==0 && plane==18 ) mip = 0.; | 
| 424 |  | // | 
| 425 |  | // | 
| 426 | if ( strip != -1 ){ | if ( strip != -1 ){ | 
| 427 | if ( view == 0 ){ | if ( view == 0 ){ | 
| 428 | ipl = (1 + plane) * 2; | ipl = (1 + plane) * 2; | 
| 677 | // //======================================================================= | // //======================================================================= | 
| 678 | // //===========    charge determination Maximum release  vs. beta    =============== | // //===========    charge determination Maximum release  vs. beta    =============== | 
| 679 | // //======================     Rome method    =========================== | // //======================     Rome method    =========================== | 
| 680 | // //======================================================================= | // //======================================================================= | 
| 681 |  |  | 
| 682 | Float_t D0[7] = {0, 3 , 4 , 5 , 6, 8, 90}; | Float_t D0[9] = {0, 1, 2, 3 , 4 , 5 , 6, 8, 90}; | 
| 683 | Float_t E1[7] = {0 ,923.553 , 659.842, 1113.97, 3037.25, 3034.84, 0}; | Float_t E1[9] = {0, 500, 500, 923.553 , 659.842, 1113.97, 3037.25, 3034.84, 0}; | 
| 684 | Float_t E2[7] = {0 ,6.92574 , 5.08865, 5.29349, 6.41442, 5.52969, 0}; | Float_t E2[9] = {0, 11.0, 7.5, 6.92574 , 5.08865, 5.29349, 6.41442, 5.52969, 0}; | 
| 685 | Float_t E3[7] = {0 ,9.7227  , 13.18, 23.5444, 38.2057, 63.6784, 80000}; | Float_t E3[9] = {0, 1.2, 4, 9.7227  , 13.18, 23.5444, 38.2057, 63.6784, 80000}; | 
| 686 |  |  | 
| 687 | Float_t xx1[7],yy1[7]; | Float_t xx1[9],yy1[9]; | 
| 688 | n1 = 7; | n1 = 9; | 
| 689 |  |  | 
| 690 | charge = 1000.; | charge = 1000.; | 
| 691 | mip=0; | mip=0; | 
| 726 | // ======================================================================= | // ======================================================================= | 
| 727 | // ===========    charge determination dedx  vs. beta    =============== | // ===========    charge determination dedx  vs. beta    =============== | 
| 728 | // ======================     Rome method    =========================== | // ======================     Rome method    =========================== | 
| 729 | // ======================================================================= | // ======================================================================= | 
| 730 |  |  | 
| 731 | Float_t F0[7] = {0.,3. ,4., 5. , 6., 8, 90}; | Float_t F0[9] = {0., 1., 2., 3. ,4., 5. , 6., 8, 90}; | 
| 732 | Float_t G1[7] = {0 ,642.935 , 848.684, 1346.05, 3238.82, 3468.6, 0}; | Float_t G1[9] = {0, 500, 500, 642.935 , 848.684, 1346.05, 3238.82, 3468.6, 0}; | 
| 733 | Float_t G2[7] = {0 ,6.2038 , 5.51723, 5.65265, 6.54089, 5.72723, 0}; | Float_t G2[9] = {0, 11, 7.5, 6.2038 , 5.51723, 5.65265, 6.54089, 5.72723, 0}; | 
| 734 | Float_t G3[7] = {0 ,9.2421 , 13.9858, 25.3912, 39.6332, 64.5674, 80000}; | Float_t G3[9] = {0, 1.2, 4, 9.2421 , 13.9858, 25.3912, 39.6332, 64.5674, 80000}; | 
| 735 |  |  | 
| 736 |  |  | 
| 737 | charge = 1000.; | charge = 1000.; | 
| 775 | //======================================================================= | //======================================================================= | 
| 776 | //===========    charge determination dedx  vs. defl    =============== | //===========    charge determination dedx  vs. defl    =============== | 
| 777 | //======================     Rome method    =========================== | //======================     Rome method    =========================== | 
| 778 | //======================================================================= | //======================================================================= | 
|  |  |  | 
|  | //new |  | 
|  | Float_t H0[7] = {0, 3 , 4 , 5 , 6, 8, 90 }; |  | 
|  | Float_t I1[7] = {0 , 56.1019, 101.673, 109.225, 150.599, 388.531, 0}; |  | 
|  | Float_t I2[7] = {0 , -12.5581, -22.5543, -15.9823, -28.2207, -93.6871, 0}; |  | 
|  | Float_t I3[7] = {0 , 11.6218, 19.664, 32.1817, 45.7527, 84.5992, 80000}; |  | 
|  |  |  | 
|  |  |  | 
|  | //     Float_t H0[7] = {0, 3 , 4 , 5 , 6, 8, 90 }; |  | 
|  | //     Float_t I1[7] = {0 , 56.1019, 101.673, 155, 150.599, 388.531, 0}; |  | 
|  | //     Float_t I2[7] = {0 , -12.5581, -22.5543, -35.6217, -28.2207, -93.6871, 0}; |  | 
|  | //     Float_t I3[7] = {0 , 11.6218, 19.664, 34.3311, 45.7527, 84.5992, 8000}; |  | 
| 779 |  |  | 
| 780 |  | Float_t H0[9] = {0, 1, 2, 3 , 4 , 5 , 6, 8, 90 }; | 
| 781 |  | Float_t I1[9] = {0, 3.5, 40, 56.1019, 101.673, 109.225, 150.599, 388.531, 0}; | 
| 782 |  | Float_t I2[9] = {0, -1, -13.6, -12.5581, -22.5543, -15.9823, -28.2207, -93.6871, 0}; | 
| 783 |  | Float_t I3[9] = {0, 1, 5.3, 11.6218, 19.664, 32.1817, 45.7527, 84.5992, 80000}; | 
| 784 |  |  | 
| 785 |  |  | 
| 786 | charge = 1000.; | charge = 1000.; | 
| 826 | //============================================================================================ | //============================================================================================ | 
| 827 | //===========    charge determination Truncated mean (N-1 planes) vs. defl =================== | //===========    charge determination Truncated mean (N-1 planes) vs. defl =================== | 
| 828 | //================================     Rome method    ======================================== | //================================     Rome method    ======================================== | 
| 829 | //============================================================================================ | //============================================================================================ | 
| 830 |  |  | 
| 831 | Float_t L0[7] = {0, 3 , 4 , 5 , 6, 8, 90}; | Float_t L0[9] = {0, 1, 2, 3 , 4 , 5 , 6, 8, 90}; | 
| 832 | Float_t M1[7] = {0 , 63.0145, 120.504, 173.663, 245.33, 236.517, 0}; | Float_t M1[9] = {0, 3.5, 27, 63.0145, 120.504, 173.663, 245.33, 236.517, 0}; | 
| 833 | Float_t M2[7] = {0 , -15.005, -31.0635, -39.4988, -60.5011, -46.3992, 0}; | Float_t M2[9] = {0, -1, -10.6, -15.005, -31.0635, -39.4988, -60.5011, -46.3992, 0}; | 
| 834 | Float_t M3[7] = {0 , 12.5037, 22.8652, 35.2907, 51.4678, 86.4155, 8000}; | Float_t M3[9] = {0, 1, 7, 12.5037, 22.8652, 35.2907, 51.4678, 86.4155, 80000}; | 
| 835 |  |  | 
| 836 | charge = 1000.; | charge = 1000.; | 
| 837 | mip=0; | mip=0; |