/[PAMELA software]/quicklook/tof/src/TofScan.cpp
ViewVC logotype

Diff of /quicklook/tof/src/TofScan.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by pam-de, Mon Oct 8 12:28:54 2007 UTC revision 1.5 by mocchiut, Fri Jan 17 15:10:36 2014 UTC
# Line 33  Line 33 
33  #include <TPaveText.h>  #include <TPaveText.h>
34  #include <TCanvas.h>  #include <TCanvas.h>
35  #include <physics/tof/TofEvent.h>  #include <physics/tof/TofEvent.h>
36    #include <cstdlib>
37    #include <sys/stat.h>
38    #include <math.h>
39  #include <iostream>  #include <iostream>
40  #include <fstream>  #include <fstream>
41    
# Line 185  Float_t k1[72] = {50,59.3296,28.4328,-26 Line 187  Float_t k1[72] = {50,59.3296,28.4328,-26
187  // find hitted paddle by looking for ADC values on both sides  // find hitted paddle by looking for ADC values on both sides
188  // since we looking for helium this gives decent results  // since we looking for helium this gives decent results
189    
190  Int_t tof11_i,tof12_i,tof21_i,tof22_i,tof31_i,tof32_i;  //Int_t tof11_i,tof12_i,tof21_i,tof22_i,tof31_i,tof32_i;
191    Int_t tof11_i,tof12_i,tof31_i,tof32_i;
192  Float_t  a1,a2;  Float_t  a1,a2;
193  Int_t jj;  Int_t jj;
194    
195  //  reset values  //  reset values
196  tof11_i = -1;  tof11_i = -1;
197  tof12_i = -1;  tof12_i = -1;
198  tof21_i = -1;  //tof21_i = -1;
199  tof22_i = -1;  //tof22_i = -1;
200  tof31_i = -1;  tof31_i = -1;
201  tof32_i = -1;  tof32_i = -1;
202    
# Line 207  tof32_i = -1; Line 210  tof32_i = -1;
210      a2 = adca[16+2*jj+1];      a2 = adca[16+2*jj+1];
211      if ((a1 < 3000) && (a2 < 3000)) tof12_i = jj;      if ((a1 < 3000) && (a2 < 3000)) tof12_i = jj;
212                             }                             }
213      for(jj=0; jj<2; jj++){      /*    for(jj=0; jj<2; jj++){
214      a1 = adca[28+2*jj];      a1 = adca[28+2*jj];
215      a2 = adca[28+2*jj+1];      a2 = adca[28+2*jj+1];
216      if ((a1 < 3000) && (a2 < 3000)) tof21_i = jj;      //    if ((a1 < 3000) && (a2 < 3000)) tof21_i = jj;
217                             }                             }
218      for(jj=0; jj<2; jj++){      for(jj=0; jj<2; jj++){
219      a1 = adca[32+2*jj];      a1 = adca[32+2*jj];
220      a2 = adca[32+2*jj+1];      a2 = adca[32+2*jj+1];
221      if ((a1 < 3000) && (a2 < 3000)) tof22_i = jj;      //    if ((a1 < 3000) && (a2 < 3000)) tof22_i = jj;
222                           }      }*/
223      for(jj=0; jj<3; jj++){      for(jj=0; jj<3; jj++){
224      a1 = adca[36+2*jj];      a1 = adca[36+2*jj];
225      a2 = adca[36+2*jj+1];      a2 = adca[36+2*jj+1];

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23