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

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

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

revision 1.1.1.1 by mocchiut, Fri May 19 13:15:52 2006 UTC revision 1.2 by pam-fi, Thu Jun 1 09:03:09 2006 UTC
# Line 10  Line 10 
10  #include <TClonesArray.h>  #include <TClonesArray.h>
11  #include <TrkStruct.h>  #include <TrkStruct.h>
12    
13    // z-coordinate of track state-vector reference-plane
14    #define ZINI 23.5  
15    // upper and lower (mechanical) z-coordinate of the tracker
16    #define ZTRKUP 22.29
17    #define ZTRKDW -22.22
18    
19    
20  /**  /**
21   * \brief Class to describe, by points, a particle trajectory in the apparatus.   * \brief Class to describe, by points, a particle trajectory in the apparatus.
22   *   *
# Line 26  class Trajectory : public TObject{ Line 33  class Trajectory : public TObject{
33      float* x;   ///< x coordinates      float* x;   ///< x coordinates
34      float* y;   ///< y coordinates      float* y;   ///< y coordinates
35      float* z;   ///< z coordinates      float* z;   ///< z coordinates
36        float* thx; ///< x projected angle
37        float* thy; ///< y projected angle
38        float* tl;  ///< track length
39    
40      Trajectory(){npoint=1; x = new float; y = new float; z = new float; return;};      Trajectory();
41      Trajectory(int n);      Trajectory(int n);
42      Trajectory(int n, float* pz);      Trajectory(int n, float* pz);
43      void Dump();      void Dump();
44    
45        float GetLength(){float l=0; for(int i=0; i<npoint;i++)l=l+tl[i]; return l;};
46        float GetLength(int,int);
47    
48      ClassDef(Trajectory,1);      ClassDef(Trajectory,1);
49    
50  };  };
# Line 74  public: Line 87  public:
87      void Dump();      void Dump();
88    
89      Bool_t HasImage(){return !(image==-1);} ///< Returns true if the track has an image      Bool_t HasImage(){return !(image==-1);} ///< Returns true if the track has an image
90          int DoTrack(Trajectory* t);                     ///< Evaluates the trajectory in the apparatus.      int DoTrack(Trajectory* t);                         ///< Evaluates the trajectory in the apparatus.
91          float BdL(){return 0;};                                 ///< Evaluates the integral of B*dL along the track.      int DoTrack2(Trajectory* t);                        ///< Evaluates the trajectory in the apparatus.
92        float BdL(){return 0;};                                     ///< Evaluates the integral of B*dL along the track.
93      Int_t GetNX(){Int_t n=0; for(Int_t i=0; i<6; i++)n+=xgood[i]; return n;};      Int_t GetNX(){Int_t n=0; for(Int_t i=0; i<6; i++)n+=xgood[i]; return n;};
94      Int_t GetNY(){Int_t n=0; for(Int_t i=0; i<6; i++)n+=ygood[i]; return n;};      Int_t GetNY(){Int_t n=0; for(Int_t i=0; i<6; i++)n+=ygood[i]; return n;};
95      Float_t GetRigidity();      Float_t GetRigidity();

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23