/[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.7 by pamelats, Fri Jun 6 17:28:41 2008 UTC revision 1.10 by mocchiut, Fri Feb 20 10:22:18 2009 UTC
# Line 16  Line 16 
16  #include "TLeafI.h"  #include "TLeafI.h"
17  #include "TH1.h"  #include "TH1.h"
18  #include "TH2.h"  #include "TH2.h"
19    #include "TF1.h"
20  #include "TMath.h"  #include "TMath.h"
21  #include "TSQLServer.h"  #include "TSQLServer.h"
22  //  #include "TGraph.h"
23    #include "GLTables.h"
24    #include "TSystem.h"
25    #include "TRandom.h"
26    
27  #include "CRC.h"  #include "CRC.h"
28    #include <CalibCalPedEvent.h>
29    #include "CalibTrk1Event.h"
30    #include "CalibTrk2Event.h"
31    
32  class Digitizer{  class Digitizer{
33    
   
34   protected:   protected:
35    
36      // in and output data members      // in and output data members
37    
38      TTree* fhBookTree;      TTree* fhBookTree;
39      ofstream fOutputfile;      ofstream fOutputfile;
40      int nspe;      int *nspe;
41      int ntof;      int *ntof;
42      int ncat;      int *ncat;
43      int ncas;      int *ncas;
44      int ncar;      int *ncar;
45      int ncal;      int *ncal;
46      int nnd;      int *nnd;
47      int nstr;      int *nstr;
     int *ntf;  
48    
49      static const int fPSCUbuffer = 8;      static const int fPSCUbuffer = 8;
50      static const int fTRIGGERbuffer = 152; //(bytes)      static const int fTRIGGERbuffer = 152; //(bytes)
51      static const int fTOFbuffer = 276;     //(bytes)      static const int fTOFbuffer = 276;     //(bytes)
52      static const int fRunHeaderbuffer = 27; // ??      static const int fRunHeaderbuffer = 37; // 37 not 27
53      static const int fRunTrailerbuffer = 17;      static const int fRunTrailerbuffer = 25; // 25 not 17
54      static const int fACbuffer = 128;      static const int fACbuffer = 128;
55      static const int fNDbuffer = 6;      static const int fNDbuffer = 6;
56      static const int fS4buffer = 3;      static const int fS4buffer = 3;
# Line 146  class Digitizer{ Line 152  class Digitizer{
152      Int_t           Nthtof;      Int_t           Nthtof;
153      UChar_t         *Ipltof;      UChar_t         *Ipltof;
154      UChar_t         *Ipaddle;      UChar_t         *Ipaddle;
155      //      UChar_t         *Ipartof;//DPMJET      //    UChar_t         *Ipartof;//DPMJET
156      UShort_t        *Ipartof;      UShort_t        *Ipartof;
157      Float_t         *Xintof;      Float_t         *Xintof;
158      Float_t         *Yintof;      Float_t         *Yintof;
# Line 186  class Digitizer{ Line 192  class Digitizer{
192      Float_t         *P0cas;      Float_t         *P0cas;
193      Int_t           Nthspe;      Int_t           Nthspe;
194      //    UChar_t         *Iparspe;//DPMJET      //    UChar_t         *Iparspe;//DPMJET
195      UShort_t        *Iparspe;      //    UShort_t        *Iparspe;
196      UChar_t         *Itrpb;      UChar_t         *Itrpb;
197      UChar_t         *Itrsl;      UChar_t         *Itrsl;
198      UChar_t         *Itspa;      UChar_t         *Itspa;
# Line 377  class Digitizer{ Line 383  class Digitizer{
383      TBranch        *b_Pathcard;   //!      TBranch        *b_Pathcard;   //!
384      TBranch        *b_P0card;   //!      TBranch        *b_P0card;   //!
385      //      //
386        TF1 *attenAC;
387   public:   public:
388    
389      Digitizer(TTree *tree, char* &file_raw,int nspe=200,int ntof=200,int ncat=50,int ncas=50,int ncar=100,int ncal=1000,int nnd=200,int nstr=1000); // constructor      Digitizer(TTree*,char*&,int,int,int,int,int,int,int,int); // constructor
390    
391      void Close();      void Close();
392      void SetTree(TTree *tree) {fhBookTree = tree;};      void SetTree(TTree *tree) {fhBookTree = tree;};

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

  ViewVC Help
Powered by ViewVC 1.1.23