Class Reference for E1039 Core & Analysis Software
GenRoadset.h
Go to the documentation of this file.
1 #ifndef _GEN_ROADSET__H_
2 #define _GEN_ROADSET__H_
3 #include "RoadMap.h"
4 #include "RoadList.h"
5 #include "AnaBase.h"
6 class AnaSignal;
7 
8 class GenRoadset : public AnaBase {
9  protected:
14 
19 
20  public:
21  GenRoadset(const std::string label="gen_rs");
22  virtual ~GenRoadset();
23 
24  void SetMap(AnaSignal* ana_signal);
25 
26  void SymmetrizeRoads();
27 
28  void GenerateRoadSetBySignal(const double frac_cut, const std::string rs_id);
29  void GenerateRoadSetByFoM(const double frac_cut, const std::string rs_id);
30  void GenerateSymmetricRoadSetByFoM(const double frac_cut, const std::string rs_id);
31 
32  //RoadMap * GetRoadMapPosTop () { return &m_map_pos_top ; }
33  //RoadMap * GetRoadMapPosBot () { return &m_map_pos_bot ; }
34  //RoadMap * GetRoadMapNegTop () { return &m_map_neg_top ; }
35  //RoadMap * GetRoadMapNegBot () { return &m_map_neg_bot ; }
36 
37  //RoadList* GetRoadListPosTop() { return &m_list_pos_top; }
38  //RoadList* GetRoadListPosBot() { return &m_list_pos_bot; }
39  //RoadList* GetRoadListNegTop() { return &m_list_neg_top; }
40  //RoadList* GetRoadListNegBot() { return &m_list_neg_bot; }
41 
42  protected:
43  void DisableRoadsByWeightFraction(RoadList* road_list, const double frac);
44  void DisableRoadsByFoM(RoadList* road_list, const double frac);
45 
46  int FlipRoadLeftRight(const int road);
47  int FlipRoadTopBottom(const int road);
48 };
49 
50 #endif /* _GEN_ROADSET__H_ */
Definition: AnaBase.h:6
void DisableRoadsByFoM(RoadList *road_list, const double frac)
Definition: GenRoadset.cc:172
void GenerateSymmetricRoadSetByFoM(const double frac_cut, const std::string rs_id)
Definition: GenRoadset.cc:62
virtual ~GenRoadset()
Definition: GenRoadset.cc:24
void DisableRoadsByWeightFraction(RoadList *road_list, const double frac)
Definition: GenRoadset.cc:144
void GenerateRoadSetBySignal(const double frac_cut, const std::string rs_id)
Definition: GenRoadset.cc:42
RoadList m_list_neg_bot
Definition: GenRoadset.h:18
int FlipRoadTopBottom(const int road)
Definition: GenRoadset.cc:211
void SymmetrizeRoads()
Definition: GenRoadset.cc:218
RoadMap * m_map_neg_top
Definition: GenRoadset.h:12
RoadMap * m_map_neg_bot
Definition: GenRoadset.h:13
RoadMap * m_map_pos_top
Definition: GenRoadset.h:10
GenRoadset(const std::string label="gen_rs")
Definition: GenRoadset.cc:10
void GenerateRoadSetByFoM(const double frac_cut, const std::string rs_id)
Definition: GenRoadset.cc:52
RoadList m_list_neg_top
Definition: GenRoadset.h:17
RoadList m_list_pos_top
Definition: GenRoadset.h:15
RoadMap * m_map_pos_bot
Definition: GenRoadset.h:11
void SetMap(AnaSignal *ana_signal)
Definition: GenRoadset.cc:29
RoadList m_list_pos_bot
Definition: GenRoadset.h:16
int FlipRoadLeftRight(const int road)
Definition: GenRoadset.cc:200
Class to hold an ordered set (i.e. vector) of roads.
Definition: RoadList.h:9
Class to hold a non-ordered set (i.e. map) of roads.
Definition: RoadMap.h:8