#include <sbndPDMapAlg.hh>
Definition at line 41 of file sbndPDMapAlg.hh.
opdet::sbndPDMapAlg::sbndPDMapAlg |
( |
const fhicl::ParameterSet & |
pset | ) |
|
|
explicit |
Definition at line 12 of file sbndPDMapAlg_tool.cc.
15 cet::search_path sp(
"FW_SEARCH_PATH");
16 sp.find_file(
"sbnd_pds_mapping.json", fname);
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
opdet::sbndPDMapAlg::sbndPDMapAlg |
( |
| ) |
|
|
inline |
opdet::sbndPDMapAlg::~sbndPDMapAlg |
( |
| ) |
|
std::string opdet::sbndPDMapAlg::electronicsType |
( |
size_t |
ch | ) |
const |
Definition at line 42 of file sbndPDMapAlg_tool.cc.
44 return PDmap.
at(ch)[
"electronics"];
reference at(size_type idx)
access specified array element with bounds checking
auto opdet::sbndPDMapAlg::getChannelEntry |
( |
size_t |
ch | ) |
const |
Definition at line 70 of file sbndPDMapAlg_tool.cc.
reference at(size_type idx)
access specified array element with bounds checking
std::vector< int > opdet::sbndPDMapAlg::getChannelsOfType |
( |
std::string |
pdname | ) |
const |
Definition at line 47 of file sbndPDMapAlg_tool.cc.
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);
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 > opdet::sbndPDMapAlg::getChannelsOfType |
( |
std::string |
pdname, |
|
|
std::string |
elname |
|
) |
| const |
Definition at line 56 of file sbndPDMapAlg_tool.cc.
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);
reference at(size_type idx)
access specified array element with bounds checking
size_type size() const noexcept
returns the number of elements
template<typename Func >
nlohmann::json opdet::sbndPDMapAlg::getCollectionFromCondition |
( |
Func |
condition | ) |
|
Definition at line 85 of file sbndPDMapAlg.hh.
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
nlohmann::json opdet::sbndPDMapAlg::getCollectionWithProperty |
( |
std::string |
property | ) |
|
Definition at line 76 of file sbndPDMapAlg_tool.cc.
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
template<typename T >
nlohmann::json opdet::sbndPDMapAlg::getCollectionWithProperty |
( |
std::string |
property, |
|
|
T |
property_value |
|
) |
| |
Definition at line 75 of file sbndPDMapAlg.hh.
79 [property, property_value](
auto const&
e)->
bool
80 {
return e[property] == property_value;} );
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 opdet::sbndPDMapAlg::isElectronics |
( |
size_t |
ch, |
|
|
std::string |
pdname |
|
) |
| const |
Definition at line 31 of file sbndPDMapAlg_tool.cc.
33 if(
PDmap.
at(ch)[
"electronics"] == std::string(pdname))
return true;
reference at(size_type idx)
access specified array element with bounds checking
bool opdet::sbndPDMapAlg::isPDType |
( |
size_t |
ch, |
|
|
std::string |
pdname |
|
) |
| const |
|
overridevirtual |
Reimplemented from opdet::PDMapAlg.
Definition at line 25 of file sbndPDMapAlg_tool.cc.
27 if(
PDmap.
at(ch)[
"pd_type"] == std::string(pdname))
return true;
reference at(size_type idx)
access specified array element with bounds checking
std::string opdet::sbndPDMapAlg::pdType |
( |
size_t |
ch | ) |
const |
|
overridevirtual |
size_t opdet::sbndPDMapAlg::size |
( |
void |
| ) |
const |
Definition at line 65 of file sbndPDMapAlg_tool.cc.
size_type size() const noexcept
returns the number of elements
The documentation for this class was generated from the following files: