CMS 3D CMS Logo

Public Member Functions

ClusteringAlgorithm_a< T > Class Template Reference

#include <ClusteringAlgorithm_a.h>

Inheritance diagram for ClusteringAlgorithm_a< T >:
ClusteringAlgorithm< T >

List of all members.

Public Member Functions

void Cluster (std::vector< std::vector< T > > &output, const std::vector< T > &input) const
 Clustering operations.
 ClusteringAlgorithm_a (const StackedTrackerGeometry *aStackedTracker)
 Data members.
 ~ClusteringAlgorithm_a ()
 Destructor.

Detailed Description

template<typename T>
class ClusteringAlgorithm_a< T >

//////////////////////////////////////// Stacked Tracker Simulations /// / Andrew W. Rose, IC /// / 2008 /// ////////////////////////////////////// ************************ DECLARATION OF CLASS ************************

Definition at line 32 of file ClusteringAlgorithm_a.h.


Constructor & Destructor Documentation

template<typename T>
ClusteringAlgorithm_a< T >::ClusteringAlgorithm_a ( const StackedTrackerGeometry aStackedTracker) [inline]

Data members.

Constructor

Definition at line 39 of file ClusteringAlgorithm_a.h.

        : ClusteringAlgorithm< T >( aStackedTracker,__func__ ) {}
template<typename T>
ClusteringAlgorithm_a< T >::~ClusteringAlgorithm_a ( ) [inline]

Destructor.

Definition at line 43 of file ClusteringAlgorithm_a.h.

{}

Member Function Documentation

template<typename T >
void ClusteringAlgorithm_a< T >::Cluster ( std::vector< std::vector< T > > &  output,
const std::vector< T > &  input 
) const [virtual]

Clustering operations.

Close class.

***************************** IMPLEMENTATION OF METHODS ***************************** Clustering operations NOTE: in this case, clustering is dummy and each hit is treated as a different already-ok cluster

Prepare output

Loop over all hits

End of loop over all hits

Reimplemented from ClusteringAlgorithm< T >.

Definition at line 60 of file ClusteringAlgorithm_a.h.

References convertSQLitetoXML_cfg::output, and groupFilesInBlocks::temp.

  {
    output.clear();
    typename std::vector< T >::const_iterator inputIterator;
    for( inputIterator = input.begin();
         inputIterator != input.end();
         ++inputIterator ) 
    {
      std::vector< T > temp;
      temp.push_back(*inputIterator);
      output.push_back(temp);
    } 
  }