2 #include "art/Utilities/ToolMacros.h"
3 #include "art/Utilities/make_tool.h"
15 cet::search_path sp(
"FW_SEARCH_PATH");
16 sp.find_file(
"sbnd_pds_mapping.json", fname);
27 if(
PDmap.
at(ch)[
"pd_type"] == std::string(pdname))
return true;
33 if(
PDmap.
at(ch)[
"electronics"] == std::string(pdname))
return true;
44 return PDmap.
at(ch)[
"electronics"];
49 std::vector<int> out_ch_v;
50 for (
size_t ch = 0; ch <
PDmap.
size(); ch++) {
51 if (
PDmap.
at(ch)[
"pd_type"] == pdname) out_ch_v.push_back(ch);
58 std::vector<int> out_ch_v;
59 for (
size_t ch = 0; ch <
PDmap.
size(); ch++) {
60 if ((
PDmap.
at(ch)[
"pd_type"] == pdname) && (
PDmap.
at(ch)[
"electronics"] == elname))out_ch_v.push_back(ch);
81 {
return e[property];} );
a class to store JSON values
iterator end() noexcept
returns an iterator to one past the last element
iterator begin() noexcept
returns an iterator to the first element
bool isPDType(size_t ch, std::string pdname) const override
reference at(size_type idx)
access specified array element with bounds checking
size_type size() const noexcept
returns the number of elements
std::vector< int > getChannelsOfType(std::string pdname) const
bool isElectronics(size_t ch, std::string pdname) const
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
std::string electronicsType(size_t ch) const
auto getChannelEntry(size_t ch) const
nlohmann::json getCollectionWithProperty(std::string property)
std::string pdType(size_t ch) const override