/[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.30 by pam-fi, Tue Jan 15 14:28:45 2008 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 376  struct cMini2track { Line 378  struct cMini2track {
378    
379    
380  };  };
381    
382    // ==================================================================
383    /**
384     * \brief Struct to pass DELTAB parameters to F77 routines
385     */
386    struct cDeltaB {
387        double delta0;
388        double delta1;
389        double dlt;
390    };
391    
392  //  //
393  /**  /**
394   * \Struct for the hough transform variables   * \Struct for the hough transform variables
# Line 444  struct cTrkHough { Line 457  struct cTrkHough {
457  };  };
458    
459  /**  /**
460     * \Struct for track candidates after hough transform
461     */
462    struct cTrkCandidates {
463        int ntracks;
464        float al[NTRACKSMAX][5];
465        float xm[NTRACKSMAX][NPLANE];
466        float ym[NTRACKSMAX][NPLANE];
467        float zm[NTRACKSMAX][NPLANE];
468        float resx[NTRACKSMAX][NPLANE];
469        float resy[NTRACKSMAX][NPLANE];
470        float xv[NTRACKSMAX][NPLANE];
471        float yv[NTRACKSMAX][NPLANE];
472        float zv[NTRACKSMAX][NPLANE];
473        float axv[NTRACKSMAX][NPLANE];
474        float ayv[NTRACKSMAX][NPLANE];
475        float xgood[NTRACKSMAX][NPLANE];
476        float ygood[NTRACKSMAX][NPLANE];
477        int cp[NTRACKSMAX][NPLANE];
478        int cls[NTRACKSMAX][NPLANE];
479        int sensor[NTRACKSMAX][NPLANE];
480        int ladder[NTRACKSMAX][NPLANE];
481        float bx[NTRACKSMAX][NPLANE];
482        float by[NTRACKSMAX][NPLANE];
483        float chi2[NTRACKSMAX];
484        
485        void Init(){
486            ntracks=0;
487            for(int i=0; i<NTRACKSMAX; i++){
488                for(int ii=0; ii<5; ii++)al[i][ii]=0;
489                chi2[i]=0;
490                for(int ip=0; ip<NPLANE; ip++){
491                    xm[i][ip]=0;
492                    ym[i][ip]=0;
493                    zm[i][ip]=0;
494                    resx[i][ip]=0;
495                    resy[i][ip]=0;
496                    xv[i][ip]=0;
497                    yv[i][ip]=0;
498                    zv[i][ip]=0;
499                    axv[i][ip]=0;
500                    ayv[i][ip]=0;
501                    xgood[i][ip]=0;
502                    ygood[i][ip]=0;
503                    cp[i][ip]=0;
504                    cls[i][ip]=0;
505                    sensor[i][ip]=0;
506                    ladder[i][ip]=0;
507                    bx[i][ip]=0;
508                    by[i][ip]=0;
509                }
510            }
511    
512        };
513    
514    
515    };
516    
517    /**
518   * \brief Struct to pass VA1-mask to F77 routines   * \brief Struct to pass VA1-mask to F77 routines
519   */   */
520  struct cTrkMask {  struct cTrkMask {
# Line 503  extern "C" { Line 574  extern "C" {
574      extern struct cPath       path_;      extern struct cPath       path_;
575      extern struct cDbg        dbg_;      extern struct cDbg        dbg_;
576      extern struct cTrkHough   houghevent_;      extern struct cTrkHough   houghevent_;
577        extern struct cTrkCandidates trackcandidates_;
578      extern struct cMini2track track_;      extern struct cMini2track track_;
579      extern struct cTrkETA     pfa_;      extern struct cTrkETA     pfa_;
580      extern struct cTrkSW      sw_;      extern struct cTrkSW      sw_;
581        extern struct cDeltaB     deltab_;
582    
583      void fillpedsigfromdefault_();      void fillpedsigfromdefault_();
584      int readmipparam_();      int readmipparam_();
# Line 519  extern "C" { Line 592  extern "C" {
592      void gufld_(float*, float*);      void gufld_(float*, float*);
593      void xyzpam_(int*,int*,int*,int*,int*,float*,float*,float*,float*);      void xyzpam_(int*,int*,int*,int*,int*,float*,float*,float*,float*);
594      float riseta_(int*,float*);      float riseta_(int*,float*);
595        void chisq_(int*, int*);
596    
597  }  }
598    

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

  ViewVC Help
Powered by ViewVC 1.1.23