/[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.27 by pam-fi, Fri Aug 31 14:56:50 2007 UTC revision 1.28 by pam-fi, Wed Nov 7 10:38:51 2007 UTC
# Line 27  Line 27 
27  #define NANGMAX 21  #define NANGMAX 21
28  #define NETAVALMAX 500  #define NETAVALMAX 500
29    
30    #define NTRACKSMAX (NCLOYZ_MAX*NCLOXZ_MAX)
31    
32  #include <CalibTrk1Event.h>  #include <CalibTrk1Event.h>
33  #include <CalibTrk2Event.h>  #include <CalibTrk2Event.h>
# Line 38  using namespace pamela; Line 39  using namespace pamela;
39  #include <TTree.h>  #include <TTree.h>
40    
41    
42    
43  #include <fstream>  #include <fstream>
44  #include <iostream>  #include <iostream>
45  /**  /**
# Line 444  struct cTrkHough { Line 446  struct cTrkHough {
446  };  };
447    
448  /**  /**
449     * \Struct for track candidates after hough transform
450     */
451    struct cTrkCandidates {
452        int ntracks;
453        float al[NTRACKSMAX][5];
454        float xm[NTRACKSMAX][NPLANE];
455        float ym[NTRACKSMAX][NPLANE];
456        float zm[NTRACKSMAX][NPLANE];
457        float resx[NTRACKSMAX][NPLANE];
458        float resy[NTRACKSMAX][NPLANE];
459        float xv[NTRACKSMAX][NPLANE];
460        float yv[NTRACKSMAX][NPLANE];
461        float zv[NTRACKSMAX][NPLANE];
462        float axv[NTRACKSMAX][NPLANE];
463        float ayv[NTRACKSMAX][NPLANE];
464        float xgood[NTRACKSMAX][NPLANE];
465        float ygood[NTRACKSMAX][NPLANE];
466        int cp[NTRACKSMAX][NPLANE];
467        int cls[NTRACKSMAX][NPLANE];
468        int sensor[NTRACKSMAX][NPLANE];
469        int ladder[NTRACKSMAX][NPLANE];
470        float bx[NTRACKSMAX][NPLANE];
471        float by[NTRACKSMAX][NPLANE];
472        float chi2[NTRACKSMAX];
473        
474        void Init(){
475            ntracks=0;
476            for(int i=0; i<NTRACKSMAX; i++){
477                for(int ii=0; ii<5; ii++)al[i][ii]=0;
478                chi2[i]=0;
479                for(int ip=0; ip<NPLANE; ip++){
480                    xm[i][ip]=0;
481                    ym[i][ip]=0;
482                    zm[i][ip]=0;
483                    resx[i][ip]=0;
484                    resy[i][ip]=0;
485                    xv[i][ip]=0;
486                    yv[i][ip]=0;
487                    zv[i][ip]=0;
488                    axv[i][ip]=0;
489                    ayv[i][ip]=0;
490                    xgood[i][ip]=0;
491                    ygood[i][ip]=0;
492                    cp[i][ip]=0;
493                    cls[i][ip]=0;
494                    sensor[i][ip]=0;
495                    ladder[i][ip]=0;
496                    bx[i][ip]=0;
497                    by[i][ip]=0;
498                }
499            }
500    
501        };
502    
503    
504    };
505    
506    /**
507   * \brief Struct to pass VA1-mask to F77 routines   * \brief Struct to pass VA1-mask to F77 routines
508   */   */
509  struct cTrkMask {  struct cTrkMask {
# Line 503  extern "C" { Line 563  extern "C" {
563      extern struct cPath       path_;      extern struct cPath       path_;
564      extern struct cDbg        dbg_;      extern struct cDbg        dbg_;
565      extern struct cTrkHough   houghevent_;      extern struct cTrkHough   houghevent_;
566        extern struct cTrkCandidates trackcandidates_;
567      extern struct cMini2track track_;      extern struct cMini2track track_;
568      extern struct cTrkETA     pfa_;      extern struct cTrkETA     pfa_;
569      extern struct cTrkSW      sw_;      extern struct cTrkSW      sw_;

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.23