Class Reference for E1039 Core & Analysis Software
|
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/packages/geom_svc/RunParamBase.h>
Public Member Functions | |
RunParamBase (const std::string type, const std::string label, const std::string header) | |
virtual | ~RunParamBase () |
void | SetBaseDir (const std::string dir_base) |
std::string | GetBaseDir () |
std::string | GetParamID () |
std::string | GetMapID () |
void | SetMapID (const std::string map_id) |
void | SetMapIDbyFile (const std::string map_id) |
void | SetMapIDbyDB (const std::string map_id) |
void | SetMapIDbyFile (const int run) |
void | SetMapIDbyDB (const int run) |
void | ReadFromFile () |
void | WriteToFile () |
void | ReadFromLocalFile (const std::string fn_tsv) |
void | WriteToLocalFile (const std::string fn_tsv) |
void | ReadFromDB () |
void | WriteToDB () |
void | WriteRangeToDB () |
virtual void | Print (std::ostream &os) |
Protected Types | |
typedef std::vector< std::string > | LineList |
Protected Member Functions | |
std::string | RangeFileName () |
std::string | MapFileName () |
std::string | SchemaName () |
std::string | MapTableName () |
virtual int | ReadFileCont (LineList &lines) |
virtual int | WriteFileCont (std::ostream &os) |
virtual void | ReadDbTable (DbSvc &db) |
virtual void | WriteDbTable (DbSvc &db) |
Definition at line 11 of file RunParamBase.h.
|
protected |
Definition at line 51 of file RunParamBase.h.
RunParamBase::RunParamBase | ( | const std::string | type, |
const std::string | label, | ||
const std::string | header | ||
) |
Definition at line 11 of file RunParamBase.cc.
|
inlinevirtual |
Definition at line 21 of file RunParamBase.h.
|
inline |
Definition at line 24 of file RunParamBase.h.
|
inline |
Definition at line 27 of file RunParamBase.h.
Referenced by GeomSvc::initPlaneDbSvc(), CalibDriftDistMod::InitRun(), CalibDriftDist::InitRun(), CalibHodoInTime::InitRun(), SQChamberRealization::InitRun(), and Fun4AllEVIOInputManager::run().
|
inline |
Definition at line 25 of file RunParamBase.h.
Referenced by CalibDriftDistMod::InitRun(), CalibDriftDist::InitRun(), CalibHodoInTime::InitRun(), and Fun4AllEVIOInputManager::run().
|
protected |
Definition at line 157 of file RunParamBase.cc.
Referenced by ReadFromFile(), and WriteToFile().
|
protected |
Definition at line 171 of file RunParamBase.cc.
Referenced by CalibParamInTimeTaiwan::ReadDbTable(), CalibParamInTimeV1495::ReadDbTable(), CalibParamXT::ReadDbTable(), ChanMapScaler::ReadDbTable(), ChanMapTaiwan::ReadDbTable(), ChanMapV1495::ReadDbTable(), GeomParamPlane::ReadDbTable(), ReadFromDB(), CalibParamInTimeTaiwan::WriteDbTable(), CalibParamInTimeV1495::WriteDbTable(), CalibParamXT::WriteDbTable(), ChanMapScaler::WriteDbTable(), ChanMapTaiwan::WriteDbTable(), ChanMapV1495::WriteDbTable(), GeomParamPlane::WriteDbTable(), and WriteToDB().
|
virtual |
Reimplemented in GeomParamPlane, ChanMapV1495, ChanMapTaiwan, ChanMapScaler, CalibParamXT, CalibParamInTimeV1495, and CalibParamInTimeTaiwan.
Definition at line 145 of file RunParamBase.cc.
|
protected |
Definition at line 150 of file RunParamBase.cc.
Referenced by SetMapIDbyDB(), and SetMapIDbyFile().
|
protectedvirtual |
Reimplemented in GeomParamPlane, ChanMapV1495, ChanMapTaiwan, ChanMapScaler, CalibParamXT, CalibParamInTimeV1495, and CalibParamInTimeTaiwan.
Definition at line 190 of file RunParamBase.cc.
Referenced by ReadFromDB().
|
protectedvirtual |
Reimplemented in GeomParamPlane, ChanMapV1495, ChanMapTaiwan, ChanMapScaler, CalibParamXT, CalibParamInTimeV1495, and CalibParamInTimeTaiwan.
Definition at line 178 of file RunParamBase.cc.
Referenced by ReadFromLocalFile().
void RunParamBase::ReadFromDB | ( | ) |
Definition at line 102 of file RunParamBase.cc.
References DbSvc::DB1, DbSvc::HasTable(), MapTableName(), ReadDbTable(), SchemaName(), and DbSvc::UseSchema().
Referenced by DecoParam::InitMapper(), GeomSvc::initPlaneDbSvc(), CalibDriftDistMod::InitRun(), CalibDriftDist::InitRun(), CalibHodoInTime::InitRun(), and SQChamberRealization::InitRun().
void RunParamBase::ReadFromFile | ( | ) |
Definition at line 53 of file RunParamBase.cc.
References MapFileName(), and ReadFromLocalFile().
void RunParamBase::ReadFromLocalFile | ( | const std::string | fn_tsv | ) |
Definition at line 63 of file RunParamBase.cc.
References ReadFileCont().
Referenced by CalibDriftDistMod::Init(), CalibDriftDist::Init(), and ReadFromFile().
|
protected |
Definition at line 164 of file RunParamBase.cc.
Referenced by ReadFromDB(), SetMapIDbyDB(), WriteRangeToDB(), and WriteToDB().
|
inline |
Definition at line 23 of file RunParamBase.h.
|
inline |
Definition at line 28 of file RunParamBase.h.
Referenced by CalibDriftDistMod::Init(), CalibDriftDist::Init(), and GeomSvc::initPlaneDbSvc().
void RunParamBase::SetMapIDbyDB | ( | const int | run | ) |
Definition at line 47 of file RunParamBase.cc.
References ParamRunRange::Find(), ParamRunRange::ReadFromDB(), and SchemaName().
void RunParamBase::SetMapIDbyDB | ( | const std::string | map_id | ) |
Definition at line 31 of file RunParamBase.cc.
References ParamRunRange::Find(), RangeFileName(), and ParamRunRange::ReadFromDB().
Referenced by DecoParam::InitMapper(), GeomSvc::initPlaneDbSvc(), CalibDriftDistMod::InitRun(), CalibDriftDist::InitRun(), CalibHodoInTime::InitRun(), and SQChamberRealization::InitRun().
void RunParamBase::SetMapIDbyFile | ( | const int | run | ) |
Definition at line 41 of file RunParamBase.cc.
References ParamRunRange::Find(), RangeFileName(), and ParamRunRange::ReadFromFile().
void RunParamBase::SetMapIDbyFile | ( | const std::string | map_id | ) |
Definition at line 21 of file RunParamBase.cc.
References ParamRunRange::Find(), RangeFileName(), and ParamRunRange::ReadFromFile().
|
protectedvirtual |
Reimplemented in GeomParamPlane, ChanMapV1495, ChanMapTaiwan, ChanMapScaler, CalibParamXT, CalibParamInTimeV1495, and CalibParamInTimeTaiwan.
Definition at line 195 of file RunParamBase.cc.
Referenced by WriteToDB().
|
protectedvirtual |
Reimplemented in GeomParamPlane, ChanMapV1495, ChanMapTaiwan, ChanMapScaler, CalibParamXT, CalibParamInTimeV1495, and CalibParamInTimeTaiwan.
Definition at line 184 of file RunParamBase.cc.
Referenced by WriteToLocalFile().
void RunParamBase::WriteRangeToDB | ( | ) |
Definition at line 140 of file RunParamBase.cc.
References SchemaName(), and ParamRunRange::WriteToDB().
void RunParamBase::WriteToDB | ( | ) |
Definition at line 121 of file RunParamBase.cc.
References DbSvc::DB1, DbSvc::DropTable(), MapTableName(), SchemaName(), DbSvc::UseSchema(), and WriteDbTable().
void RunParamBase::WriteToFile | ( | ) |
Definition at line 58 of file RunParamBase.cc.
References MapFileName(), and WriteToLocalFile().
void RunParamBase::WriteToLocalFile | ( | const std::string | fn_tsv | ) |
Definition at line 85 of file RunParamBase.cc.
References WriteFileCont().
Referenced by WriteToFile().