CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
SensitiveDetectorMaker< T > Class Template Reference

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

Inheritance diagram for SensitiveDetectorMaker< T >:
SensitiveDetectorMakerBase

Public Member Functions

void make (const std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *m, SimActivityRegistry &reg, std::auto_ptr< SensitiveTkDetector > &oTK, std::auto_ptr< SensitiveCaloDetector > &oCalo) const override
 
 SensitiveDetectorMaker ()
 
- Public Member Functions inherited from SensitiveDetectorMakerBase
 SensitiveDetectorMakerBase ()
 
virtual ~SensitiveDetectorMakerBase ()
 

Private Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from SensitiveDetectorMakerBase
void convertTo (SensitiveTkDetector *iFrom, std::auto_ptr< SensitiveTkDetector > &oTo, std::auto_ptr< SensitiveCaloDetector > &) const
 
void convertTo (SensitiveCaloDetector *iFrom, std::auto_ptr< SensitiveTkDetector > &, std::auto_ptr< SensitiveCaloDetector > &oTo) const
 

Detailed Description

template<class T>
class SensitiveDetectorMaker< T >

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

Usage: <usage>

Definition at line 31 of file SensitiveDetectorMaker.h.

Constructor & Destructor Documentation

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

Definition at line 35 of file SensitiveDetectorMaker.h.

Referenced by SensitiveDetectorMaker< T >::make().

35 {}
template<class T >
SensitiveDetectorMaker< T >::SensitiveDetectorMaker ( const SensitiveDetectorMaker< T > &  )
privatedelete

Member Function Documentation

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

Implements SensitiveDetectorMakerBase.

Definition at line 39 of file SensitiveDetectorMaker.h.

References SensitiveDetectorMakerBase::convertTo(), SimActivityRegistryEnroller::enroll(), SensitiveDetectorMaker< T >::operator=(), and SensitiveDetectorMaker< T >::SensitiveDetectorMaker().

47  {
48  std::auto_ptr<T> returnValue(new T(iname, cpv, clg, p, m));
49  SimActivityRegistryEnroller::enroll(reg, returnValue.get());
50 
51  this->convertTo(returnValue.get(), oTK,oCalo);
52  //ownership was passed in the previous function
53  returnValue.release();
54  }
void convertTo(SensitiveTkDetector *iFrom, std::auto_ptr< SensitiveTkDetector > &oTo, std::auto_ptr< SensitiveCaloDetector > &) const
static void enroll(SimActivityRegistry &iReg, T *iObj)
long double T
template<class T >
const SensitiveDetectorMaker& SensitiveDetectorMaker< T >::operator= ( const SensitiveDetectorMaker< T > &  )
privatedelete