/[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.12 by pamelats, Tue May 5 14:17:46 2009 UTC revision 1.14 by pizzolot, Fri Oct 16 09:15:50 2009 UTC
# Line 11  extern "C"{ Line 11  extern "C"{
11  };  };
12  //  //
13    
14  Digitizer::Digitizer(TTree* tree, char* &file_raw,int nspe1=200,int ntof1=200,int ncat1=50,int ncas1=50,int ncar1=100,int ncal1=1000,int nnd1=200,int nstr1=1000){  Digitizer::Digitizer(TTree* tree, char* &file_raw,
15                         int nspe1=200,int ntof1=200,int ncat1=50,
16                         int ncas1=50,int ncar1=100,int ncal1=1000,
17                         int nnd1=200,int nstr1=1000, int comprcalomod=0){
18      
19    nspe=new int[1];    nspe=new int[1];
20    ntof=new int[1];    ntof=new int[1];
21    ncat=new int[1];    ncat=new int[1];
# Line 35  Digitizer::Digitizer(TTree* tree, char* Line 39  Digitizer::Digitizer(TTree* tree, char*
39    fCounter = 0;    fCounter = 0;
40    fCounterPhys = 0; // SO 5/12/'07    fCounterPhys = 0; // SO 5/12/'07
41    fOBT = 0;    fOBT = 0;
42      fModCalo = comprcalomod ;
43    
44    //    //
45    // DB  connections    // DB  connections
# Line 324  void Digitizer::Loop() { Line 329  void Digitizer::Loop() {
329    DigitizePSCU(length,0x13,fDataPSCU);    DigitizePSCU(length,0x13,fDataPSCU);
330    AddPadding();    AddPadding();
331    WriteTrackCalib();    WriteTrackCalib();
   
   ////////////////////////// DigitizeRunHeader();  
   /////////////////////////   WriteRunHeader();  
   
332    LoadMipCor();  // some initialization of parameters -not used now-    LoadMipCor();  // some initialization of parameters -not used now-
333    //  end loading, digitizing and writing tracker calibration    //  end loading, digitizing and writing tracker calibration
334    // TOF ------ read calibration file (get A1, A2, lambda1, lambda2)    // TOF ------ read calibration file (get A1, A2, lambda1, lambda2)
# Line 348  void Digitizer::Loop() { Line 349  void Digitizer::Loop() {
349    Long64_t nbytes = 0;    Long64_t nbytes = 0;
350    for (Int_t i=0; i<nentries;i++) {    for (Int_t i=0; i<nentries;i++) {
351       nbytes += fhBookTree->GetEntry(i);       nbytes += fhBookTree->GetEntry(i);
352         fEvent=i; //  cecilia for calo compress mode
353        // read detectors sequentially:        // read detectors sequentially:
354        // 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
355        // on pamelatov: /cvs/yoda/techmodel/physics/NeutronDetectorReader.cpp        // on pamelatov: /cvs/yoda/techmodel/physics/NeutronDetectorReader.cpp
# Line 370  void Digitizer::Loop() { Line 372  void Digitizer::Loop() {
372        if ((i%1000)==0)cout << "writing event " << i << endl;        if ((i%1000)==0)cout << "writing event " << i << endl;
373        WriteData();        WriteData();
374    }    }
     ////////////////////////////////  DigitizeRunTrailer();  
     ////////////////////////////////  WriteRunTrailer();  
375        
376    fOutputfile.close();    fOutputfile.close();
377    cout << "files closed" << endl;    cout << "files closed" << endl;

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

  ViewVC Help
Powered by ViewVC 1.1.23