CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/DataFormats/FWLite/src/EventHistoryGetter.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     DataFormats
00004 // Class  :     EventHistoryGetter
00005 //
00006 // Implementation:
00007 //     [Notes on implementation]
00008 //
00009 // Original Author:
00010 //         Created:  Wed Feb 10 11:15:18 CST 2010
00011 // $Id: EventHistoryGetter.cc,v 1.2 2010/07/24 14:14:47 wmtan Exp $
00012 //
00013 
00014 // user include files
00015 #include "DataFormats/FWLite/interface/EventHistoryGetter.h"
00016 
00017 
00018 namespace fwlite {
00019 
00020     //
00021     // constructors and destructor
00022     //
00023     EventHistoryGetter::EventHistoryGetter(const Event* event) {
00024         event_ = event;
00025     }
00026 
00027     EventHistoryGetter::~EventHistoryGetter() {}
00028 
00029     //
00030     // const member functions
00031     //
00032     const edm::ProcessHistory& EventHistoryGetter::history() const {
00033         return event_->history();
00034     }
00035 }