CMS 3D CMS Logo

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

#include <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 *man, 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 >

Definition at line 23 of file SensitiveDetectorMaker.h.

Constructor & Destructor Documentation

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

Definition at line 26 of file SensitiveDetectorMaker.h.

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

26 {}
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 man,
SimActivityRegistry reg,
std::auto_ptr< SensitiveTkDetector > &  oTK,
std::auto_ptr< SensitiveCaloDetector > &  oCalo 
) const
inlineoverridevirtual

Implements SensitiveDetectorMakerBase.

Definition at line 29 of file SensitiveDetectorMaker.h.

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

37  {
38  std::auto_ptr<T> returnValue(new T(iname, cpv, clg, p, man));
39  SimActivityRegistryEnroller::enroll(reg, returnValue.get());
40 
41  convertTo(returnValue.get(), oTK, oCalo);
42  //ownership was passed in the previous function
43  returnValue.release();
44  }
static void enroll(SimActivityRegistry &iReg, T *iObj)
void convertTo(SensitiveTkDetector *iFrom, std::auto_ptr< SensitiveTkDetector > &oTo, std::auto_ptr< SensitiveCaloDetector >) const
long double T
template<class T >
const SensitiveDetectorMaker& SensitiveDetectorMaker< T >::operator= ( const SensitiveDetectorMaker< T > &  )
privatedelete