00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: MdcxAddHits.h,v 1.5 2009/12/16 08:59:13 zhangy Exp $ 00004 // 00005 // Description: Given list of hits and list of tracks, try to add unused 00006 // hits to tracks 00007 // Class Header 00008 // 00009 // Environment: 00010 // Software developed for the BaBar Detector at the SLAC B-Factory. 00011 // 00012 // Author List: 00013 // S. Wagner 00014 // 00015 // Copyright Information: 00016 // Copyright (C) 1994 BEPCII 00017 // 00018 // History: 00019 // Migration for BESIII MDC 00020 // 00021 //------------------------------------------------------------------------ 00022 #ifndef _MDCXADDHITS_ 00023 #define _MDCXADDHITS_ 00024 00025 #include <iostream> 00026 #include <fstream> 00027 #include "CLHEP/Alist/AList.h" 00028 00029 class MdcxHel; 00030 class MdcxFittedHel; 00031 class MdcxHit; 00032 00033 class MdcxAddHits{//:public Algorithm { 00034 public: 00035 MdcxAddHits(/*const std::string& name, ISvcLocator* pSvcLocator,*/ 00036 HepAList<MdcxFittedHel> &f, const HepAList<MdcxHit> &h, float addit=1.5); 00037 MdcxAddHits(/*const std::string& name, ISvcLocator* pSvcLocator,*/ 00038 HepAList<MdcxHel> &f, const HepAList<MdcxHit> &h, float addit=1.5); 00039 virtual ~MdcxAddHits( ); 00040 /* 00041 StatusCode initialize(); 00042 StatusCode execute(); 00043 StatusCode finalize(); 00044 */ 00045 //functions 00046 const HepAList<MdcxHit> &GetAssociates(int i=0); 00047 00048 protected: 00049 //functions 00050 //data 00051 float addcut; 00052 int ncalc,nadded; 00053 double sumpull; 00054 int kkk,kkl,thot,tuot; 00055 int ntracks,nhits; 00056 HepAList<MdcxHel> tttt; 00057 HepAList<MdcxHit> hhhh; 00058 HepAList<MdcxHit> listoasses; 00059 };//end of MdcxAddHits 00060 00061 #endif