37 unsigned int cherenkov_channel
38 = map.
get<
unsigned int>(
"CherenkovChannel");
51 ChannelID tofchan(tofdet, tofChannelIt->first);
52 unsigned int online_chan = tofdet_channels.
get<
unsigned int>(tofChannelIt->second);
59 std::vector<unsigned int> muonstack_channels
60 = map.
get<std::vector<unsigned int> >(
"MuonStackChannels");
61 for (
unsigned int muonstack_chan = 0; muonstack_chan < muonstack_channels.size(); ++muonstack_chan) {
63 unsigned int online_chan = muonstack_channels[muonstack_chan];
69 std::vector<unsigned int> paddle_channels
70 = map.
get<std::vector<unsigned int> >(
"PaddlesChannels");
71 for (
unsigned int paddle_chan = 0; paddle_chan < paddle_channels.size(); ++paddle_chan) {
73 unsigned int online_chan = paddle_channels[paddle_chan];
79 std::vector<unsigned int> wc_channels
80 = map.
get<std::vector<unsigned int> >(
"WCChannels");
81 for (
unsigned int wc_chan = 0; wc_chan < wc_channels.size(); ++wc_chan) {
83 unsigned int online_chan = wc_channels[wc_chan];
89 std::vector<unsigned int> other_channels
90 = map.
get<std::vector<unsigned int> >(
"OtherChannels");
91 for (
unsigned int other_chan = 0; other_chan < other_channels.size(); ++other_chan) {
93 unsigned int online_chan = other_channels[other_chan];
111 <<
"Requested online digitizer channel number " << channel <<
" unknown.";
119 <<
"Requested online digitizer channel number " << channel <<
" unknown.";
127 <<
"Requested online digitizer channel number " << channel <<
" unknown.";
135 <<
"Requested offline digitizer channel " << channel <<
" unknown.";
151 std::vector<SystemID> systemIDs;
153 if (std::find(systemIDs.begin(), systemIDs.end(), online.second.GetSystemID()) == systemIDs.end())
154 systemIDs.emplace_back(online.second.System);
160 std::vector<DetectorID> detectorIDs;
162 if (std::find(detectorIDs.begin(), detectorIDs.end(), online.second.GetDetectorID()) == detectorIDs.end())
163 detectorIDs.emplace_back(online.second.System, online.second.Detector);
169 std::vector<ChannelID> channelIDs;
171 if (std::find(channelIDs.begin(), channelIDs.end(), online.second) == channelIDs.end())
172 channelIDs.push_back(online.second);
DetectorID TrigDetector() const
Offline DetectorID for trigger.
std::vector< SystemID > SystemIDs() const
All the SystemIDs in this channel mapping.
#define DEFINE_ART_SERVICE(svc)
std::vector< ChannelID > ChannelIDs() const
All the ChannelIDs in this channel mapping.
::xsd::cxx::tree::exception< char > exception
std::map< ChannelID, unsigned int > fDigitOfflineToOnline
unsigned int OnlineDigitChannel(ChannelID channel) const
Online digiziter channel number for this offline ChannelID.
void FillBeamlineChannels(const fhicl::ParameterSet &map)
T get(std::string const &key) const
bool ActiveDigitChannel(unsigned int channel) const
Enquire whether this online digitizer channel is active.
DetectorID DigitDetector(unsigned int channel) const
Offline DetectorID for this online digitizer channel.
std::vector< DetectorID > DetectorIDs() const
All the DetectorIDs in this channel mapping.
std::map< unsigned int, ChannelID > fDigitOnlineToOffline
SystemID DigitSystem(unsigned int channel) const
Offline SystemID for this online digitizer channel.
ChannelID DigitChannel(unsigned int channel) const
Offline ChannelID for this online digitizer channel.
const std::map< ToFChannel, std::string > ToFChannelNames
const std::map< ToFCounter, std::string > ToFCounterNames
Channel mapping service which may be used to interpret the channels which are read out by the various...
BeamlineChannelMap(fhicl::ParameterSet const &pset)
DetectorID WCDetector(unsigned int detector) const
Offline DetectorID for this online WC detector.