DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
triggeralgs
include
triggeralgs
ProtoDUNEBSMWindow
PDVDEffectiveChannelMap.hpp
Go to the documentation of this file.
1
2
#ifndef TRIGGERALGS_PROTODUNEBSMWINDOW_PDVDEFFECTIVECHANNELMAP_HPP_
3
#define TRIGGERALGS_PROTODUNEBSMWINDOW_PDVDEFFECTIVECHANNELMAP_HPP_
4
5
namespace
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
11
class
PDVDEffectiveChannelMap
{
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
19
unsigned
int
getNEffectiveChannels
() {
return
m_n_effective_channels
; }
20
21
protected
:
22
23
unsigned
int
m_first_channel
;
24
unsigned
int
m_n_channels
;
25
unsigned
int
m_n_channels_crp_block
;
26
unsigned
int
m_n_effective_channels
;
27
28
};
29
30
}
// triggeralgs
31
#endif
triggeralgs::PDVDEffectiveChannelMap::m_n_channels_crp_block
unsigned int m_n_channels_crp_block
Definition
PDVDEffectiveChannelMap.hpp:25
triggeralgs::PDVDEffectiveChannelMap::PDVDEffectiveChannelMap
PDVDEffectiveChannelMap(unsigned int first_channel, unsigned int n_channels)
Definition
PDVDEffectiveChannelMap.cpp:5
triggeralgs::PDVDEffectiveChannelMap::m_first_channel
unsigned int m_first_channel
Definition
PDVDEffectiveChannelMap.hpp:23
triggeralgs::PDVDEffectiveChannelMap::m_n_effective_channels
unsigned int m_n_effective_channels
Definition
PDVDEffectiveChannelMap.hpp:26
triggeralgs::PDVDEffectiveChannelMap::remapCollectionPlaneChannel
unsigned int remapCollectionPlaneChannel(unsigned int original_channel)
Definition
PDVDEffectiveChannelMap.cpp:12
triggeralgs::PDVDEffectiveChannelMap::getNEffectiveChannels
unsigned int getNEffectiveChannels()
Definition
PDVDEffectiveChannelMap.hpp:19
triggeralgs::PDVDEffectiveChannelMap::m_n_channels
unsigned int m_n_channels
Definition
PDVDEffectiveChannelMap.hpp:24
triggeralgs
Definition
AbstractFactory.hpp:18
Generated on
for DUNE-DAQ by
1.17.0