CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TTStubAlgorithm.h
Go to the documentation of this file.
1 
15 #ifndef L1_TRACK_TRIGGER_STUB_ALGO_BASE_H
16 #define L1_TRACK_TRIGGER_STUB_ALGO_BASE_H
17 
22 
23 #include <sstream>
24 #include <string>
25 #include <map>
26 #include "classNameFinder.h"
27 
28 template< typename T >
30 {
31  protected:
36 
37  public:
39  TTStubAlgorithm( const TrackerGeometry* const theTrackerGeom, const TrackerTopology* const theTrackerTopo, std::string fName ):
40  theTrackerGeom_(theTrackerGeom), theTrackerTopo_(theTrackerTopo)
41  {
42  className_ = classNameFinder< T >( fName );
43  }
44 
46  virtual ~TTStubAlgorithm(){}
47 
49  virtual void PatternHitCorrelation( bool &aConfirmation,
50  int &aDisplacement,
51  int &anOffset,
52  const TTStub< T > &aTTStub ) const {}
53 
55  virtual std::string AlgorithmName() const { return className_; }
56 
57 };
58 
59 #endif
60 
Base class for any algorithm to be used in TTStubBuilder.
virtual std::string AlgorithmName() const
Algorithm name.
const TrackerGeometry *const theTrackerGeom_
Data members.
virtual ~TTStubAlgorithm()
Destructor.
virtual void PatternHitCorrelation(bool &aConfirmation, int &aDisplacement, int &anOffset, const TTStub< T > &aTTStub) const
Matching operations.
Class to store the L1 Track Trigger stubs.
Definition: TTStub.h:22
TTStubAlgorithm(const TrackerGeometry *const theTrackerGeom, const TrackerTopology *const theTrackerTopo, std::string fName)
Constructors.
const TrackerTopology *const theTrackerTopo_
std::string className_