CMS 3D CMS Logo

Public Member Functions | Private Attributes

ES_ClusteringAlgorithm_2d< T > Class Template Reference

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

#include <ClusteringAlgorithm_2d.h>

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

List of all members.

Public Member Functions

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

Private Attributes

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

Detailed Description

template<typename T>
class ES_ClusteringAlgorithm_2d< T >

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

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

Definition at line 276 of file ClusteringAlgorithm_2d.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 285 of file ClusteringAlgorithm_2d.h.

References edm::ESProducer::setWhatProduced().

      : mDoubleCountingTest( p.getParameter< bool >("DoubleCountingTest") )
    {
      setWhatProduced( this );
    }

template<typename T >
virtual ES_ClusteringAlgorithm_2d< T >::~ES_ClusteringAlgorithm_2d ( ) [inline, virtual]

Destructor.

Definition at line 292 of file ClusteringAlgorithm_2d.h.


Member Function Documentation

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

Implement the producer.

Definition at line 295 of file ClusteringAlgorithm_2d.h.

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

    {
      edm::ESHandle< StackedTrackerGeometry > StackedTrackerGeomHandle;
      record.getRecord< StackedTrackerGeometryRecord >().get( StackedTrackerGeomHandle );

      ClusteringAlgorithm< T >* ClusteringAlgo =
        new ClusteringAlgorithm_2d< T >( &(*StackedTrackerGeomHandle), mDoubleCountingTest );

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


Member Data Documentation

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

Data members.

Definition at line 280 of file ClusteringAlgorithm_2d.h.

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

template<typename T >
bool ES_ClusteringAlgorithm_2d< T >::mDoubleCountingTest [private]

Definition at line 281 of file ClusteringAlgorithm_2d.h.

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