CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
StubWindowSuggest.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTMTT_StubWindowsSuggest_h
2 #define L1Trigger_TrackFindingTMTT_StubWindowsSuggest_h
3 
6 
7 #include <vector>
8 #include <memory>
9 
10 class TrackerTopology;
11 
12 namespace tmtt {
13 
14  class Stub;
15 
29  public:
30  // Configure
31  StubWindowSuggest(const Settings* settings) : settings_(settings), ptMin_(settings->houghMinPt()) {}
32 
33  // Get FE window size arrays (via copy) used with stub producer, but set to zero.
34  void setFEWindows(const StubFEWindows* sw);
35 
36  // Analyse stub window required for this stub.
37  void process(const TrackerTopology* trackerTopo, const Stub* stub);
38 
39  // Print results (should be done in endJob();
40  void printResults() const;
41 
42  private:
43  // Update stored stub window size with this stub.
44  void updateStoredWindow(const TrackerTopology* trackerTopo, const Stub* stub, double bendWind);
45 
46  private:
47  // Configuration parameters.
49  const float ptMin_;
50 
51  // Stub window sizes as encoded in L1Trigger/TrackTrigger/interface/TTStubAlgorithm_official.h
52  std::unique_ptr<StubFEWindows> sw_;
53  };
54 
55 } // namespace tmtt
56 
57 #endif
std::unique_ptr< StubFEWindows > sw_
void setFEWindows(const StubFEWindows *sw)
const Settings * settings_
void updateStoredWindow(const TrackerTopology *trackerTopo, const Stub *stub, double bendWind)
void process(const TrackerTopology *trackerTopo, const Stub *stub)
StubWindowSuggest(const Settings *settings)