CMS 3D CMS Logo

Public Member Functions | Private Attributes

ES_ClusteringAlgorithm_a< T > Class Template Reference

End of ClusteringAlgorithm_a< ... >::Cluster( ... ) More...

#include <ClusteringAlgorithm_a.h>

Inheritance diagram for ES_ClusteringAlgorithm_a< T >:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

 ES_ClusteringAlgorithm_a (const edm::ParameterSet &p)
 Constructor.
boost::shared_ptr
< ClusteringAlgorithm< T > > 
produce (const ClusteringAlgorithmRecord &record)
 Implement the producer.
virtual ~ES_ClusteringAlgorithm_a ()
 Destructor.

Private Attributes

boost::shared_ptr
< ClusteringAlgorithm< T > > 
_theAlgo
 Data members.

Detailed Description

template<typename T>
class ES_ClusteringAlgorithm_a< T >

End of ClusteringAlgorithm_a< ... >::Cluster( ... )

********************** DECLARATION OF THE ALGORITHM TO THE FRAMEWORK **********************

Definition at line 88 of file ClusteringAlgorithm_a.h.


Constructor & Destructor Documentation

template<typename T >
ES_ClusteringAlgorithm_a< T >::ES_ClusteringAlgorithm_a ( const edm::ParameterSet p) [inline]

Constructor.

Definition at line 97 of file ClusteringAlgorithm_a.h.

References edm::ESProducer::setWhatProduced().

    {
      setWhatProduced( this );
    }
template<typename T >
virtual ES_ClusteringAlgorithm_a< T >::~ES_ClusteringAlgorithm_a ( ) [inline, virtual]

Destructor.

Definition at line 103 of file ClusteringAlgorithm_a.h.

{}

Member Function Documentation

template<typename T >
boost::shared_ptr< ClusteringAlgorithm< T > > ES_ClusteringAlgorithm_a< T >::produce ( const ClusteringAlgorithmRecord record) [inline]

Implement the producer.

Definition at line 106 of file ClusteringAlgorithm_a.h.

References ES_ClusteringAlgorithm_a< T >::_theAlgo, and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().

    { 
      edm::ESHandle< StackedTrackerGeometry > StackedTrackerGeomHandle;
      record.getRecord< StackedTrackerGeometryRecord >().get( StackedTrackerGeomHandle );
 
      ClusteringAlgorithm< T >* ClusteringAlgo =
        new ClusteringAlgorithm_a< T >( &(*StackedTrackerGeomHandle) );

      _theAlgo = boost::shared_ptr< ClusteringAlgorithm< T > >( ClusteringAlgo );
      return _theAlgo;
    }

Member Data Documentation

template<typename T >
boost::shared_ptr< ClusteringAlgorithm< T > > ES_ClusteringAlgorithm_a< T >::_theAlgo [private]

Data members.

Definition at line 93 of file ClusteringAlgorithm_a.h.

Referenced by ES_ClusteringAlgorithm_a< T >::produce().