source: MML/trunk/machine/SOLEIL/StorageRing/insertions/idAuxPrepFileNameListMeasAndBkg.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 444 bytes
Line 
1function resFileNames = idAuxPrepFileNameListMeasAndBkg(origFileNameList, perMeasWithoutBkg)
2
3numCycles = floor(length(origFileNameList)/(perMeasWithoutBkg + 1));
4
5i0 = 0;
6i0r = 0;
7for i = 1:numCycles
8    iBkg = i0 + (perMeasWithoutBkg + 1);
9    for j = 1:perMeasWithoutBkg
10        resFileNames{i0r + j} = {origFileNameList{i0 + j}, origFileNameList{iBkg}};
11    end
12    i0r = i0r + perMeasWithoutBkg;
13    i0 = i0 + (perMeasWithoutBkg + 1);
14end
Note: See TracBrowser for help on using the repository browser.