#include <VDColdboxChannelMapService.h>
dune::VDColdboxChannelMapService::VDColdboxChannelMapService |
( |
fhicl::ParameterSet const & |
pset | ) |
|
Definition at line 14 of file VDColdboxChannelMapService_service.cc.
19 sp.find_file(channelMapFile, fullname);
21 if (fullname.empty()) {
22 std::cout <<
"Input file " << channelMapFile <<
" not found" <<
std::endl;
26 std::cout <<
"VD Coldbox Channel Map: Building TPC wiremap from file " << channelMapFile <<
std::endl;
28 std::ifstream
inFile(fullname, std::ios::in);
30 while (std::getline(
inFile,line)) {
32 std::stringstream linestream(line);
36 chinfo.wibconnector >>
45 infotochanmap[chinfo.wib][chinfo.wibconnector][chinfo.cebchan] = chinfo.offlchan;
std::unordered_map< int, VDCBChanInfo > chantoinfomap
std::unordered_map< int, std::unordered_map< int, std::unordered_map< int, int > > > infotochanmap
void line(double t, double *p, double &x, double &y, double &z)
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)
int dune::VDColdboxChannelMapService::getOfflChanFromSlotFiberChan |
( |
int |
slot, |
|
|
int |
fiber, |
|
|
int |
chan |
|
) |
| |
int dune::VDColdboxChannelMapService::getOfflChanFromWIBConnectorInfo |
( |
int |
wib, |
|
|
int |
wibconnector, |
|
|
int |
cechan |
|
) |
| |
Definition at line 85 of file VDColdboxChannelMapService_service.cc.
90 auto& m1 = fm1->second;
91 auto fm2 = m1.find(wibconnector);
92 if (
fm2 == m1.end())
return r;
93 auto&
m2 =
fm2->second;
94 auto fm3 =
m2.find(cechan);
95 if (
fm3 ==
m2.end())
return r;
std::unordered_map< int, std::unordered_map< int, std::unordered_map< int, int > > > infotochanmap
static constexpr double fm3
static constexpr double m2
static constexpr double fm2
std::unordered_map<int,VDCBChanInfo> dune::VDColdboxChannelMapService::chantoinfomap |
|
private |
std::unordered_map<int,std::unordered_map<int,std::unordered_map<int,int> > > dune::VDColdboxChannelMapService::infotochanmap |
|
private |
The documentation for this class was generated from the following files: