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

Diff of /PamelaDigitizer/Digitizer.h

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

revision 1.10 by mocchiut, Fri Feb 20 10:22:18 2009 UTC revision 1.12 by mocchiut, Tue Aug 11 14:56:30 2009 UTC
# Line 2  Line 2 
2  #define DIGITIZER_H  #define DIGITIZER_H
3    
4  #include <iostream>  #include <iostream>
5    #include <istream>
6  #include <fstream>  #include <fstream>
7    
8    
# Line 49  class Digitizer{ Line 50  class Digitizer{
50      static const int fPSCUbuffer = 8;      static const int fPSCUbuffer = 8;
51      static const int fTRIGGERbuffer = 152; //(bytes)      static const int fTRIGGERbuffer = 152; //(bytes)
52      static const int fTOFbuffer = 276;     //(bytes)      static const int fTOFbuffer = 276;     //(bytes)
     static const int fRunHeaderbuffer = 37; // 37 not 27  
     static const int fRunTrailerbuffer = 25; // 25 not 17  
53      static const int fACbuffer = 128;      static const int fACbuffer = 128;
54      static const int fNDbuffer = 6;      static const int fNDbuffer = 6;
55      static const int fS4buffer = 3;      static const int fS4buffer = 3;
# Line 92  class Digitizer{ Line 91  class Digitizer{
91      UShort_t fDataPadding[fPADbuffer];      UShort_t fDataPadding[fPADbuffer];
92      UInt_t fPadding;      UInt_t fPadding;
93    
     UShort_t fDataRunHeader[fRunHeaderbuffer];  
     UShort_t fDataRunTrailer[fRunTrailerbuffer];  
   
94      UChar_t fDataTrigger[fTRIGGERbuffer];      UChar_t fDataTrigger[fTRIGGERbuffer];
95      UChar_t fDataTof[fTOFbuffer];      UChar_t fDataTof[fTOFbuffer];
96    
# Line 394  class Digitizer{ Line 390  class Digitizer{
390    
391      void DigitizePSCU(UInt_t, UChar_t, UShort_t*);  // digitizes the CPU header      void DigitizePSCU(UInt_t, UChar_t, UShort_t*);  // digitizes the CPU header
392      void AddPadding();      void AddPadding();
     void DigitizeRunHeader();  
     void DigitizeRunTrailer();  
     //    void DigitizeTRIGGER();  // SO nov'07: included in DigitizeTOF  
393      void DigitizeTOF(int np,float *atte1,float *atte2,float *lambda1,float *lambda2);  // digitizes the tof      void DigitizeTOF(int np,float *atte1,float *atte2,float *lambda1,float *lambda2);  // digitizes the tof
394      void LoadTOFCalib(int np,float *atte1,float *atte2,float *lambda1,float *lambda2); //load TOF calibration      void LoadTOFCalib(int np,float *atte1,float *atte2,float *lambda1,float *lambda2); //load TOF calibration
395      void DigitizeAC();  // digitizes the anti-counter      void DigitizeAC();  // digitizes the anti-counter
# Line 440  class Digitizer{ Line 433  class Digitizer{
433      Float_t SaturationTracky(Float_t ADC); // Saturation simulation      Float_t SaturationTracky(Float_t ADC); // Saturation simulation
434      //  end methods for Tracker      //  end methods for Tracker
435    
     void WriteRunHeader();  
     void WriteRunTrailer();  
436      void WriteData(); // writes data to file      void WriteData(); // writes data to file
437      void ReadData();      void ReadData();
438    

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

  ViewVC Help
Powered by ViewVC 1.1.23