#include <VDColdboxTDEChannelMapService.h>
Public Member Functions | |
VDColdboxTDEChannelMapService (fhicl::ParameterSet const &p, art::ActivityRegistry &areg) | |
std::string | getMapName () const |
int | MapToCRP (int seqch, int &crp, int &view, int &chv) const |
int | MapToDAQ (int crp, int view, int chv, int &seqch) const |
boost::optional< tde::ChannelId > | find_by_seqn (unsigned seqn) const |
std::vector< tde::ChannelId > | find_by_seqn (unsigned from, unsigned to) const |
std::vector< tde::ChannelId > | find_by_crate (unsigned crate, bool ordered=true) const |
std::vector< tde::ChannelId > | find_by_crate_card (unsigned crate, unsigned card, bool ordered=true) const |
boost::optional< tde::ChannelId > | find_by_crate_card_chan (unsigned crate, unsigned card, unsigned chan) const |
std::vector< tde::ChannelId > | find_by_crp (unsigned crp, bool ordered=true) const |
std::vector< tde::ChannelId > | find_by_crp_view (unsigned crp, unsigned view, bool ordered=true) const |
boost::optional< tde::ChannelId > | find_by_crp_view_chan (unsigned crp, unsigned view, unsigned chan) const |
unsigned | ncrates () const |
unsigned | ncrps () const |
unsigned | ntot () const |
unsigned | ncards (unsigned crate) const |
unsigned | nviews (unsigned crp) const |
void | print (std::vector< tde::ChannelId > &vec) |
std::set< unsigned > | get_crateidx () |
std::set< unsigned > | get_crpidx () |
Private Member Functions | |
void | clearMap () |
void | initMap (std::string mapname, unsigned ncrates=1, unsigned ncards=10, unsigned nviews=1) |
void | add (unsigned seq, unsigned crate, unsigned card, unsigned cch, unsigned crp, unsigned view, unsigned vch, unsigned short state=0) |
template<typename Index , typename KeyExtractor > | |
std::size_t | cdistinct (const Index &i, KeyExtractor key) |
void | simpleMap (unsigned ncrates, unsigned ncards, unsigned nviews) |
void | vdcb1crpMap () |
std::vector< tde::ChannelId > | filter (std::vector< tde::ChannelId > &sel) const |
Private Attributes | |
int | fLogLevel |
tde::ChannelTable | chanTable |
std::string | mapname_ |
std::set< unsigned > | crateidx_ |
std::set< unsigned > | crpidx_ |
unsigned | ncrates_ |
unsigned | ncrps_ |
unsigned | ntot_ |
unsigned | nch_ |
Definition at line 138 of file VDColdboxTDEChannelMapService.h.
|
explicit |
Definition at line 56 of file VDColdboxTDEChannelMapService_service.cc.
|
private |
Definition at line 145 of file VDColdboxTDEChannelMapService_service.cc.
|
inlineprivate |
Definition at line 195 of file VDColdboxTDEChannelMapService.h.
|
private |
Definition at line 102 of file VDColdboxTDEChannelMapService_service.cc.
|
inlineprivate |
Definition at line 214 of file VDColdboxTDEChannelMapService.h.
std::vector< ChannelId > dune::VDColdboxTDEChannelMapService::find_by_crate | ( | unsigned | crate, |
bool | ordered = true |
||
) | const |
Definition at line 200 of file VDColdboxTDEChannelMapService_service.cc.
std::vector< ChannelId > dune::VDColdboxTDEChannelMapService::find_by_crate_card | ( | unsigned | crate, |
unsigned | card, | ||
bool | ordered = true |
||
) | const |
Definition at line 217 of file VDColdboxTDEChannelMapService_service.cc.
boost::optional< ChannelId > dune::VDColdboxTDEChannelMapService::find_by_crate_card_chan | ( | unsigned | crate, |
unsigned | card, | ||
unsigned | chan | ||
) | const |
Definition at line 235 of file VDColdboxTDEChannelMapService_service.cc.
std::vector< ChannelId > dune::VDColdboxTDEChannelMapService::find_by_crp | ( | unsigned | crp, |
bool | ordered = true |
||
) | const |
Definition at line 247 of file VDColdboxTDEChannelMapService_service.cc.
std::vector< ChannelId > dune::VDColdboxTDEChannelMapService::find_by_crp_view | ( | unsigned | crp, |
unsigned | view, | ||
bool | ordered = true |
||
) | const |
Definition at line 264 of file VDColdboxTDEChannelMapService_service.cc.
boost::optional< ChannelId > dune::VDColdboxTDEChannelMapService::find_by_crp_view_chan | ( | unsigned | crp, |
unsigned | view, | ||
unsigned | chan | ||
) | const |
Definition at line 281 of file VDColdboxTDEChannelMapService_service.cc.
boost::optional< ChannelId > dune::VDColdboxTDEChannelMapService::find_by_seqn | ( | unsigned | seqn | ) | const |
Definition at line 163 of file VDColdboxTDEChannelMapService_service.cc.
std::vector< ChannelId > dune::VDColdboxTDEChannelMapService::find_by_seqn | ( | unsigned | from, |
unsigned | to | ||
) | const |
Definition at line 174 of file VDColdboxTDEChannelMapService_service.cc.
|
inline |
Definition at line 180 of file VDColdboxTDEChannelMapService.h.
|
inline |
Definition at line 181 of file VDColdboxTDEChannelMapService.h.
|
inline |
Definition at line 145 of file VDColdboxTDEChannelMapService.h.
|
private |
Definition at line 82 of file VDColdboxTDEChannelMapService_service.cc.
int dune::VDColdboxTDEChannelMapService::MapToCRP | ( | int | seqch, |
int & | crp, | ||
int & | view, | ||
int & | chv | ||
) | const |
Definition at line 293 of file VDColdboxTDEChannelMapService_service.cc.
int dune::VDColdboxTDEChannelMapService::MapToDAQ | ( | int | crp, |
int | view, | ||
int | chv, | ||
int & | seqch | ||
) | const |
Definition at line 310 of file VDColdboxTDEChannelMapService_service.cc.
unsigned dune::VDColdboxTDEChannelMapService::ncards | ( | unsigned | crate | ) | const |
Definition at line 324 of file VDColdboxTDEChannelMapService_service.cc.
|
inline |
Definition at line 171 of file VDColdboxTDEChannelMapService.h.
|
inline |
Definition at line 172 of file VDColdboxTDEChannelMapService.h.
|
inline |
Definition at line 173 of file VDColdboxTDEChannelMapService.h.
unsigned dune::VDColdboxTDEChannelMapService::nviews | ( | unsigned | crp | ) | const |
Definition at line 346 of file VDColdboxTDEChannelMapService_service.cc.
void dune::VDColdboxTDEChannelMapService::print | ( | std::vector< tde::ChannelId > & | vec | ) |
Definition at line 368 of file VDColdboxTDEChannelMapService_service.cc.
|
private |
Definition at line 116 of file VDColdboxTDEChannelMapService_service.cc.
|
private |
Definition at line 394 of file VDColdboxTDEChannelMapService_service.cc.
|
private |
Definition at line 224 of file VDColdboxTDEChannelMapService.h.
|
private |
Definition at line 226 of file VDColdboxTDEChannelMapService.h.
|
private |
Definition at line 227 of file VDColdboxTDEChannelMapService.h.
|
private |
Definition at line 223 of file VDColdboxTDEChannelMapService.h.
|
private |
Definition at line 225 of file VDColdboxTDEChannelMapService.h.
|
private |
Definition at line 231 of file VDColdboxTDEChannelMapService.h.
|
private |
Definition at line 228 of file VDColdboxTDEChannelMapService.h.
|
private |
Definition at line 229 of file VDColdboxTDEChannelMapService.h.
|
private |
Definition at line 230 of file VDColdboxTDEChannelMapService.h.