/[PAMELA software]/DarthVader/TrackerLevel2/inc/TrkStruct.h
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/inc/TrkStruct.h

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

revision 1.30 by pam-fi, Tue Jan 15 14:28:45 2008 UTC revision 1.34 by bongi, Thu Nov 20 15:05:43 2008 UTC
# Line 10  Line 10 
10  #define NVIEW 12  #define NVIEW 12
11  #define NVK 24  #define NVK 24
12  #define NLADDER 3  #define NLADDER 3
13    #define NSENSOR 2
14    #define NSTRIPVK 128
15    #define NSTRIP NSTRIPVK*NVK
16    
17  #define NCLMAX_VIEW 200         //max n.clusters per view  #define NCLMAX_VIEW 200         //max n.clusters per view
18  #define NCLSTR 20               //max n.strip per cluster  #define NCLSTR 20               //max n.strip per cluster
# Line 148  struct cTrkLevel2 { Line 151  struct cTrkLevel2 {
151      float xs[NSINGMAX][2];      float xs[NSINGMAX][2];
152      float signlxs[NSINGMAX];      float signlxs[NSINGMAX];
153      int clsx[NSINGMAX];      int clsx[NSINGMAX];
154        int sxbad[NSINGMAX];
155        int multmaxsx[NSINGMAX];
156  //  ----------------------------  //  ----------------------------
157      int nclsy;      int nclsy;
158      int planey[NSINGMAX];      int planey[NSINGMAX];
159      float ys[NSINGMAX][2];      float ys[NSINGMAX][2];
160      float signlys[NSINGMAX];      float signlys[NSINGMAX];
161      int clsy[NSINGMAX];      int clsy[NSINGMAX];
162        int sybad[NSINGMAX];
163        int multmaxsy[NSINGMAX];
164  //  ----------------------------  //  ----------------------------
165      int ntrk;      int ntrk;
166      int image[NTRKMAX];      int image[NTRKMAX];
# Line 205  struct cTrkLevel2 { Line 212  struct cTrkLevel2 {
212              xs[i][0]   = 0;              xs[i][0]   = 0;
213              xs[i][1]   = 0;              xs[i][1]   = 0;
214              signlxs[i] = 0;              signlxs[i] = 0;
215                clsx[i]    = 0;
216                sxbad[i]   = 0;
217              planey[i]  = 0;              planey[i]  = 0;
218              ys[i][0]   = 0;              ys[i][0]   = 0;
219              ys[i][1]   = 0;              ys[i][1]   = 0;
220              signlys[i] = 0;              signlys[i] = 0;
221                clsy[i]    = 0;
222                sybad[i]   = 0;
223          }          }
224          //  ----------------------------          //  ----------------------------
225          ntrk =0 ;          ntrk =0 ;
# Line 319  struct cDbg { Line 330  struct cDbg {
330  struct cMini2track {  struct cMini2track {
331      double al[5];      double al[5];
332      double xm[NPLANE],ym[NPLANE],zm[NPLANE];      double xm[NPLANE],ym[NPLANE],zm[NPLANE];
333      double xm_a[NPLANE],ym_a[NPLANE];      double xm_a[NPLANE],ym_a[NPLANE],zm_a[NPLANE];
334      double xm_b[NPLANE],ym_b[NPLANE];      double xm_b[NPLANE],ym_b[NPLANE],zm_b[NPLANE];
335      double resx[NPLANE],resy[NPLANE];      double resx[NPLANE],resy[NPLANE];
336      double tailx[NPLANE],taily[NPLANE];      double tailx[NPLANE],taily[NPLANE];
337      double xgood[NPLANE],ygood[NPLANE];      double xgood[NPLANE],ygood[NPLANE];
# Line 330  struct cMini2track { Line 341  struct cMini2track {
341      double pfixed;      double pfixed;
342      double chi2;      double chi2;
343      double xv[NPLANE],yv[NPLANE],zv[NPLANE];      double xv[NPLANE],yv[NPLANE],zv[NPLANE];
344        double xv_a[NPLANE],yv_a[NPLANE],zv_a[NPLANE];
345        double xv_b[NPLANE],yv_b[NPLANE],zv_b[NPLANE];
346      double axv[NPLANE],ayv[NPLANE];      double axv[NPLANE],ayv[NPLANE];
347      double cov[5][5];      double cov[5][5];
348      double fact;      double fact;
# Line 563  struct cTrkETA { Line 576  struct cTrkETA {
576  struct cTrkSW{  struct cTrkSW{
577      int pfaid;      int pfaid;
578  };  };
579    /**
580     * \brief Struct to read alignment parameters
581     */
582    struct cTrkAlign {
583        
584        double omega[NSENSOR][NLADDER][NPLANE];
585        double beta[NSENSOR][NLADDER][NPLANE];
586        double gamma[NSENSOR][NLADDER][NPLANE];
587        double dx[NSENSOR][NLADDER][NPLANE];
588        double dy[NSENSOR][NLADDER][NPLANE];
589        double dz[NSENSOR][NLADDER][NPLANE];
590    
591    };
592    
593    /**
594     * \brief Struct to check reduction procedure: CN evaluation
595     */
596    struct cTrkCN {
597    
598        float cn[NVK][NVIEW];
599        float cnrms[NVK][NVIEW];
600        int cnn[NVK][NVIEW];
601        int clstr[NSTRIPVK][NVK][NVIEW];
602        int strange[NSTRIPVK][NVK][NVIEW];
603    
604    };
605    /**
606     * \brief Struct to check reduction procedure: pedestal subtraction
607     */
608    struct cTrkEvent {
609        float value[NSTRIP];    
610    };
611    
612  extern "C" {  extern "C" {
613    
# Line 579  extern "C" { Line 624  extern "C" {
624      extern struct cTrkETA     pfa_;      extern struct cTrkETA     pfa_;
625      extern struct cTrkSW      sw_;      extern struct cTrkSW      sw_;
626      extern struct cDeltaB     deltab_;      extern struct cDeltaB     deltab_;
627        extern struct cTrkAlign   alignparameters_;
628        extern struct cTrkEvent   calibratedsignal_;
629    
630      void fillpedsigfromdefault_();      void fillpedsigfromdefault_();
631      int readmipparam_();      int readmipparam_();
# Line 594  extern "C" { Line 641  extern "C" {
641      float riseta_(int*,float*);      float riseta_(int*,float*);
642      void chisq_(int*, int*);      void chisq_(int*, int*);
643    
644  }  };
645    
646    
647  #endif  #endif

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.23