00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: MdcxMergeDups.h,v 1.4 2011/12/08 06:52:29 zhangy Exp $ 00004 // 00005 // Description: Give a list of charged tracks, try to find and merge 00006 // duplicates. 00007 // 00008 // Environment: 00009 // Software developed for the BaBar Detector at the SLAC B-Factory. 00010 // 00011 // Author List: 00012 // S. Wagner 00013 // 00014 // Copyright Information: 00015 // Copyright (C) 1999 BEPCII 00016 // 00017 // History: 00018 // Migration for BESIII MDC 00019 // 00020 //------------------------------------------------------------------------ 00021 #ifndef _MDCXMERGEDUPS_ 00022 #define _MDCXMERGEDUPS_ 00023 00024 #include <iostream> 00025 #include <fstream> 00026 #include "CLHEP/Alist/AList.h" 00027 #include "MdcxReco/MdcxFittedHel.h" 00028 00029 class MdcxMergeDups{ 00030 public: 00031 MdcxMergeDups(HepAList<MdcxFittedHel> &f, int debug); 00032 virtual ~MdcxMergeDups( ); 00033 inline const HepAList<MdcxFittedHel> &GetMergedTrklist(){return CleanTrklist;} 00034 //functions 00035 protected: 00036 HepAList<MdcxFittedHel> NewTrklist; 00037 HepAList<MdcxFittedHel> CleanTrklist; 00038 int m_debug; 00039 //functions 00040 void KillList(){HepAListDeleteAll(NewTrklist);} 00041 };//endof MdcxMergeDups 00042 00043 #endif