00001 // 00002 // File: TrkExtAlg.h 00003 // Author: Wang Liangliang 00004 // Date: 2005.4.4 00005 // Descreption: Algorithm for track extrapotation whose kernel bases on GEANT4. 00006 // 00007 00008 00009 00010 #include "GaudiKernel/Algorithm.h" 00011 00012 //----test---- 00013 //#include "GaudiKernel/NTuple.h" 00014 //----end test---- 00015 00016 #include "TrkExtAlg/Ext_track.h" 00017 00018 using namespace std; 00019 00020 class TrkExtAlg:public Algorithm 00021 { 00022 public: 00023 TrkExtAlg (const std::string& name, ISvcLocator* pSvcLocator); 00024 ~TrkExtAlg(); 00025 StatusCode initialize(); 00026 StatusCode execute(); 00027 StatusCode finalize(); 00028 00029 private: 00030 00031 Ext_track *myExtTrack; 00032 00033 // ofstream *myFile; 00034 00035 string myParticleName; 00036 string myInputTrk; 00037 00038 bool msgFlag;//message on/off true/false 00039 bool myGeomOptimization; 00040 bool myResultFlag; 00041 bool myBFieldOn; 00042 int m_detVer; 00043 bool myUseMucKal; 00044 int myMucWindow; 00045 /* 00046 //----For Ext Test---- 00047 NTuple::Tuple* myNtuple; 00048 NTuple::Item<double> myCharge; 00049 NTuple::Item<double> myEmcHitFlag; 00050 NTuple::Item<double> myEmcHitTheta; 00051 NTuple::Item<double> myEmcHitPhi; 00052 NTuple::Item<double> myEmcVolNum; 00053 NTuple::Item<double> myEmcExtTheta; 00054 NTuple::Item<double> myEmcExtPhi; 00055 NTuple::Item<double> myDTheta; 00056 NTuple::Item<double> myDPhi; 00057 //----end test---- 00058 */ 00059 };