/[PAMELA software]/tof/flight/ToFNuclei/src/ToFNuclei.cpp
ViewVC logotype

Diff of /tof/flight/ToFNuclei/src/ToFNuclei.cpp

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

revision 1.6 by pamelats, Thu Aug 6 11:24:34 2009 UTC revision 1.7 by mocchiut, Thu Aug 6 12:06:18 2009 UTC
# Line 54  ToFNuclei::ToFNuclei(PamLevel2 *l2p){   Line 54  ToFNuclei::ToFNuclei(PamLevel2 *l2p){  
54    
55  void ToFNuclei::Clear(){  void ToFNuclei::Clear(){
56    //    //
57    ncount_trk = 0.;    ncount_trk = 0;
58    charge_trk = 0.;    charge_trk = 0.;
59    memset (charge_layer_trk,0,6*sizeof(Float_t));  //    memset (charge_layer_trk,0,6*sizeof(Float_t));  //
60    memset (charge_layer_trk_raw,0,6*sizeof(Float_t));  //    memset (charge_layer_trk_raw,0,6*sizeof(Float_t));  //
61    memset (charge_PMT_trk,0,48*sizeof(Float_t));  //    memset (charge_PMT_trk,0,48*sizeof(Float_t));  //
62    memset (layerinfo_trk,0,6*sizeof(Int_t));  //    memset (layerinfo_trk,0,6*sizeof(Int_t));  //
63    ncount_std = 0.;    ncount_std = 0;
64    charge_std = 0.;    charge_std = 0.;
65    memset (charge_layer_std,0,6*sizeof(Float_t));  //    memset (charge_layer_std,0,6*sizeof(Float_t));  //
66    memset (charge_layer_std_raw,0,6*sizeof(Float_t));  //    memset (charge_layer_std_raw,0,6*sizeof(Float_t));  //
# Line 412  Float_t beta_mean = fabs(track->GetToFTr Line 412  Float_t beta_mean = fabs(track->GetToFTr
412  // New!! If "beta_in" != 100. then overwrite beta_mean with beta_in  // New!! If "beta_in" != 100. then overwrite beta_mean with beta_in
413  if (beta_in != 100.) beta_mean=beta_in;  if (beta_in != 100.) beta_mean=beta_in;
414    
415  Float_t def = track->GetTrkTrack()->al[4];  //Float_t def = track->GetTrkTrack()->al[4];
416  Float_t rig = 1./def;  //Float_t rig = 1./def;
417    
418  Int_t ncount=0;  Int_t ncount=0;
419  Float_t charge_chi=1000.;  Float_t charge_chi=1000.;
# Line 436  if ((beta_mean < 0.05)  || (beta_mean > Line 436  if ((beta_mean < 0.05)  || (beta_mean >
436    for (Int_t jj=0; jj<48;jj++) charge_PMT_trk[jj] = 1001.;    for (Int_t jj=0; jj<48;jj++) charge_PMT_trk[jj] = 1001.;
437    for (Int_t jj=0; jj<6;jj++) charge_layer_trk[jj] = 1001.;    for (Int_t jj=0; jj<6;jj++) charge_layer_trk[jj] = 1001.;
438    for (Int_t jj=0; jj<6;jj++) charge_layer_trk_raw[jj] = 1001.;    for (Int_t jj=0; jj<6;jj++) charge_layer_trk_raw[jj] = 1001.;
439    for (Int_t jj=0; jj<6;jj++) layerinfo_trk[jj] = 1001.;    for (Int_t jj=0; jj<6;jj++) layerinfo_trk[jj] = 1001;
440    charge_trk = 1001.;    charge_trk = 1001.;
441    ncount_trk = 0;    ncount_trk = 0;
442                                                }                                                }
# Line 949  Float_t corr_a[6][4] = {   Line 949  Float_t corr_a[6][4] = {  
949    
950  //---------------------------------------------------------------------  //---------------------------------------------------------------------
951    
952  Float_t xv[6],yv[6];  //Float_t xv[6],yv[6];
953  Int_t  iz;  Int_t  iz;
954    
955  Float_t x1[9],y1[9];  Float_t x1[9],y1[9];
# Line 985  if ((beta_mean < 0.05)  || (beta_mean > Line 985  if ((beta_mean < 0.05)  || (beta_mean >
985    for (Int_t jj=0; jj<48;jj++) charge_PMT_std[jj] = 1001.;    for (Int_t jj=0; jj<48;jj++) charge_PMT_std[jj] = 1001.;
986    for (Int_t jj=0; jj<6;jj++) charge_layer_std[jj] = 1001.;    for (Int_t jj=0; jj<6;jj++) charge_layer_std[jj] = 1001.;
987    for (Int_t jj=0; jj<6;jj++) charge_layer_std_raw[jj] = 1001.;    for (Int_t jj=0; jj<6;jj++) charge_layer_std_raw[jj] = 1001.;
988    for (Int_t jj=0; jj<6;jj++) layerinfo_std[jj] = 1001.;    for (Int_t jj=0; jj<6;jj++) layerinfo_std[jj] = 1001;
989    charge_std = 1001.;    charge_std = 1001.;
990    ncount_std = 0;    ncount_std = 0;
991                                                }                                                }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.23