DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
PDVDEffectiveChannelMap.hpp
Go to the documentation of this file.
1
2#ifndef TRIGGERALGS_PROTODUNEBSMWINDOW_PDVDEFFECTIVECHANNELMAP_HPP_
3#define TRIGGERALGS_PROTODUNEBSMWINDOW_PDVDEFFECTIVECHANNELMAP_HPP_
4
5namespace triggeralgs {
6
7 // Class to provide mapping from true channel to effective channel
8 // in PD-VD. This is due to the non-intuitive true channel mapping
9 // of CRP planes that makes image creation challenging. Effective
10 // channel mapping avoids gaps in the images
12 public:
13 PDVDEffectiveChannelMap(unsigned int first_channel, unsigned int n_channels);
14
15 // Function to do mapping from true -> effective channel
16 unsigned int remapCollectionPlaneChannel(unsigned int original_channel);
17
18 // Number of effective channels on CRP will be 1/2 number of true channels
20
21 protected:
22
23 unsigned int m_first_channel;
24 unsigned int m_n_channels;
27
28 };
29
30} // triggeralgs
31#endif
PDVDEffectiveChannelMap(unsigned int first_channel, unsigned int n_channels)
unsigned int remapCollectionPlaneChannel(unsigned int original_channel)