| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

MixSimHit.h

Go to the documentation of this file.
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   {
00022     sht = 0;
00023     TimeStamp initime(0.0);
00024     hitTime     = initime;
00025     trivialtime = 0.0;
00026   }
00027   ~MixSimHit(){};
00028   
00029   void setHit(DayaBay::SimHit* simhit) { sht = simhit; }
00030 
00031   DayaBay::SimHit* sht;
00032   TimeStamp    hitTime;
00033   double       trivialtime;
00034 };
00035 
00036 inline bool operator<(const MixSimHit& lmh, const MixSimHit& rmh)
00037 { 
00038   return lmh.hitTime < rmh.hitTime ||
00039        ( lmh.hitTime == rmh.hitTime &&
00040          lmh.trivialtime < rmh.trivialtime );
00041 }
00042 
00043 inline bool operator!=(const MixSimHit& lmh, const MixSimHit& rmh)
00044 { 
00045   return (lmh.hitTime != rmh.hitTime || lmh.trivialtime != rmh.trivialtime);
00046 }
00047 
00048 #endif //MIXSIMHIT_H
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:45:03 2011 for PreElecSimSvc by doxygen 1.4.7