CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/Provenance/interface/EventProcessHistoryID.h

Go to the documentation of this file.
00001 #ifndef DataFormats_Provenance_EventProcessHistoryID_h
00002 #define DataFormats_Provenance_EventProcessHistoryID_h
00003 
00004 #include "DataFormats/Provenance/interface/EventID.h"
00005 #include "DataFormats/Provenance/interface/ProcessHistoryID.h"
00006 
00007 // This class needed for backward compatibility only.
00008 // It is relevant if and only if fileFormatVersion.eventHistoryBranch() is true.
00009 
00010 namespace edm {
00011   class EventProcessHistoryID {
00012   public:
00013     EventProcessHistoryID() : eventID_(), processHistoryID_() {}
00014     EventProcessHistoryID(EventID const& id, ProcessHistoryID const& ph) : eventID_(id), processHistoryID_(ph) {}
00015     EventID const& eventID() const {return eventID_;}
00016     ProcessHistoryID const& processHistoryID() const {return processHistoryID_;}
00017   private:
00018     EventID eventID_;
00019     ProcessHistoryID processHistoryID_;
00020   };
00021   inline
00022   bool operator<(EventProcessHistoryID const& lh, EventProcessHistoryID const& rh) {
00023       return lh.eventID() < rh.eventID();
00024   }
00025 }
00026 
00027 
00028 #endif