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 protected:
35 
36 public:
38  TTStubAlgorithm(const TrackerGeometry *const theTrackerGeom,
39  const TrackerTopology *const theTrackerTopo,
41  : theTrackerGeom_(theTrackerGeom), theTrackerTopo_(theTrackerTopo) {
42  className_ = classNameFinder<T>(fName);
43  }
44 
46  virtual ~TTStubAlgorithm() {}
47 
49  virtual void PatternHitCorrelation(
50  bool &aConfirmation, int &aDisplacement, int &anOffset, float &anHardBend, const TTStub<T> &aTTStub) const {}
51  // Removed real offset. Ivan Reid 10/2019
52 
54  virtual std::string AlgorithmName() const { return className_; }
55 
56 };
57 
58 #endif
virtual std::string AlgorithmName() const
Algorithm name.
Base class for any algorithm to be used in TTStubBuilder.
const TrackerGeometry *const theTrackerGeom_
Data members.
virtual ~TTStubAlgorithm()
Destructor.
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_
virtual void PatternHitCorrelation(bool &aConfirmation, int &aDisplacement, int &anOffset, float &anHardBend, const TTStub< T > &aTTStub) const
Matching operations.
std::string className_