/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 /* 00002 * \class MixSimHit 00003 * 00004 * \brief version of SimHit for FastMCProduction 00005 * 00006 * yczhang@ihep.ac.cn Mon Dec 13 12:50:34 CDT 2010 00007 * 00008 */ 00009 00010 #ifndef MIXSIMHIT_H 00011 #define MIXSIMHIT_H 00012 00013 #include "Event/SimHit.h" 00014 00015 class MixSimHit 00016 { 00017 friend bool operator<(const MixSimHit& lmh, const MixSimHit& rmh); 00018 friend bool operator!=(const MixSimHit& lmh, const MixSimHit& rmh); 00019 public: 00020 MixSimHit(){} 00021 ~MixSimHit(){}; 00022 00023 void setHit(DayaBay::SimHit* simhit) { sht = simhit; } 00024 00025 DayaBay::SimHit* sht; 00026 }; 00027 00028 inline bool operator<(const MixSimHit& lmh, const MixSimHit& rmh) 00029 { 00030 return (lmh.sht->hitTime() < rmh.sht->hitTime()); 00031 } 00032 00033 inline bool operator!=(const MixSimHit& lmh, const MixSimHit& rmh) 00034 { 00035 return (lmh.sht->hitTime() != rmh.sht->hitTime()); 00036 } 00037 00038 #endif //MIXSIMHIT_H