#include <PDDPChannelMap.h>
Public Member Functions | |
PDDPChannelMap (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< DPChannelId > | find_by_seqn (unsigned seqn) const |
std::vector< DPChannelId > | find_by_seqn (unsigned from, unsigned to) const |
std::vector< DPChannelId > | find_by_crate (unsigned crate, bool ordered=true) const |
std::vector< DPChannelId > | find_by_crate_card (unsigned crate, unsigned card, bool ordered=true) const |
boost::optional< DPChannelId > | find_by_crate_card_chan (unsigned crate, unsigned card, unsigned chan) const |
std::vector< DPChannelId > | find_by_crp (unsigned crp, bool ordered=true) const |
std::vector< DPChannelId > | find_by_crp_view (unsigned crp, unsigned view, bool ordered=true) const |
boost::optional< DPChannelId > | 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< DPChannelId > &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 | pddp2crpMap () |
void | pddp4crpMap () |
std::vector< DPChannelId > | filter (std::vector< DPChannelId > &sel) const |
Private Attributes | |
DPChannelTable | chanTable |
std::string | mapname_ |
std::set< unsigned > | crateidx_ |
std::set< unsigned > | crpidx_ |
unsigned | ncrates_ |
unsigned | ncrps_ |
unsigned | ntot_ |
unsigned | nch_ |
Definition at line 134 of file PDDPChannelMap.h.
|
explicit |
Definition at line 57 of file PDDPChannelMap_service.cc.
|
private |
Definition at line 405 of file PDDPChannelMap_service.cc.
|
inlineprivate |
Definition at line 190 of file PDDPChannelMap.h.
|
private |
Definition at line 101 of file PDDPChannelMap_service.cc.
|
inlineprivate |
Definition at line 212 of file PDDPChannelMap.h.
std::vector< DPChannelId > PDDPChannelMap::find_by_crate | ( | unsigned | crate, |
bool | ordered = true |
||
) | const |
Definition at line 470 of file PDDPChannelMap_service.cc.
std::vector< DPChannelId > PDDPChannelMap::find_by_crate_card | ( | unsigned | crate, |
unsigned | card, | ||
bool | ordered = true |
||
) | const |
Definition at line 487 of file PDDPChannelMap_service.cc.
boost::optional< DPChannelId > PDDPChannelMap::find_by_crate_card_chan | ( | unsigned | crate, |
unsigned | card, | ||
unsigned | chan | ||
) | const |
Definition at line 505 of file PDDPChannelMap_service.cc.
std::vector< DPChannelId > PDDPChannelMap::find_by_crp | ( | unsigned | crp, |
bool | ordered = true |
||
) | const |
Definition at line 517 of file PDDPChannelMap_service.cc.
std::vector< DPChannelId > PDDPChannelMap::find_by_crp_view | ( | unsigned | crp, |
unsigned | view, | ||
bool | ordered = true |
||
) | const |
Definition at line 534 of file PDDPChannelMap_service.cc.
boost::optional< DPChannelId > PDDPChannelMap::find_by_crp_view_chan | ( | unsigned | crp, |
unsigned | view, | ||
unsigned | chan | ||
) | const |
Definition at line 551 of file PDDPChannelMap_service.cc.
boost::optional< DPChannelId > PDDPChannelMap::find_by_seqn | ( | unsigned | seqn | ) | const |
Definition at line 433 of file PDDPChannelMap_service.cc.
std::vector< DPChannelId > PDDPChannelMap::find_by_seqn | ( | unsigned | from, |
unsigned | to | ||
) | const |
Definition at line 444 of file PDDPChannelMap_service.cc.
|
inline |
Definition at line 175 of file PDDPChannelMap.h.
|
inline |
Definition at line 176 of file PDDPChannelMap.h.
|
inline |
Definition at line 140 of file PDDPChannelMap.h.
|
private |
Definition at line 78 of file PDDPChannelMap_service.cc.
int PDDPChannelMap::MapToCRP | ( | int | seqch, |
int & | crp, | ||
int & | view, | ||
int & | chv | ||
) | const |
Definition at line 563 of file PDDPChannelMap_service.cc.
int PDDPChannelMap::MapToDAQ | ( | int | crp, |
int | view, | ||
int | chv, | ||
int & | seqch | ||
) | const |
Definition at line 580 of file PDDPChannelMap_service.cc.
unsigned PDDPChannelMap::ncards | ( | unsigned | crate | ) | const |
Definition at line 594 of file PDDPChannelMap_service.cc.
|
inline |
Definition at line 166 of file PDDPChannelMap.h.
|
inline |
Definition at line 167 of file PDDPChannelMap.h.
|
inline |
Definition at line 168 of file PDDPChannelMap.h.
unsigned PDDPChannelMap::nviews | ( | unsigned | crp | ) | const |
Definition at line 616 of file PDDPChannelMap_service.cc.
|
private |
Definition at line 145 of file PDDPChannelMap_service.cc.
|
private |
Definition at line 323 of file PDDPChannelMap_service.cc.
void PDDPChannelMap::print | ( | std::vector< DPChannelId > & | vec | ) |
Definition at line 638 of file PDDPChannelMap_service.cc.
|
private |
Definition at line 115 of file PDDPChannelMap_service.cc.
|
private |
Definition at line 221 of file PDDPChannelMap.h.
|
private |
Definition at line 224 of file PDDPChannelMap.h.
|
private |
Definition at line 225 of file PDDPChannelMap.h.
|
private |
Definition at line 223 of file PDDPChannelMap.h.
|
private |
Definition at line 229 of file PDDPChannelMap.h.
|
private |
Definition at line 226 of file PDDPChannelMap.h.
|
private |
Definition at line 227 of file PDDPChannelMap.h.
|
private |
Definition at line 228 of file PDDPChannelMap.h.