Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CDTrackInfo.h

Go to the documentation of this file.
00001 
00002 
00003 // Program name: CDTrackInfo.h
00004 //
00005 // Package: CalDetTracker
00006 //
00007 // Purpose: 
00008 //
00009 // Contact: Chris Smith, Ryan Nichol, Leo Jenner or Jeff Hartnell
00011 
00012 #ifndef CDTRACKINFO_H
00013 #define CDTRACKINFO_H
00014 
00015 #include "TObject.h"
00016 
00017 //......................................................................
00018 
00019 class CDTrackInfo : public TObject
00020 {
00021 
00022  private: 
00023 
00024   int fevenresult;     //track result from even planes (0=nothing found,
00025   int foddresult;      //track result from odd planes   1=track found,2=vetoed)
00026   int fnhits_even;     //number of even plane hits
00027   int fnhits_odd;      //number of odd plane hits
00028   double ftime;        //unix time in seconds
00029   float ftot_pe;       //Total npes in all hits in snarl
00030   float ftrk_pe;       //Total npes in tracked hits
00031   float fvertex1[2];   //first vertex (plane,strip)
00032   float fvertex2[2];   //last vertex (plane,strip)
00033   float fevenangle[2]; //even planes (y-intercept,angle)
00034   float foddangle[2];  //odd planes (y-intercept,angle)
00035   float ftrk_range;    //track length (cm) in scintillator (*6.0 to get range)
00036   double fabstime;     //AbsTime from canddigitlisthandle - this value 
00037                        //is in seconds and is subtracted from all digit times
00038                        //for this event (obtained from clock tick*1.5625e-9)
00039   int ftriggertime;    //trigger time in clock ticks
00040   bool fCC_Hit;        //Cosmic Counter Hit Consistent with track?
00041 
00042  public:
00043 
00044   CDTrackInfo();
00045   CDTrackInfo(int,int,int,int,double,float,float,
00046                   float*,float*,float*,float*,float,double,int,bool);
00047   ~CDTrackInfo();
00048 
00049   int GetResult(int);
00050   int GetNHits(int);
00051   double GetTime() {return ftime;}
00052   float GetTotPE() {return ftot_pe;}
00053   float GetTrkPE() {return ftrk_pe;}
00054   bool IsCCHit() {return fCC_Hit;}
00055   float *GetVertex(int);
00056   float *GetAngle(int);
00057   float GetRange() {return ftrk_range;}
00058   void SetRange(float trk_range) {ftrk_range=trk_range;}
00059   void SetAbsTime(double abstime) {fabstime=abstime;}
00060   double GetAbsTime() {return fabstime;}  
00061   void SetTriggerTime(int triggertime) {ftriggertime=triggertime;}
00062   int GetTriggerTime() {return ftriggertime;}
00063 
00064   ClassDef(CDTrackInfo,1)
00065 
00066 };
00067 #endif //CDTRACKINFO_H
00068 
00069 
00070 
00071 
00072 
00073 
00074 
00075 
00076 
00077 

Generated on Mon Feb 15 11:06:31 2010 for loon by  doxygen 1.3.9.1