CDF II
CDF KITS
source navigation ]
diff markup ]
identifier search ]
freetext search ]
file search ]
 
Architecture: i386 ]
Version: 4.10.4 ] [ 4.10.5 ] [ 4.8.4 ] [ 4.8.4l3s ] [ 4.8.5 ] [ 4.9.0 ] [ 4.9.1 ] [ 4.9.1.hpt3 ] [ 4.9.1hpt3 ] [ 4.9.1top1 ] [ 5.0.0 ] [ 5.1.0 ] [ 5.1.0beamonly ] [ 5.1.1 ] [ 5.2.0 ] [ 5.3.0 ] [ 5.3.1 ] [ 5.3.1dsp ] [ 5.3.3 ] [ 5.3.3_nt ] [ 5.3.4 ] [ 6.1.1 ] [ 6.1.1b ] [ 6.1.2 ] [ 6.1.3 ] [ 6.1.4 ] [ 6.1.4int3 ] [ 6.1.4mc ] [ 6.1.4mc_a ] [ 6.1.6 ] [ development ]

001 #ifndef TRK_BASICTRACKIMP_HH
002 #define TRK_BASICTRACKIMP_HH
003 /****************************************************************************
004 
005 TRK_BasicTrackImp.hh : This is a simple implementation of a BasicTrack.
006 Tracks are constructed by hand from the px,py and pz.
007 
008 Author   : Alfred Lee
009 Created  : 19-Aug-1998
010 
011 Modification Log:
012 
013 
014 ****************************************************************************/
015 
016 #include "TRK_BasicTrack.hh"
017 
018 //needed for private data.
019 #include <vector>
020 using std::vector;
021 
022 //forward reference auto_ptr;
023 namespace std {
024   template<class X> class auto_ptr; 
025 }
026 using std::auto_ptr;
027 
028 
029 //"Is usable as" a BasicTrack.
030 class TRK_BasicTrackImp : public virtual TRK_BasicTrack {
031 public:
032 
033   //Constructors: default set everything to zero; copy; take px,py,pz
034   TRK_BasicTrackImp();
035   TRK_BasicTrackImp(const TRK_BasicTrackImp &);
036   TRK_BasicTrackImp(double Px, double Py, double Pz);
037 
038   //Will implement interface methods, so override here.
039   virtual auto_ptr<TRK_BasicTrack> newDefault();
040   virtual auto_ptr<TRK_BasicTrack> newCopy();
041 
042   //Implement accessors.
043   virtual double pt(double rho = 0.0) const;
044   virtual double pz(double rho = 0.0) const;
045   virtual vector<double> p(double rho = 0.0) const;
046   virtual vector<double> position(double rho = 0.0) const;
047 
048   virtual int trackID() const;
049 
050   virtual ~TRK_BasicTrackImp() {};
051 
052 private:
053 
054   //Used to assign unique trackID when created.
055   static int _ournextID;
056 
057   //simple-minded data storage.
058   int _myID;
059   vector<double> _myp;
060 };
061 #endif //TRK_BASICTRACKIMP_HH
062 

source navigation ] diff markup ] identifier search ] freetext search ] file search ]

This page was automatically generated by the LXR engine.
The LXR team
Valid HTML 4.01!

Send problems or questions to cdfcode@fnal.gov