/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

MixHeader.h
Go to the documentation of this file.
00001 /*
00002  * \class MixHeader
00003  *
00004  * \brief version of MixHeader for Mixing
00005  *
00006  * yczhang@ihep.ac.cn Thu Dec 04 12:50:34 CDT 2009
00007  *
00008  */
00009 
00010 #ifndef MixHeader_H
00011 #define MixHeader_H
00012 
00013 #include "PerReadoutEvent/PerReadoutHeader.h"
00014 
00015 class MixHeader
00016 {
00017   friend bool operator < (const MixHeader& lmh, const MixHeader& rmh);
00018   friend bool operator!= (const MixHeader& lmh, const MixHeader& rmh);
00019  public:
00020   MixHeader(){};
00021   ~MixHeader(){};
00022 
00023   PerReadoutHeader* hder;
00024   long         entry;
00025   std::string  sample;
00026 };
00027 
00028 inline bool operator<(const MixHeader& lmh, const MixHeader& rmh)
00029 { 
00030   return lmh.hder->readout->triggerTimeSec      < rmh.hder->readout->triggerTimeSec ||
00031         (lmh.hder->readout->triggerTimeSec     == rmh.hder->readout->triggerTimeSec &&
00032          lmh.hder->readout->triggerTimeNanoSec  < rmh.hder->readout->triggerTimeNanoSec ); 
00033 }
00034 
00035 inline bool operator!=(const MixHeader& lmh, const MixHeader& rmh)
00036 { 
00037   return lmh.hder != rmh.hder || lmh.entry != rmh.entry || lmh.sample != rmh.sample; 
00038 }
00039 #endif //MIXHEADER_H
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:15:20 for Mixing by doxygen 1.7.4