CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
TTClusterAlgorithm< T > Class Template Reference

Base class for any algorithm to be used in TTClusterBuilder. More...

#include <TTClusterAlgorithm.h>

Inheritance diagram for TTClusterAlgorithm< T >:
TTClusterAlgorithm_neighbor< T > TTClusterAlgorithm_official< T >

Public Member Functions

virtual std::string AlgorithmName () const
 Algorithm name. More...
 
virtual void Cluster (std::vector< std::vector< T > > &output, const std::vector< T > &input, bool module) const
 
virtual void Cluster (std::vector< std::vector< T > > &output, const std::vector< T > &input) const
 Basic version common to all the algorithms but official. More...
 
 TTClusterAlgorithm (std::string fName)
 Constructors. More...
 
virtual ~TTClusterAlgorithm ()
 Destructor. More...
 

Protected Attributes

std::string className_
 Data members. More...
 

Detailed Description

template<typename T>
class TTClusterAlgorithm< T >

Base class for any algorithm to be used in TTClusterBuilder.

After moving from SimDataFormats to DataFormats, the template structure of the class was maintained in order to accomodate any types other than PixelDigis in case there is such a need in the future.

Author
Andrew W. Rose
Nicola Pozzobon
Date
2013, Jul 12

Definition at line 26 of file TTClusterAlgorithm.h.

Constructor & Destructor Documentation

template<typename T>
TTClusterAlgorithm< T >::TTClusterAlgorithm ( std::string  fName)
inline

Constructors.

Definition at line 35 of file TTClusterAlgorithm.h.

36  {
37  className_=classNameFinder<T>(fName);
38  }
std::string className_
Data members.
template<typename T>
virtual TTClusterAlgorithm< T >::~TTClusterAlgorithm ( )
inlinevirtual

Destructor.

Definition at line 41 of file TTClusterAlgorithm.h.

41 {}

Member Function Documentation

template<typename T>
virtual std::string TTClusterAlgorithm< T >::AlgorithmName ( ) const
inlinevirtual

Algorithm name.

NOTE When calling TTClusterAlgoHandle->Cluster( output, input, module ) in L1TkClusterBuilder, this will go in the following way

  • case official it will go with the overloaded method (***) which has its specific implementation in TTClusterAlgorithm_official.h
  • case "everything else" the overloaded method will call the basic one it is the basic one which has its specific implementation in the various TTClusterAlgorithm_*.h This way, all the existing interfaces will be unchanged, but the new algorithm will use the new interface

Definition at line 73 of file TTClusterAlgorithm.h.

References TTClusterAlgorithm< T >::className_.

73 { return className_; }
std::string className_
Data members.
template<typename T>
virtual void TTClusterAlgorithm< T >::Cluster ( std::vector< std::vector< T > > &  output,
const std::vector< T > &  input,
bool  module 
) const
inlinevirtual

Clustering operations Overloaded method (***) to preserve the interface of all the algorithms but official

Reimplemented in TTClusterAlgorithm_official< T >.

Definition at line 45 of file TTClusterAlgorithm.h.

References convertSQLitetoXML_cfg::output.

48  {
49  Cluster( output, input );
50  }
static std::string const input
Definition: EdmProvDump.cc:44
virtual void Cluster(std::vector< std::vector< T > > &output, const std::vector< T > &input, bool module) const
template<typename T>
virtual void TTClusterAlgorithm< T >::Cluster ( std::vector< std::vector< T > > &  output,
const std::vector< T > &  input 
) const
inlinevirtual

Basic version common to all the algorithms but official.

Reimplemented in TTClusterAlgorithm_neighbor< T >.

Definition at line 53 of file TTClusterAlgorithm.h.

References convertSQLitetoXML_cfg::output.

55  {
56  output.clear();
57  }

Member Data Documentation

template<typename T>
std::string TTClusterAlgorithm< T >::className_
protected

Data members.

Definition at line 30 of file TTClusterAlgorithm.h.

Referenced by TTClusterAlgorithm< T >::AlgorithmName().