CMS 3D CMS Logo

TTClusterAlgorithm.h
Go to the documentation of this file.
1 
15 #ifndef L1_TRACK_TRIGGER_CLUSTER_ALGO_BASE_H
16 #define L1_TRACK_TRIGGER_CLUSTER_ALGO_BASE_H
17 
18 #include <sstream>
19 #include <map>
20 #include <string>
21 #include "classNameFinder.h"
24 
25 template< typename T >
27 {
28  protected:
31 
32  public:
34 
36  {
37  className_=classNameFinder<T>(fName);
38  }
39 
41  virtual ~TTClusterAlgorithm(){}
42 
45  virtual void Cluster( std::vector< std::vector< T > > &output,
46  const std::vector< T > &input,
47  bool module ) const
48  {
49  Cluster( output, input );
50  }
51 
53  virtual void Cluster( std::vector< std::vector< T > > &output,
54  const std::vector< T > &input ) const
55  {
56  output.clear();
57  }
58 
71 
73  virtual std::string AlgorithmName() const { return className_; }
74 
75 };
76 
77 #endif
78 
TTClusterAlgorithm(std::string fName)
Constructors.
static std::string const input
Definition: EdmProvDump.cc:48
virtual void Cluster(std::vector< std::vector< T > > &output, const std::vector< T > &input) const
Basic version common to all the algorithms but official.
std::string className_
Data members.
Base class for any algorithm to be used in TTClusterBuilder.
virtual void Cluster(std::vector< std::vector< T > > &output, const std::vector< T > &input, bool module) const
virtual std::string AlgorithmName() const
Algorithm name.
Definition: vlib.h:208
virtual ~TTClusterAlgorithm()
Destructor.