8 R__LOAD_LIBRARY(geom_svc)
10 int
UploadChanMap(const std::
string type="taiwan", const std::
string map_id="2019091301")
12 gSystem->Load(
"libgeom_svc.so");
18 cerr <<
"!!ERROR!! '" << type <<
"' is not supported." << endl;
32 gSystem->Load(
"libgeom_svc.so");
38 cerr <<
"!!ERROR!! '" << type <<
"' is not supported." << endl;
51 gSystem->Load(
"libgeom_svc.so");
55 map.
Add(10, 100, 1,
"D1X", 123);
56 map.
Add(11, 101, 2,
"D2X", 321);
void Add(const short roc, const short board, const short chan, const std::string det, const short ele)
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.
void WriteToLocalFile(const std::string fn_tsv)
int run(const int nEvents=1)
void SetMapIDbyDB(const std::string map_id)
void SetMapIDbyFile(const std::string map_id)
int MakeChanMap()
Test function to make a channel mapping by hand.
int CheckChanMap(const std::string type="taiwan", const int run=25000)
void Print(std::ostream &os)