/[PAMELA software]/PamelaDigitizer/Digitizer.cxx
ViewVC logotype

Diff of /PamelaDigitizer/Digitizer.cxx

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

revision 1.9 by pamelats, Fri Jun 6 17:28:39 2008 UTC revision 1.10 by pamelats, Sun Jun 8 06:33:45 2008 UTC
# Line 84  Digitizer::Digitizer(TTree* tree, char* Line 84  Digitizer::Digitizer(TTree* tree, char*
84    *ntf=ntof;    *ntf=ntof;
85    Ipltof=(UChar_t*)malloc(ntof *sizeof(UChar_t));    Ipltof=(UChar_t*)malloc(ntof *sizeof(UChar_t));
86    Ipaddle=(UChar_t*)malloc(ntof *sizeof(UChar_t));    Ipaddle=(UChar_t*)malloc(ntof *sizeof(UChar_t));
87    Ipartof=(UShort_t*)malloc(ntof *sizeof(UShort_t));    // Ipartof=(UShort_t*)malloc(ntof *sizeof(UShort_t));
88    //  Ipartof=(UChar_t*)malloc(ntof *sizeof(UChar_t));    Ipartof=(UChar_t*)malloc(ntof *sizeof(UChar_t));
89    Xintof=(Float_t*)malloc(ntof *sizeof(Float_t));    Xintof=(Float_t*)malloc(ntof *sizeof(Float_t));
90    Yintof=(Float_t*)malloc(ntof *sizeof(Float_t));    Yintof=(Float_t*)malloc(ntof *sizeof(Float_t));
91    Zintof=(Float_t*)malloc(ntof *sizeof(Float_t));    Zintof=(Float_t*)malloc(ntof *sizeof(Float_t));
# Line 120  Digitizer::Digitizer(TTree* tree, char* Line 120  Digitizer::Digitizer(TTree* tree, char*
120    Timecas=(Float_t*)malloc(ncas *sizeof(Float_t));    Timecas=(Float_t*)malloc(ncas *sizeof(Float_t));
121    Pathcas=(Float_t*)malloc(ncas *sizeof(Float_t));    Pathcas=(Float_t*)malloc(ncas *sizeof(Float_t));
122    P0cas=(Float_t*)malloc(ncas *sizeof(Float_t));    P0cas=(Float_t*)malloc(ncas *sizeof(Float_t));
123    Iparspe=(UShort_t*)malloc(nspe *sizeof(UShort_t));    //  Iparspe=(UShort_t*)malloc(nspe *sizeof(UShort_t));
124    //Iparspe=(UChar_t*)malloc(nspe *sizeof(UChar_t));    Iparspe=(UChar_t*)malloc(nspe *sizeof(UChar_t));
125    Itrpb=(UChar_t*)malloc(nspe *sizeof(UChar_t));    Itrpb=(UChar_t*)malloc(nspe *sizeof(UChar_t));
126    Itrsl=(UChar_t*)malloc(nspe *sizeof(UChar_t));    Itrsl=(UChar_t*)malloc(nspe *sizeof(UChar_t));
127    Itspa=(UChar_t*)malloc(nspe *sizeof(UChar_t));    Itspa=(UChar_t*)malloc(nspe *sizeof(UChar_t));
# Line 350  void Digitizer::Loop() { Line 350  void Digitizer::Loop() {
350    lambda1=(float *)malloc(np *sizeof(float));    lambda1=(float *)malloc(np *sizeof(float));
351    lambda2=(float *)malloc(np *sizeof(float));    lambda2=(float *)malloc(np *sizeof(float));
352    LoadTOFCalib(np,atte1,atte2,lambda1,lambda2);    LoadTOFCalib(np,atte1,atte2,lambda1,lambda2);
353      TF1 *attenAC = new TF1("fAttAC",".825+.64*atan(9.8/x)",0.,45.);
354    //end tof calib    //end tof calib
355    //    //
356    // loops over the events    // loops over the events
# Line 363  void Digitizer::Loop() { Line 364  void Digitizer::Loop() {
364        // http://www.ts.infn.it/fileadmin/documents/physics/experiments/wizard/cpu/gen_arch/RM_Acquisition.pdf        // http://www.ts.infn.it/fileadmin/documents/physics/experiments/wizard/cpu/gen_arch/RM_Acquisition.pdf
365        // on pamelatov: /cvs/yoda/techmodel/physics/NeutronDetectorReader.cpp        // on pamelatov: /cvs/yoda/techmodel/physics/NeutronDetectorReader.cpp
366        DigitizeTOF(np,atte1,atte2,lambda1,lambda2);        DigitizeTOF(np,atte1,atte2,lambda1,lambda2);
367        DigitizeAC();        DigitizeAC(attenAC);
368        DigitizeCALO();        DigitizeCALO();
369        DigitizeTrack();        DigitizeTrack();
370        DigitizeS4();        DigitizeS4();

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.23