Pixel mask as bool, and some repointing.

This commit is contained in:
redford_s
2018-05-07 16:18:27 +02:00
parent b50bd83c4c
commit 500ef26b36
9 changed files with 90 additions and 93 deletions

View File

@ -1,15 +1,15 @@
// file to fit fluo spectrum per pixel with Kalpha and Kalpha plus Kbeta
// and compare the differences
#include "/afs/psi.ch/project/mythen/sophie/sls_detector_calibration/jungfrauCommonHeader.h"
#include "/afs/psi.ch/project/mythen/sophie/sls_detector_calibration/jungfrauCommonFunctions.h"
#include "../sls_detector_calibration/jungfrauCommonHeader.h"
#include "../sls_detector_calibration/jungfrauCommonFunctions.h"
#include "/afs/psi.ch/project/mythen/sophie/sls_detector_calibration/jungfrauFile.C"
#include "/afs/psi.ch/project/mythen/sophie/sls_detector_calibration/jungfrauPixelMask.C"
#include "/afs/psi.ch/project/mythen/sophie/sls_detector_calibration/jungfrauPedestal.C"
#include "../sls_detector_calibration/jungfrauFile.C"
#include "../sls_detector_calibration/jungfrauPixelMask.C"
#include "../sls_detector_calibration/jungfrauPedestal.C"
#include "/afs/psi.ch/project/mythen/sophie/sls_detector_calibration/energyCalibration.h"
#include "/afs/psi.ch/project/mythen/sophie/sls_detector_calibration/energyCalibration.cpp"
#include "../sls_detector_calibration/energyCalibration.h"
#include "../sls_detector_calibration/energyCalibration.cpp"
#include "TGraph.h"
#include "TGraphErrors.h"
@ -27,7 +27,6 @@ int main(int argc, char* argv[]) {
cout << "Correct usage:" << endl;
cout << "arg 1: specify module number" << endl;
cout << "arg 2: specify HG0 or G0" << endl;
cout << "eg: ./CuFluo_Ka_KaKb_Comp 109 G0" << endl;
cout << " " << endl;
exit(1);
}
@ -43,7 +42,7 @@ int main(int argc, char* argv[]) {
TFile* comb_file = new TFile((const char *)(savename),"READ");
jungfrauPixelMask *pixelMaskObject = new jungfrauPixelMask();
static int pixel_mask [NCH];
bool pixel_mask [NCH];
pixelMaskObject->initialisePixelMask(pixel_mask);
int low_ADU_peak = 0;
@ -344,7 +343,7 @@ int main(int argc, char* argv[]) {
delete proj;
} else {
pixel_mask[i] = 0;
pixel_mask[i] = false;
}
}
}