CMS 3D CMS Logo

Public Member Functions | Private Member Functions

SensitiveDetectorMaker< T > Class Template Reference

#include <SimG4Core/SensitiveDetector/interface/SensitiveDetectorMaker.h>

Inheritance diagram for SensitiveDetectorMaker< T >:
SensitiveDetectorMakerBase

List of all members.

Public Member Functions

virtual void make (const std::string &iname, const DDCompactView &cpv, SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *m, SimActivityRegistry &reg, std::auto_ptr< SensitiveTkDetector > &oTK, std::auto_ptr< SensitiveCaloDetector > &oCalo) const
 SensitiveDetectorMaker ()

Private Member Functions

const SensitiveDetectorMakeroperator= (const SensitiveDetectorMaker &)
 SensitiveDetectorMaker (const SensitiveDetectorMaker &)

Detailed Description

template<class T>
class SensitiveDetectorMaker< T >

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 32 of file SensitiveDetectorMaker.h.


Constructor & Destructor Documentation

template<class T >
SensitiveDetectorMaker< T >::SensitiveDetectorMaker ( ) [inline]

Definition at line 36 of file SensitiveDetectorMaker.h.

{}
template<class T >
SensitiveDetectorMaker< T >::SensitiveDetectorMaker ( const SensitiveDetectorMaker< T > &  ) [private]

Member Function Documentation

template<class T >
virtual void SensitiveDetectorMaker< T >::make ( const std::string &  iname,
const DDCompactView cpv,
SensitiveDetectorCatalog clg,
const edm::ParameterSet p,
const SimTrackManager m,
SimActivityRegistry reg,
std::auto_ptr< SensitiveTkDetector > &  oTK,
std::auto_ptr< SensitiveCaloDetector > &  oCalo 
) const [inline, virtual]

Implements SensitiveDetectorMakerBase.

Definition at line 40 of file SensitiveDetectorMaker.h.

References SensitiveDetectorMakerBase::convertTo(), and SimActivityRegistryEnroller::enroll().

      {
        std::auto_ptr<T> returnValue(new T(iname, cpv, clg, p, m));
        SimActivityRegistryEnroller::enroll(reg, returnValue.get());

        this->convertTo(returnValue.get(), oTK,oCalo);
        //ownership was passed in the previous function
        returnValue.release();
      }
template<class T >
const SensitiveDetectorMaker& SensitiveDetectorMaker< T >::operator= ( const SensitiveDetectorMaker< T > &  ) [private]