Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RunParamBase Class Reference

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/packages/geom_svc/RunParamBase.h>

+ Inheritance diagram for RunParamBase:

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)
 

Detailed Description

Definition at line 11 of file RunParamBase.h.

Member Typedef Documentation

typedef std::vector<std::string> RunParamBase::LineList
protected

Definition at line 51 of file RunParamBase.h.

Constructor & Destructor Documentation

RunParamBase::RunParamBase ( const std::string  type,
const std::string  label,
const std::string  header 
)

Definition at line 11 of file RunParamBase.cc.

virtual RunParamBase::~RunParamBase ( )
inlinevirtual

Definition at line 21 of file RunParamBase.h.

Member Function Documentation

std::string RunParamBase::GetBaseDir ( )
inline

Definition at line 24 of file RunParamBase.h.

std::string RunParamBase::GetMapID ( )
inline

Definition at line 27 of file RunParamBase.h.

Referenced by CalibInTime::InitRun(), CalibXT::InitRun(), and Fun4AllEVIOInputManager::run().

+ Here is the caller graph for this function:

std::string RunParamBase::GetParamID ( )
inline

Definition at line 25 of file RunParamBase.h.

Referenced by CalibInTime::InitRun(), CalibXT::InitRun(), and Fun4AllEVIOInputManager::run().

+ Here is the caller graph for this function:

std::string RunParamBase::MapFileName ( )
protected

Definition at line 152 of file RunParamBase.cc.

Referenced by ReadFromFile(), and WriteToFile().

+ Here is the caller graph for this function:

void RunParamBase::Print ( std::ostream &  os)
virtual
std::string RunParamBase::RangeFileName ( )
protected

Definition at line 145 of file RunParamBase.cc.

Referenced by SetMapIDbyDB(), and SetMapIDbyFile().

+ Here is the caller graph for this function:

void RunParamBase::ReadDbTable ( DbSvc db)
protectedvirtual

Reimplemented in GeomParamPlane, ChanMapV1495, CalibParamInTimeV1495, ChanMapTaiwan, CalibParamInTimeTaiwan, CalibParamXT, and ChanMapScaler.

Definition at line 185 of file RunParamBase.cc.

Referenced by ReadFromDB().

+ Here is the caller graph for this function:

int RunParamBase::ReadFileCont ( LineList lines)
protectedvirtual

Reimplemented in GeomParamPlane, ChanMapV1495, CalibParamInTimeV1495, ChanMapTaiwan, CalibParamInTimeTaiwan, CalibParamXT, and ChanMapScaler.

Definition at line 173 of file RunParamBase.cc.

Referenced by ReadFromLocalFile().

+ Here is the caller graph for this function:

void RunParamBase::ReadFromDB ( )

Definition at line 97 of file RunParamBase.cc.

References DbSvc::DB1, DbSvc::HasTable(), MapTableName(), ReadDbTable(), SchemaName(), and DbSvc::UseSchema().

Referenced by CheckCalibParam(), CheckChanMap(), CheckGeomParam(), DecoParam::InitMapper(), CalibInTime::InitRun(), and CalibXT::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void RunParamBase::ReadFromFile ( )

Definition at line 53 of file RunParamBase.cc.

References MapFileName(), and ReadFromLocalFile().

Referenced by UploadCalibParam(), UploadChanMap(), and UploadGeomParam().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void RunParamBase::ReadFromLocalFile ( const std::string  fn_tsv)

Definition at line 63 of file RunParamBase.cc.

References ReadFileCont().

Referenced by ReadFromFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string RunParamBase::SchemaName ( )
protected

Definition at line 159 of file RunParamBase.cc.

Referenced by ReadFromDB(), SetMapIDbyDB(), WriteRangeToDB(), and WriteToDB().

+ Here is the caller graph for this function:

void RunParamBase::SetBaseDir ( const std::string  dir_base)
inline

Definition at line 23 of file RunParamBase.h.

void RunParamBase::SetMapID ( const std::string  map_id)
inline

Definition at line 28 of file RunParamBase.h.

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 CheckCalibParam(), CheckChanMap(), CheckGeomParam(), DecoParam::InitMapper(), CalibInTime::InitRun(), and CalibXT::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void RunParamBase::SetMapIDbyDB ( const int  run)

Definition at line 47 of file RunParamBase.cc.

References ParamRunRange::Find(), ParamRunRange::ReadFromDB(), and SchemaName().

+ Here is the call graph for this function:

void RunParamBase::SetMapIDbyFile ( const std::string  map_id)

Definition at line 21 of file RunParamBase.cc.

References ParamRunRange::Find(), RangeFileName(), and ParamRunRange::ReadFromFile().

Referenced by UploadCalibParam(), UploadChanMap(), and UploadGeomParam().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void RunParamBase::SetMapIDbyFile ( const int  run)

Definition at line 41 of file RunParamBase.cc.

References ParamRunRange::Find(), RangeFileName(), and ParamRunRange::ReadFromFile().

+ Here is the call graph for this function:

void RunParamBase::WriteDbTable ( DbSvc db)
protectedvirtual

Reimplemented in GeomParamPlane, ChanMapV1495, CalibParamInTimeV1495, ChanMapTaiwan, CalibParamInTimeTaiwan, CalibParamXT, and ChanMapScaler.

Definition at line 190 of file RunParamBase.cc.

Referenced by WriteToDB().

+ Here is the caller graph for this function:

int RunParamBase::WriteFileCont ( std::ostream &  os)
protectedvirtual

Reimplemented in GeomParamPlane, ChanMapV1495, CalibParamInTimeV1495, ChanMapTaiwan, CalibParamInTimeTaiwan, CalibParamXT, and ChanMapScaler.

Definition at line 179 of file RunParamBase.cc.

Referenced by WriteToLocalFile().

+ Here is the caller graph for this function:

void RunParamBase::WriteRangeToDB ( )

Definition at line 135 of file RunParamBase.cc.

References SchemaName(), and ParamRunRange::WriteToDB().

Referenced by UploadCalibParam(), UploadChanMap(), and UploadGeomParam().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void RunParamBase::WriteToDB ( )

Definition at line 116 of file RunParamBase.cc.

References DbSvc::DB1, DbSvc::DropTable(), MapTableName(), SchemaName(), DbSvc::UseSchema(), and WriteDbTable().

Referenced by UploadCalibParam(), UploadChanMap(), and UploadGeomParam().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void RunParamBase::WriteToFile ( )

Definition at line 58 of file RunParamBase.cc.

References MapFileName(), and WriteToLocalFile().

+ Here is the call graph for this function:

void RunParamBase::WriteToLocalFile ( const std::string  fn_tsv)

Definition at line 83 of file RunParamBase.cc.

References WriteFileCont().

Referenced by CheckCalibParam(), CheckChanMap(), CheckGeomParam(), MakeChanMap(), UploadCalibParam(), UploadChanMap(), UploadGeomParam(), and WriteToFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: