00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: MdcxHits.h,v 1.6 2009/12/16 08:59:13 zhangy Exp $ 00004 // 00005 // Description: 00006 // Class Header for |MdcxHits| - container for |MdcxHit|s 00007 // 00008 // Environment: 00009 // Software developed for the BaBar Detector at the SLAC B-Factory. 00010 // 00011 // Author List: 00012 // A. Snyder 00013 // S. Wagner 00014 // 00015 // Copyright Information: 00016 // Copyright (C) 1994 BEPCII 00017 // 00018 // History: 00019 // Migration for BESIII MDC 00020 // 00021 //------------------------------------------------------------------------ 00022 #ifndef MDCXHITS_H 00023 #define MDCXHITS_H 00024 00025 #include <iostream> 00026 #include <fstream> 00027 #include "MdcxReco/MdcxHit.h" 00028 #include "CLHEP/Alist/AList.h" 00029 #include "MdcRawEvent/MdcDigi.h" 00030 #include "MdcRecEvent/RecMdcHit.h" 00031 #include "RawDataProviderSvc/IRawDataProviderSvc.h" 00032 00033 class MdcxHits { 00034 public: 00035 MdcxHits(); 00036 //MdcxHits(MdcDigiCol* digiCol, float c0=0.0, float cresol=0.0180); 00037 virtual ~MdcxHits(); 00038 void reset(); 00039 void create(MdcDigiVec digiVec, float c0=0.0, float cresol=0.0180); 00040 inline const HepAList<MdcxHit> &GetMdcxHitList() { return mdcxHitList; } 00041 void print(std::ostream &o,int pmax=10)const; 00042 private: 00043 HepAList<MdcxHit> mdcxHitList; 00044 void KillList() { HepAListDeleteAll(mdcxHitList); } 00045 static double timecut; 00046 int m_debug; 00047 bool m_hitInUse[43][288]; 00048 }; 00049 #endif 00050