25 TString toMod = tweaks;
32 if (toMod ==
"")
return true;
33 cout <<
"Invalid tweaker option(s) " << toMod << endl;
40 int i = tweaks.Index(option);
41 if (
i < 0)
return false;
42 tweaks = tweaks(0,
i) + tweaks(
i + option.Length(), tweaks.Length() -
i - option.Length());
49 std::vector<short> samples =
data.container().samples();
50 std::vector<float> corrs =
data.container().corrs();
51 float time =
data.container().ofcTime();
52 double k = 1, deltaT = 0;
55 for (
unsigned int i = 1;
i < corrs.size();
i++) corrs[
i] = 0;
58 unsigned int maxIndex =
data.maxPosition();
64 if (i2 > (
int)
data.nSamples()) i2 = (
int)
data.nSamples();
66 for (
int i = i1;
i < i2;
i++) samples.push_back(
data.sample(
i));
67 corrs.resize(i2 - i1);
68 time = time -
data.time(i1);
72 std::vector<short> oldSamples = samples;
74 for (std::map<unsigned int, bool>::const_iterator
i =
m_samples.begin();
77 samples.push_back(oldSamples[
i->first]);
90 if (!
result)
return nullptr;
94 if (!
data.history() ||
data.adcMax() == 0)
return nullptr;
96 if (!
ofc)
return nullptr;
101 if (evtIndex < 0) evtIndex =
data.container().eventIndex();
105 data.container().energy(), time + deltaT,
data.container().quality(),
106 data.container().pedestal(),
data.container().pedestalRMS(),
107 data.container().status(),
k*
data.container().adcMax());