/[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.8 by pam-fi, Thu Oct 26 16:22:36 2006 UTC revision 1.9 by pam-fi, Fri Oct 27 16:08:18 2006 UTC
# Line 6  Line 6 
6  #ifndef trkstruct_h  #ifndef trkstruct_h
7  #define trkstruct_h  #define trkstruct_h
8    
9  #define NTRKMAX 10  #define NPLANE 6
 #define NSINGMAX 100  
10    
11  #define NCLMAX_VIEW 50  #define NCLMAX_VIEW 200         //max n.clusters per view
12  #define NCLSTR 20  #define NCLSTR 20               //max n.strip per cluster
13  #define NCLMAX (NCLMAX_VIEW*12)  #define NCLMAX (NCLMAX_VIEW*12) //max n.clusters total
14  #define NCLBUFF (NCLMAX*NCLSTR)  #define NCLBUFF (NCLMAX*NCLSTR)
15    
16  #define NPLANE 6  #define NDBLT_MAX_NT 1000   // 0.2*ndblt_max
17    #define NTRPT_MAX_NT 10000   // 0.2*ntrpt_max
18    #define NCLOYZ_MAX 200
19    #define NCLOXZ_MAX 200    
20    
21    #define NTRKMAX 10
22    #define NSINGMAX NCLMAX //100
23    
24    
25    
26  #include <CalibTrk1Event.h>  #include <CalibTrk1Event.h>
27  #include <CalibTrk2Event.h>  #include <CalibTrk2Event.h>
# Line 285  struct cMini2track { Line 292  struct cMini2track {
292      int idcand;      int idcand;
293  };  };
294  //  //
295    /**
296     * \Struct for the hough transform variables
297     */
298    
299    struct cTrkHough {
300    
301      int ndblt;
302      float alfayz1[NDBLT_MAX_NT];
303      float alfayz2[NDBLT_MAX_NT];
304      int db_cloud[NDBLT_MAX_NT];
305      int ntrpt;
306      float alfaxz1[NTRPT_MAX_NT];
307      float alfaxz2[NTRPT_MAX_NT];
308      float alfaxz3[NTRPT_MAX_NT];
309      int tr_cloud[NTRPT_MAX_NT];
310      int nclouds_yz;
311      float alfayz1_av[NCLOYZ_MAX];
312      float alfayz2_av[NCLOYZ_MAX];
313      int ptcloud_yz[NCLOYZ_MAX];
314      int nclouds_xz;
315      float alfaxz1_av[NCLOXZ_MAX];
316      float alfaxz2_av[NCLOXZ_MAX];
317      float alfaxz3_av[NCLOXZ_MAX];
318      int ptcloud_xz[NCLOXZ_MAX];
319      int nclstr;
320      float totaltime;
321      float houghtime;
322      float fittime;
323    
324    
325      void InitcTrkHough(){
326    
327        ndblt = 0;
328        ntrpt = 0;
329        nclouds_yz = 0;
330        nclouds_xz = 0;
331        nclstr = 0;
332        totaltime = 0;
333        houghtime = 0;
334        fittime = 0;
335        for(int i=0;i<NDBLT_MAX_NT ;i++){
336          alfayz1[i] = 0;
337          alfayz2[i] = 0;
338          db_cloud[i] = 0;
339        }
340        for(int i=0;i<NTRPT_MAX_NT ;i++){
341          alfaxz1[i] = 0;
342          alfaxz2[i] = 0;
343          alfaxz3[i] = 0;
344          tr_cloud[i] = 0;
345        }
346        for(int i=0;i<NCLOYZ_MAX ;i++){
347          alfayz1_av[i] = 0;
348          alfayz2_av[i] = 0;
349          ptcloud_yz[i] = 0;
350        }
351        for(int i=0;i<NCLOXZ_MAX ;i++){
352          ptcloud_xz[i] = 0;
353          alfaxz1_av[i] = 0;
354          alfaxz2_av[i] = 0;
355          alfaxz3_av[i] = 0;
356        }
357      }
358      
359    };
360    
361    
362  extern "C" {  extern "C" {
363    
364      extern struct cTrkCalib  pedsigbad_;      extern struct cTrkCalib   pedsigbad_;
365      extern struct cTrkLevel0 level0event_;      extern struct cTrkLevel0  level0event_;
366      extern struct cTrkLevel1 level1event_;      extern struct cTrkLevel1  level1event_;
367      extern struct cTrkLevel2 level2event_;      extern struct cTrkLevel2  level2event_;
368      extern struct cPath      path_;      extern struct cPath       path_;
369      extern struct cBPath     bpath_;      extern struct cBPath      bpath_;
370      extern struct cDbg       dbg_;      extern struct cDbg        dbg_;
371      extern struct cMini2track track_;      extern struct cMini2track track_;
372        extern struct cTrkHough   hough_;
373    
374      void fillpedsigfromdefault_();      void fillpedsigfromdefault_();
375      int readmipparam_();      int readmipparam_();

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23