#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 (SimProducer *, boost::shared_ptr< T > &iProd) const |
boost::shared_ptr< SimProducer > | getSimProducer (void *, boost::shared_ptr< T > &iProd) const |
Description: Makes a particular type of SimWatcher
Usage: <usage>
Definition at line 32 of file SimWatcherMaker.h.
SimWatcherMaker< T >::SimWatcherMaker | ( | ) | [inline] |
Definition at line 36 of file SimWatcherMaker.h.
{}
boost::shared_ptr<SimProducer> SimWatcherMaker< T >::getSimProducer | ( | SimProducer * | , |
boost::shared_ptr< T > & | iProd | ||
) | const [inline, private] |
Definition at line 55 of file SimWatcherMaker.h.
Referenced by SimWatcherMaker< T >::make().
{
return boost::shared_ptr<SimProducer>(iProd);
}
boost::shared_ptr<SimProducer> SimWatcherMaker< T >::getSimProducer | ( | void * | , |
boost::shared_ptr< T > & | iProd | ||
) | const [inline, private] |
Definition at line 59 of file SimWatcherMaker.h.
{
return boost::shared_ptr<SimProducer>();
}
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().
{ boost::shared_ptr<T> returnValue(new T(p)); SimActivityRegistryEnroller::enroll(reg, returnValue.get()); oWatcher = returnValue; //If this is also a SimProducer, set the value oProd = this->getSimProducer(returnValue.get(), returnValue); }