Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include "DataFormats/Provenance/interface/EventAuxiliary.h"
#include <ostream>

/*----------------------------------------------------------------------

----------------------------------------------------------------------*/

namespace edm {
  void EventAuxiliary::write(std::ostream& os) const {
    os << "Process History ID = " << processHistoryID_ << std::endl;
    os << id_ << std::endl;
    //os << "TimeStamp = " << time_ << std::endl;
  }

  bool isSameEvent(EventAuxiliary const& a, EventAuxiliary const& b) {
    return a.id() == b.id() && a.processGUID() == b.processGUID() && a.luminosityBlock() == b.luminosityBlock() &&
           a.time() == b.time() && a.isRealData() == b.isRealData() && a.experimentType() == b.experimentType() &&
           a.bunchCrossing() == b.bunchCrossing() && a.storeNumber() == b.storeNumber();
  }
}  // namespace edm