CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/DataFormats/Provenance/src/EventEntryInfo.cc

Go to the documentation of this file.
00001 #include "DataFormats/Provenance/interface/EventEntryInfo.h"
00002 #include <ostream>
00003 
00004 /*----------------------------------------------------------------------
00005 
00006 ----------------------------------------------------------------------*/
00007 
00008 namespace edm {
00009   EventEntryInfo::EventEntryInfo() :
00010     branchID_(),
00011     productID_(),
00012     entryDescriptionID_()
00013   {}
00014 
00015   EventEntryInfo::~EventEntryInfo() {}
00016 
00017   void
00018   EventEntryInfo::write(std::ostream& os) const {
00019     os << "branch ID = " << branchID() << '\n';
00020     os << "product ID = " << productID() << '\n';
00021     os << "entry description ID = " << entryDescriptionID() << '\n';
00022   }
00023     
00024   bool
00025   operator==(EventEntryInfo const& a, EventEntryInfo const& b) {
00026     return
00027       a.branchID() == b.branchID()
00028       && a.productID() == b.productID()
00029       && a.entryDescriptionID() == b.entryDescriptionID();
00030   }
00031 }