16 cfg[
"anodes_tn"] = Json::arrayValue;
24 auto anodes_tn = cfg[
"anodes_tn"];
25 for (
auto anode_tn: anodes_tn) {
26 auto anode = Factory::find_tn<IAnodePlane>(anode_tn.asString());
27 m_anodes.push_back(anode);
40 for(
auto& anode: m_anodes){
42 if(planeId.
index() > -1){
54 for(
auto& anode: m_anodes) {
55 auto chans = anode->channels();
56 ret.insert(ret.end(), chans.begin(), chans.end());
63 for(
auto& anode: m_anodes) {
64 auto ch = anode->channel(chident);
65 if (ch ==
nullptr) {
continue; }
73 for(
auto& anode: m_anodes) {
74 auto ws = anode->wires(channel);
75 if (
ws.empty()) {
continue; }
std::shared_ptr< const IChannel > pointer
std::vector< pointer > vector
Json::Value Configuration
WIRECELL_FACTORY(MegaAnodePlane, WireCell::Gen::MegaAnodePlane, WireCell::IAnodePlane, WireCell::IConfigurable) using namespace WireCell
std::string resolve(const std::string &filename)
int index() const
Layer as index number (0,1 or 2). -1 if unknown.