CMS 3D CMS Logo

MkJob.h
Go to the documentation of this file.
1 #ifndef RecoTracker_MkFitCore_interface_MkJob_h
2 #define RecoTracker_MkFitCore_interface_MkJob_h
3 
5 
6 namespace mkfit {
7 
8  class MkJob {
9  public:
11  // Config &config; // If we want to get rid of namespace / global config
15 
17 
18  bool m_in_fwd = true;
19  void switch_to_backward() { m_in_fwd = false; }
20 
21  int num_regions() const { return m_iter_config.m_n_regions; }
22  const auto regions_begin() const { return m_iter_config.m_region_order.begin(); }
23  const auto regions_end() const { return m_iter_config.m_region_order.end(); }
24 
25  const auto &steering_params(int i) { return m_iter_config.m_steering_params[i]; }
26 
27  const auto &params() const { return m_iter_config.m_params; }
28  const auto &params_bks() const { return m_iter_config.m_backward_params; }
29  const auto &params_cur() const { return m_in_fwd ? params() : params_bks(); }
30 
31  int max_max_cands() const { return std::max(params().maxCandsPerSeed, params_bks().maxCandsPerSeed); }
32 
33  const std::vector<bool> *get_mask_for_layer(int layer) {
34  return m_iter_mask_ifc ? m_iter_mask_ifc->get_mask_for_layer(layer) : nullptr;
35  }
36  };
37 
38 } // namespace mkfit
39 
40 #endif
const IterationConfig & m_iter_config
Definition: MkJob.h:12
IterationParams m_params
IterationParams m_backward_params
const auto regions_begin() const
Definition: MkJob.h:22
const auto & params() const
Definition: MkJob.h:27
const EventOfHits & m_event_of_hits
Definition: MkJob.h:13
std::vector< int > m_region_order
const auto & params_cur() const
Definition: MkJob.h:29
const BeamSpot & m_beam_spot
Definition: MkJob.h:14
void switch_to_backward()
Definition: MkJob.h:19
const auto & steering_params(int i)
Definition: MkJob.h:25
const TrackerInfo & m_trk_info
Definition: MkJob.h:10
bool m_in_fwd
Definition: MkJob.h:18
const IterationMaskIfcBase * m_iter_mask_ifc
Definition: MkJob.h:16
const auto regions_end() const
Definition: MkJob.h:23
const std::vector< bool > * get_mask_for_layer(int layer)
Definition: MkJob.h:33
const auto & params_bks() const
Definition: MkJob.h:28
int max_max_cands() const
Definition: MkJob.h:31
std::vector< SteeringParams > m_steering_params
virtual const std::vector< bool > * get_mask_for_layer(int layer) const
int num_regions() const
Definition: MkJob.h:21