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

Go to the source code of this file.

Functions

int UploadChanMap (const std::string type="taiwan", const std::string map_id="2019091301")
 UploadChanMap.C: Macro to upload the channel mapping from tsv file to MySQL DB. More...
 
int CheckChanMap (const std::string type="taiwan", const int run=25000)
 
int MakeChanMap ()
 Test function to make a channel mapping by hand. More...
 

Function Documentation

int CheckChanMap ( const std::string  type = "taiwan",
const int  run = 25000 
)

Definition at line 30 of file UploadChanMap.C.

References RunParamBase::ReadFromDB(), run(), RunParamBase::SetMapIDbyDB(), and RunParamBase::WriteToLocalFile().

+ Here is the call graph for this function:

int MakeChanMap ( )

Test function to make a channel mapping by hand.

roc, board chan, det, ele

Definition at line 49 of file UploadChanMap.C.

References ChanMapTaiwan::Add(), ChanMapTaiwan::Print(), and RunParamBase::WriteToLocalFile().

+ Here is the call graph for this function:

int UploadChanMap ( const std::string  type = "taiwan",
const std::string  map_id = "2019091301" 
)

UploadChanMap.C: Macro to upload the channel mapping from tsv file to MySQL DB.

Usage: .L UploadChanMap.C UploadChanMap("taiwan", "2019091301"); CheckChanMap ("taiwan", 500);

Definition at line 10 of file UploadChanMap.C.

References RunParamBase::ReadFromFile(), RunParamBase::SetMapIDbyFile(), RunParamBase::WriteRangeToDB(), RunParamBase::WriteToDB(), and RunParamBase::WriteToLocalFile().

+ Here is the call graph for this function: