172 for (
int sgnl = 0; sgnl <
fInputEvent->GetNumberOfSignals(); sgnl++) {
179 Double_t baseLineMean = 0;
180 for (
int sgnl = 0; sgnl <
fInputEvent->GetNumberOfSignals(); sgnl++) {
183 baseLineMean += baseline;
185 Double_t Baseline = baseLineMean /
fInputEvent->GetNumberOfSignals();
191 for (
int sgnl = 0; sgnl < N; sgnl++) {
196 vector<Double_t> sgnlValues(N, 0.0);
198 for (Int_t bin = 0; bin < nBins; bin++) {
199 for (Int_t sgnl = 0; sgnl < N; sgnl++) {
203 std::sort(sgnlValues.begin(), sgnlValues.end());
206 Int_t begin = 0, middle = 0, end = 0;
207 middle = (Int_t)N / 2;
212 begin = (Int_t)((double_t)N / 2.0);
215 }
else if (
fMode == 1) {
219 norm = (Double_t)end - begin;
223 Double_t binCorrection = 0.0;
224 for (Int_t i = begin; i <= end; i++) binCorrection += sgnlValues[i];
226 binCorrection = binCorrection / norm;
229 for (Int_t sgnl = 0; sgnl < N; sgnl++)
244 for (
int block = 0; block < nBlocks; block++) {
245 firstInBlock = firstID + block * (N + gap);
249 for (Int_t sgnl = 0; sgnl < N; sgnl++) {
250 sigID = firstInBlock + sgnl;
262 vector<Double_t> sgnlValues(nSign, 0.0);
266 for (Int_t bin = 0; bin < nBins; bin++) {
268 for (Int_t sgnl = 0; sgnl < N; sgnl++) {
269 sigID = firstInBlock + sgnl;
281 std::sort(sgnlValues.begin(), sgnlValues.end());
284 Int_t begin = 0, middle = 0, end = 0;
285 middle = (Int_t)nSign / 2;
290 begin = (Int_t)((double_t)nSign / 2.0);
293 }
else if (
fMode == 1) {
297 norm = (Double_t)end - begin;
301 Double_t binCorrection = 0.0;
302 for (Int_t i = begin; i <= end; i++) binCorrection += sgnlValues[i];
304 binCorrection = binCorrection / norm;
307 for (Int_t sgnl = 0; sgnl < N; sgnl++) {
314 for (
int sgnl = 0; sgnl < N; sgnl++) {