Class Reference for E1039 Core & Analysis Software
DrawRoadset.h
Go to the documentation of this file.
1 #ifndef _DRAW_ROADSET__H_
2 #define _DRAW_ROADSET__H_
3 #include "RoadMap.h"
4 #include "AnaBase.h"
5 class TTree;
6 
7 class DrawRoadset : public AnaBase {
8  protected:
9  typedef std::pair<int, int> PlaneConn_t;
10  typedef std::map<PlaneConn_t, int> PlaneConnCount_t;
11 
12  std::string m_rs_id;
13  double m_cnt_max;
18 
19  public:
20  DrawRoadset(const std::string rs_id);
21  virtual ~DrawRoadset();
22 
23  void SetMaxCount(const double cnt_max) { m_cnt_max = cnt_max; }
24 
29 
30  void Draw();
31 
32  protected:
33  void DrawOneSet(RoadMap* map);
34  void DrawConnection(const PlaneConnCount_t* list_cnt, const int plane, const int count_max);
35  void DrawElement (const int st, const int n_ele, const double y_label);
36  void DrawElementV1(const int st, const int ele1, const int ele2);
37 };
38 
39 #endif // _DRAW_ROADSET__H_
Definition: AnaBase.h:6
std::string m_rs_id
Definition: DrawRoadset.h:12
std::pair< int, int > PlaneConn_t
Definition: DrawRoadset.h:9
void Draw()
Definition: DrawRoadset.cc:33
void SetMaxCount(const double cnt_max)
Definition: DrawRoadset.h:23
RoadMap m_road_map_neg_bot
Definition: DrawRoadset.h:17
void DrawElementV1(const int st, const int ele1, const int ele2)
Definition: DrawRoadset.cc:149
void DrawOneSet(RoadMap *map)
Definition: DrawRoadset.cc:41
void DrawElement(const int st, const int n_ele, const double y_label)
Definition: DrawRoadset.cc:127
double m_cnt_max
Definition: DrawRoadset.h:13
virtual ~DrawRoadset()
Definition: DrawRoadset.cc:28
void DrawConnection(const PlaneConnCount_t *list_cnt, const int plane, const int count_max)
Definition: DrawRoadset.cc:109
DrawRoadset(const std::string rs_id)
Definition: DrawRoadset.cc:17
RoadMap m_road_map_pos_bot
Definition: DrawRoadset.h:15
std::map< PlaneConn_t, int > PlaneConnCount_t
Definition: DrawRoadset.h:10
RoadMap * GetRoadMapNegTop()
Definition: DrawRoadset.h:27
RoadMap m_road_map_neg_top
Definition: DrawRoadset.h:16
RoadMap * GetRoadMapPosBot()
Definition: DrawRoadset.h:26
RoadMap m_road_map_pos_top
Definition: DrawRoadset.h:14
RoadMap * GetRoadMapNegBot()
Definition: DrawRoadset.h:28
RoadMap * GetRoadMapPosTop()
Definition: DrawRoadset.h:25
Class to hold a non-ordered set (i.e. map) of roads.
Definition: RoadMap.h:8