Go to the source code of this file.
Definition at line 35 of file anode_loader.h.
39 std::vector<std::string> ret;
43 std::string ws_fname =
"microboone-celltree-wires-v2.1.json.bz2";
45 if (detector ==
"uboone") {
46 ws_fname =
"microboone-celltree-wires-v2.1.json.bz2";
47 fr_fname =
"ub-10-half.json.bz2";
49 if (detector ==
"apa") {
50 ws_fname =
"apa-wires.json.bz2";
51 fr_fname =
"garfield-1d-3planes-21wires-6impacts-dune-v1.json.bz2";
53 if (detector ==
"protodune-larsoft") {
54 ws_fname =
"protodune-wires-larsoft-v1.json.bz2";
55 fr_fname =
"garfield-1d-3planes-21wires-6impacts-dune-v1.json.bz2";
60 pm.
add(
"WireCellSigProc");
61 pm.
add(
"WireCellGen");
67 auto icfg = Factory::lookup<IConfigurable>(fr_tn);
68 auto cfg = icfg->default_configuration();
69 cfg[
"filename"] = fr_fname;
73 auto icfg = Factory::lookup<IConfigurable>(ws_tn);
74 auto cfg = icfg->default_configuration();
75 cfg[
"filename"] = ws_fname;
79 for (
int ianode = 0; ianode < nanodes; ++ianode) {
82 cerr <<
"Configuring: " << tn <<
"\n";
83 auto icfg = Factory::lookup_tn<IConfigurable>(tn);
84 auto cfg = icfg->default_configuration();
85 cfg[
"ident"] = ianode;
86 cfg[
"wire_schema"] = ws_tn;
88 cfg[
"faces"][0][
"cathode"] = 2.5604*
units::m;
const std::string instance
void known_det(std::string maybe)
Plugin * add(const std::string &plugin_name, const std::string &libname="")
Add a plugin. If libname is not given, try to derive it.
QTextStream & endl(QTextStream &s)
Definition at line 28 of file anode_loader.h.
31 if (maybe == det) {
return; }
boost::error_info< struct tag_errmsg, std::string > errmsg
Thrown when a wrong value has been encountered.
std::vector< std::string > known_dets
Initial value:= {
"uboone", "apa", "protodune-larsoft"
}
Definition at line 25 of file anode_loader.h.