23 #ifndef SBND_OPDETSIM_SBNDPDMAPALG_HH
24 #define SBND_OPDETSIM_SBNDPDMAPALG_HH
35 #include "art_root_io/TFileService.h"
60 bool isPDType(
size_t ch, std::string pdname)
const override;
62 std::string
pdType(
size_t ch)
const override;
79 [property, property_value](
auto const&
e)->
bool
80 {
return e[property] == property_value;} );
84 template<
typename Func>
95 #endif // SBND_OPDETSIM_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
bool isPDType(size_t ch, std::string pdname) const override
nlohmann::json getCollectionFromCondition(Func condition)
This is the interface class for a tool to handle PD mapping in SBN detectors, used for flash matching...
std::vector< int > getChannelsOfType(std::string pdname) const
bool isElectronics(size_t ch, std::string pdname) const
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