CMS 3D CMS Logo

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  float &anROffset,
53  float &anHardBend,
54  const TTStub< T > &aTTStub ) const {}
55 
57  virtual std::string AlgorithmName() const { return className_; }
58 
59 };
60 
61 #endif
62 
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.
Class to store the L1 Track Trigger stubs.
Definition: TTStub.h:22
virtual void PatternHitCorrelation(bool &aConfirmation, int &aDisplacement, int &anOffset, float &anROffset, float &anHardBend, const TTStub< T > &aTTStub) const
Matching operations.
TTStubAlgorithm(const TrackerGeometry *const theTrackerGeom, const TrackerTopology *const theTrackerTopo, std::string fName)
Constructors.
const TrackerTopology *const theTrackerTopo_
std::string className_