fixed start != t0 phase issue
This commit is contained in:
parent
b9e0812699
commit
06ae0a12ea
@ -312,7 +312,7 @@ PFourier::PFourier(TH1F *data, Int_t unitTag, Double_t startTime, Double_t endTi
|
|||||||
|
|
||||||
// if endTime == 0 set it to the last time slot
|
// if endTime == 0 set it to the last time slot
|
||||||
if (fEndTime == 0.0) {
|
if (fEndTime == 0.0) {
|
||||||
Int_t last = fData->GetNbinsX();
|
Int_t last = fData->GetNbinsX()-1;
|
||||||
fEndTime = fData->GetBinCenter(last);
|
fEndTime = fData->GetBinCenter(last);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -901,21 +901,21 @@ void PFourier::PrepareFFTwInputData(UInt_t apodizationTag)
|
|||||||
|
|
||||||
// 2nd fill fIn
|
// 2nd fill fIn
|
||||||
if (fUseFFTW) {
|
if (fUseFFTW) {
|
||||||
for (UInt_t i=0; i<fNoOfData-t0bin; i++) {
|
for (UInt_t i=0; i<fNoOfData-start; i++) {
|
||||||
fIn[i][0] = fData->GetBinContent(i+t0bin) - mean;
|
fIn[i][0] = fData->GetBinContent(i+start) - mean;
|
||||||
fIn[i][1] = 0.0;
|
fIn[i][1] = 0.0;
|
||||||
}
|
}
|
||||||
for (UInt_t i=fNoOfData-t0bin; i<fNoOfBins; i++) {
|
for (UInt_t i=fNoOfData-start; i<fNoOfBins; i++) {
|
||||||
fIn[i][0] = 0.0;
|
fIn[i][0] = 0.0;
|
||||||
fIn[i][1] = 0.0;
|
fIn[i][1] = 0.0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (UInt_t i=0; i<fNoOfData-t0bin; i++) {
|
for (UInt_t i=0; i<fNoOfData-start; i++) {
|
||||||
#ifdef HAVE_DKS
|
#ifdef HAVE_DKS
|
||||||
fInDKS[i] = fData->GetBinContent(i+t0bin) - mean;
|
fInDKS[i] = fData->GetBinContent(i+start) - mean;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
for (UInt_t i=fNoOfData-t0bin; i<fNoOfBins; i++) {
|
for (UInt_t i=fNoOfData-start; i<fNoOfBins; i++) {
|
||||||
#ifdef HAVE_DKS
|
#ifdef HAVE_DKS
|
||||||
fInDKS[i] = 0.0;
|
fInDKS[i] = 0.0;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user