/[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.11 by pamelats, Wed Oct 15 14:03:20 2008 UTC revision 1.12 by pamelats, Tue May 5 14:17:46 2009 UTC
# Line 325  void Digitizer::Loop() { Line 325  void Digitizer::Loop() {
325    AddPadding();    AddPadding();
326    WriteTrackCalib();    WriteTrackCalib();
327    
328    DigitizeRunHeader();    ////////////////////////// DigitizeRunHeader();
329    WriteRunHeader();    /////////////////////////   WriteRunHeader();
330    
331    LoadMipCor();  // some initialization of parameters -not used now-    LoadMipCor();  // some initialization of parameters -not used now-
332    //  end loading, digitizing and writing tracker calibration    //  end loading, digitizing and writing tracker calibration
# Line 346  void Digitizer::Loop() { Line 346  void Digitizer::Loop() {
346        
347    Int_t nentries = fhBookTree->GetEntriesFast();    Int_t nentries = fhBookTree->GetEntriesFast();
348    Long64_t nbytes = 0;    Long64_t nbytes = 0;
349      for (Int_t i=0; i<nentries;i++) {    for (Int_t i=0; i<nentries;i++) {
350        nbytes += fhBookTree->GetEntry(i);       nbytes += fhBookTree->GetEntry(i);
351        // read detectors sequentially:        // read detectors sequentially:
352        // 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
353        // on pamelatov: /cvs/yoda/techmodel/physics/NeutronDetectorReader.cpp        // on pamelatov: /cvs/yoda/techmodel/physics/NeutronDetectorReader.cpp
354        DigitizeTOF(np,atte1,atte2,lambda1,lambda2);       DigitizeTOF(np,atte1,atte2,lambda1,lambda2);
355        DigitizeAC();        DigitizeAC();
356        DigitizeCALO();        DigitizeCALO();
357        DigitizeTrack();        DigitizeTrack();
# Line 370  void Digitizer::Loop() { Line 370  void Digitizer::Loop() {
370        if ((i%1000)==0)cout << "writing event " << i << endl;        if ((i%1000)==0)cout << "writing event " << i << endl;
371        WriteData();        WriteData();
372    }    }
373    DigitizeRunTrailer();      ////////////////////////////////  DigitizeRunTrailer();
374    WriteRunTrailer();      ////////////////////////////////  WriteRunTrailer();
375        
376    fOutputfile.close();    fOutputfile.close();
377    cout << "files closed" << endl;    cout << "files closed" << endl;

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.23