24 pm.
add(
"WireCellSigProc");
27 auto incrcfg = Factory::lookup<IConfigurable>(ncr_tn,
"lf1");
28 auto cfg = incrcfg->default_configuration();
32 incrcfg->configure(cfg);
37 auto incrcfg = Factory::lookup<IConfigurable>(ncr_tn1,
"hf1");
38 auto cfg = incrcfg->default_configuration();
44 incrcfg->configure(cfg);
48 auto ncr = Factory::find<IFilterWaveform>(ncr_tn,
"lf1");
49 auto ncr1 = Factory::find<IFilterWaveform>(ncr_tn1,
"hf1");
51 const int nfbins = 100;
52 auto wfs = ncr->filter_waveform(nfbins);
53 auto wfs1 = ncr1->filter_waveform(nfbins);
55 TFile *
file =
new TFile(Form(
"%s.root", argv[0]),
"RECREATE");
56 TGraph *g1 =
new TGraph();
57 TGraph *
g2 =
new TGraph();
58 for (
size_t i=0;i!=wfs.size();i++){
59 g1->SetPoint(i,i,wfs.at(i));
60 g2->SetPoint(i,i,wfs1.at(i));
static PluginManager & instance()
int main(int argc, char *argv[])
Plugin * add(const std::string &plugin_name, const std::string &libname="")
Add a plugin. If libname is not given, try to derive it.
static const double megahertz