#include <SimG4Core/Watcher/interface/SimWatcherMaker.h>
Public Member Functions | |
virtual void | make (const edm::ParameterSet &p, SimActivityRegistry ®, boost::shared_ptr< SimWatcher > &oWatcher, boost::shared_ptr< SimProducer > &oProd) const |
SimWatcherMaker () | |
Private Member Functions | |
boost::shared_ptr< SimProducer > | getSimProducer (void *, boost::shared_ptr< T > &iProd) const |
boost::shared_ptr< SimProducer > | getSimProducer (SimProducer *, boost::shared_ptr< T > &iProd) const |
Usage: <usage>
Definition at line 32 of file SimWatcherMaker.h.
SimWatcherMaker< T >::SimWatcherMaker | ( | ) | [inline] |
boost::shared_ptr<SimProducer> SimWatcherMaker< T >::getSimProducer | ( | void * | , | |
boost::shared_ptr< T > & | iProd | |||
) | const [inline, private] |
boost::shared_ptr<SimProducer> SimWatcherMaker< T >::getSimProducer | ( | SimProducer * | , | |
boost::shared_ptr< T > & | iProd | |||
) | const [inline, private] |
virtual void SimWatcherMaker< T >::make | ( | const edm::ParameterSet & | p, | |
SimActivityRegistry & | reg, | |||
boost::shared_ptr< SimWatcher > & | oWatcher, | |||
boost::shared_ptr< SimProducer > & | oProd | |||
) | const [inline, virtual] |
Implements SimWatcherMakerBase.
Definition at line 39 of file SimWatcherMaker.h.
References SimActivityRegistryEnroller::enroll(), and SimWatcherMaker< T >::getSimProducer().
00044 { 00045 boost::shared_ptr<T> returnValue(new T(p)); 00046 SimActivityRegistryEnroller::enroll(reg, returnValue.get()); 00047 oWatcher = returnValue; 00048 00049 //If this is also a SimProducer, set the value 00050 oProd = this->getSimProducer(returnValue.get(), returnValue); 00051 }