CMS 3D CMS Logo

Public Member Functions

PathTimerInserter Class Reference

#include <PathTimerInserter.h>

Inheritance diagram for PathTimerInserter:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

 PathTimerInserter (edm::ParameterSet const &ps)
virtual void produce (edm::Event &e, edm::EventSetup const &c)
virtual ~PathTimerInserter ()

Detailed Description

Definition at line 14 of file PathTimerInserter.h.


Constructor & Destructor Documentation

PathTimerInserter::PathTimerInserter ( edm::ParameterSet const &  ps) [explicit]

Definition at line 9 of file PathTimerInserter.cc.

{
  produces<HLTPerformanceInfo>();
}
PathTimerInserter::~PathTimerInserter ( ) [virtual]

Definition at line 14 of file PathTimerInserter.cc.

{
}  

Member Function Documentation

void PathTimerInserter::produce ( edm::Event e,
edm::EventSetup const &  c 
) [virtual]

Implements edm::EDProducer.

Definition at line 19 of file PathTimerInserter.cc.

References CrabTask::prod, and edm::Event::put().

{
  
  // warning: the trigger results will be cleared as a result of inserting 
  // this object into the event
  
  edm::Service<edm::service::PathTimerService> pts;
  std::auto_ptr<HLTPerformanceInfo> prod=pts->getInfo();

  e.put(prod);
}