Class Reference for E1039 Core & Analysis Software
|
Class to hold a non-ordered set (i.e. map) of roads. More...
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-analysis/GenRoadset/src/RoadMap.h>
Public Types | |
typedef InfoMap::iterator | Iter |
typedef InfoMap::const_iterator | ConstIter |
Public Member Functions | |
RoadMap () | |
virtual | ~RoadMap () |
int | Size () const |
ConstIter | Begin () const |
ConstIter | End () const |
Iter | Begin () |
Iter | End () |
RoadInfo * | Find (const int road) const |
bool | Contain (const RoadMap *map) const |
bool | ContainEnabled (const RoadMap *map) const |
void | Add (const int road, const double weight, const int count=1) |
void | Add (const RoadInfo *info) |
void | Add (const RoadMap *map) |
void | Scale (const double val) |
void | AddBG (const int road, const double weight, const int count=1) |
void | AddBG (const RoadInfo *info) |
void | AddBG (const RoadMap *map) |
void | ScaleBG (const double val) |
![]() | |
virtual | ~RoadListBase () |
void | SetPNTB (const int pn, const int tb) |
void | SetPosNeg (const int pn) |
void | SetTopBot (const int tb) |
int | GetPosNeg () const |
int | GetTopBot () const |
std::string | GetPosNegStr () const |
std::string | GetTopBotStr () const |
void | Frozen () |
bool | IsFrozen () |
Additional Inherited Members | |
![]() | |
RoadListBase () | |
![]() | |
int | m_pn |
int | m_tb |
bool | m_frozen |
typedef InfoMap::const_iterator RoadMap::ConstIter |
typedef InfoMap::iterator RoadMap::Iter |
RoadMap::RoadMap | ( | ) |
Definition at line 8 of file RoadMap.cc.
|
virtual |
Definition at line 13 of file RoadMap.cc.
void RoadMap::Add | ( | const int | road, |
const double | weight, | ||
const int | count = 1 |
||
) |
Definition at line 43 of file RoadMap.cc.
References RoadInfo::Add().
Referenced by AnaSignal::ProcessOneEvent(), and UtilRoad::ReadFromFile().
void RoadMap::Add | ( | const RoadInfo * | info | ) |
Definition at line 54 of file RoadMap.cc.
References RoadInfo::GetCount(), RoadInfo::GetRoadID(), and RoadInfo::GetWeight().
void RoadMap::Add | ( | const RoadMap * | map | ) |
Definition at line 59 of file RoadMap.cc.
References Begin(), and End().
void RoadMap::AddBG | ( | const int | road, |
const double | weight, | ||
const int | count = 1 |
||
) |
Definition at line 69 of file RoadMap.cc.
References RoadInfo::AddBG().
Referenced by AnaBG::FindAllRoads(), AnaBG::ProcessOneEvent(), and ReAnaBG::ProcessOneEvent().
void RoadMap::AddBG | ( | const RoadInfo * | info | ) |
Definition at line 80 of file RoadMap.cc.
References RoadInfo::GetCountBG(), RoadInfo::GetRoadID(), and RoadInfo::GetWeightBG().
void RoadMap::AddBG | ( | const RoadMap * | map | ) |
Definition at line 85 of file RoadMap.cc.
References Begin(), and End().
|
inline |
Definition at line 20 of file RoadMap.h.
Referenced by Add(), RoadList::Add(), AddBG(), AnaBG::Analyze(), Contain(), ContainEnabled(), DrawRoadset::DrawOneSet(), and AnaBG::ProcessOneEvent().
bool RoadMap::Contain | ( | const RoadMap * | map | ) | const |
Definition at line 26 of file RoadMap.cc.
References Begin(), and End().
Referenced by AnaBG::ProcessOneEvent().
bool RoadMap::ContainEnabled | ( | const RoadMap * | map | ) | const |
Definition at line 34 of file RoadMap.cc.
References Begin(), and End().
Referenced by ReAnaBG::ProcessOneEvent().
|
inline |
Definition at line 21 of file RoadMap.h.
Referenced by Add(), RoadList::Add(), AddBG(), AnaBG::Analyze(), Contain(), ContainEnabled(), DrawRoadset::DrawOneSet(), AnaBG::ProcessOneEvent(), and UtilRoad::WriteToFile().
RoadInfo * RoadMap::Find | ( | const int | road | ) | const |
Definition at line 21 of file RoadMap.cc.
Referenced by GenRoadset::GenerateSymmetricRoadSetByFoM(), AnaBG::ProcessOneEvent(), and ReAnaSignal::ProcessOneEvent().
void RoadMap::Scale | ( | const double | val | ) |
Definition at line 64 of file RoadMap.cc.
void RoadMap::ScaleBG | ( | const double | val | ) |
Definition at line 90 of file RoadMap.cc.
Referenced by AnaBG::Analyze().
|
inline |
Definition at line 19 of file RoadMap.h.
Referenced by UtilRoad::ReadFromFile().