CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/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     productStatus_(productstatus::uninitialized()),
00013     entryDescriptionID_()
00014   {}
00015 
00016   EventEntryInfo::~EventEntryInfo() {}
00017 
00018   void
00019   EventEntryInfo::write(std::ostream& os) const {
00020     os << "branch ID = " << branchID() << '\n';
00021     os << "product ID = " << productID() << '\n';
00022     os << "product status = " << static_cast<int>(productStatus()) << '\n';
00023     os << "entry description ID = " << entryDescriptionID() << '\n';
00024   }
00025     
00026   bool
00027   operator==(EventEntryInfo const& a, EventEntryInfo const& b) {
00028     return
00029       a.branchID() == b.branchID()
00030       && a.productID() == b.productID()
00031       && a.productStatus() == b.productStatus()
00032       && a.entryDescriptionID() == b.entryDescriptionID();
00033   }
00034 }