Class Reference for E1039 Core & Analysis Software
TrigRoadset.h
Go to the documentation of this file.
1 #ifndef _TRIGGER_ROADSET__H_
2 #define _TRIGGER_ROADSET__H_
3 #include <string>
4 #include "TrigRoads.h"
5 
6 namespace UtilTrigger {
7 
9 
34 class TrigRoadset {
35  std::string m_dir_conf;
36  int m_roadset;
37  int m_LBTop;
38  int m_LBBot;
39  TrigRoads m_pos_top;
40  TrigRoads m_pos_bot;
41  TrigRoads m_neg_top;
42  TrigRoads m_neg_bot;
43 
44  public:
45  TrigRoadset();
46  virtual ~TrigRoadset() {;}
47 
48  int RoadsetID() const { return m_roadset; }
49  int LBTop () const { return m_LBTop; }
50  int LBBot () const { return m_LBBot; }
51 
52  TrigRoads* PosTop() { return &m_pos_top; }
53  TrigRoads* PosBot() { return &m_pos_bot; }
54  TrigRoads* NegTop() { return &m_neg_top; }
55  TrigRoads* NegBot() { return &m_neg_bot; }
56  const TrigRoads* PosTop() const { return &m_pos_top; }
57  const TrigRoads* PosBot() const { return &m_pos_bot; }
58  const TrigRoads* NegTop() const { return &m_neg_top; }
59  const TrigRoads* NegBot() const { return &m_neg_bot; }
60 
61  int LoadConfig(const std::string dir);
62  int LoadConfig(const int roadset_id);
63  int LoadConfig(const int firmware_LBTop, const int firmware_LBBot);
64 
65  std::string str(const int level=0) const;
66 };
67 
68 }; // namespace UtilTrigger
69 
70 #endif // _TRIGGER_ROADSET__H_
Class to handle the trigger roadset.
Definition: TrigRoadset.h:34
const TrigRoads * NegTop() const
Definition: TrigRoadset.h:58
const TrigRoads * PosBot() const
Definition: TrigRoadset.h:57
int LoadConfig(const std::string dir)
Definition: TrigRoadset.cc:23
TrigRoads * NegBot()
Definition: TrigRoadset.h:55
std::string str(const int level=0) const
Definition: TrigRoadset.cc:79
TrigRoads * NegTop()
Definition: TrigRoadset.h:54
const TrigRoads * NegBot() const
Definition: TrigRoadset.h:59
TrigRoads * PosTop()
Definition: TrigRoadset.h:52
const TrigRoads * PosTop() const
Definition: TrigRoadset.h:56
TrigRoads * PosBot()
Definition: TrigRoadset.h:53