Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 17 of file test_empnomo.cxx.
26 cerr <<
"Using AnodePlane: \"" << anode_tns[0] <<
"\"\n";
30 auto icfg = Factory::lookup<IConfigurable>(
"StaticChannelStatus");
35 auto cfg = icfg->default_configuration();
36 cfg[
"anode"] = anode_tns[0];
47 auto icfg = Factory::lookup<IConfigurable>(
"EmpiricalNoiseModel");
48 auto cfg = icfg->default_configuration();
49 cfg[
"anode"] = anode_tns[0];
50 cfg[
"spectra_file"] =
"microboone-noise-spectra-v2.json.bz2";
54 auto anode = Factory::find_tn<IAnodePlane>(anode_tns[0]);
56 cerr <<
"Creating EmpiricalNoiseModel...\n";
58 auto empnomo = Factory::find_tn<IChannelSpectrum>(
"EmpiricalNoiseModel");
60 auto chids = anode->channels();
61 cerr <<
"Got " << chids.size() <<
" channels\n";
62 for (
auto chid : chids) {
63 const auto& amp = (*empnomo)(chid);
68 cerr <<
"ch:" << chid <<
" " << amp.size()
std::vector< std::string > anode_loader(std::string detector)
QTextStream & endl(QTextStream &s)