mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-03 19:30:04 +02:00
slsDetectorSoftware: removed warnings, and made compilable via make
This commit is contained in:
parent
f5a86bbfe1
commit
c2b1eef75c
2
Makefile
2
Makefile
@ -23,7 +23,7 @@ CALIBDIR = $(WD)/slsDetectorCalibration
|
|||||||
TABSPACE := "\t"
|
TABSPACE := "\t"
|
||||||
|
|
||||||
|
|
||||||
INCLUDES=-I. -I$(LIBRARYDIR)/commonFiles -I$(LIBRARYDIR)/slsDetector -I$(LIBRARYDIR)/usersFunctions -I$(LIBRARYDIR)/multiSlsDetector -I$(LIBRARYDIR)/slsDetectorUtils -I$(LIBRARYDIR)/slsDetectorCommand -I$(LIBRARYDIR)/slsDetectorAnalysis -I$(LIBRARYDIR)/slsReceiverInterface -I$(LIBRARYRXRDIR)/include -I$(LIBRARYDIR)/threadFiles --I$(LIBRARYDIR)/sharedMemory I$(ASM)
|
INCLUDES=-I. -I$(LIBRARYDIR)/commonFiles -I$(LIBRARYDIR)/slsDetector -I$(LIBRARYDIR)/usersFunctions -I$(LIBRARYDIR)/multiSlsDetector -I$(LIBRARYDIR)/slsDetectorUtils -I$(LIBRARYDIR)/slsDetectorCommand -I$(LIBRARYDIR)/slsDetectorAnalysis -I$(LIBRARYDIR)/slsReceiverInterface -I$(LIBRARYRXRDIR)/include -I$(LIBRARYDIR)/threadFiles -I$(LIBRARYDIR)/sharedMemory -I$(ASM)
|
||||||
|
|
||||||
INCLUDESRXR += -I. -I$(LIBRARYRXRDIR)/include -I$(CALIBDIR) -I$(ASM)
|
INCLUDESRXR += -I. -I$(LIBRARYRXRDIR)/include -I$(CALIBDIR) -I$(ASM)
|
||||||
#LIBFLAGRXR +=
|
#LIBFLAGRXR +=
|
||||||
|
@ -9,15 +9,15 @@ CFLAGS= -g -DC_ONLY -fPIC
|
|||||||
|
|
||||||
DFLAGS= -g -DDACS_INT
|
DFLAGS= -g -DDACS_INT
|
||||||
|
|
||||||
INCLUDES?= -IcommonFiles -IslsDetector -I../slsReceiverSoftware/MySocketTCP -IusersFunctions -ImultiSlsDetector -IslsDetectorUtils -IslsDetectorCommand -IslsDetectorAnalysis -IslsReceiverInterface -I../slsReceiverSoftware/include -IthreadFiles -IsharedMemory-I$(ASM)
|
INCLUDES?= -IcommonFiles -IslsDetector -I../slsReceiverSoftware/MySocketTCP -IusersFunctions -ImultiSlsDetector -IslsDetectorUtils -IslsDetectorCommand -IslsDetectorAnalysis -IslsReceiverInterface -I../slsReceiverSoftware/include -IthreadFiles -IsharedMemory -I$(ASM)
|
||||||
|
|
||||||
#EPICSFLAGS=-D EPICS -I/usr/local/epics/base/include/ -I /usr/local/epics/base/include/os/Linux/ -L /usr/local/epics/base/lib/$(EPICS_HOST_ARCH) -Wl,-R/usr/local/epics/base/lib/$(EPICS_HOST_ARCH) -lca -lCom
|
#EPICSFLAGS=-D EPICS -I/usr/local/epics/base/include/ -I /usr/local/epics/base/include/os/Linux/ -L /usr/local/epics/base/lib/$(EPICS_HOST_ARCH) -Wl,-R/usr/local/epics/base/lib/$(EPICS_HOST_ARCH) -lca -lCom
|
||||||
|
|
||||||
LIBZMQDIR = ../slsReceiverSoftware/include
|
LIBZMQDIR = ../slsReceiverSoftware/include
|
||||||
LIBZMQ = -L$(LIBZMQDIR) -Wl,-rpath=$(LIBZMQDIR) -lzmq
|
LIBZMQ = -L$(LIBZMQDIR) -Wl,-rpath=$(LIBZMQDIR) -lzmq
|
||||||
|
|
||||||
SRC_CLNT=slsDetectorAnalysis/fileIO.cpp usersFunctions/usersFunctions.cpp slsDetector/slsDetectorUtils.cpp slsDetector/slsDetectorCommand.cpp slsDetectorAnalysis/angularConversion.cpp slsDetectorAnalysis/angularConversionStatic.cpp slsDetectorAnalysis/energyConversion.cpp slsDetector/slsDetectorActions.cpp slsDetectorAnalysis/postProcessing.cpp slsDetector/slsDetector.cpp multiSlsDetector/multiSlsDetector.cpp slsDetectorAnalysis/postProcessingFuncs.cpp slsReceiverInterface/receiverInterface.cpp slsDetector/slsDetectorUsers.cpp threadFiles/CondVar.cpp threadFiles/Mutex.cpp threadFiles/ThreadPool.cpp sharedMemory/SharedMemory.cpp #../slsReceiverSoftware/MySocketTCP/MySocketTCP.cpp
|
SRC_CLNT=slsDetectorAnalysis/fileIO.cpp usersFunctions/usersFunctions.cpp slsDetector/slsDetectorUtils.cpp slsDetector/slsDetectorCommand.cpp slsDetectorAnalysis/angularConversion.cpp slsDetectorAnalysis/angularConversionStatic.cpp slsDetectorAnalysis/energyConversion.cpp slsDetector/slsDetectorActions.cpp slsDetectorAnalysis/postProcessing.cpp slsDetector/slsDetector.cpp multiSlsDetector/multiSlsDetector.cpp slsDetectorAnalysis/postProcessingFuncs.cpp slsReceiverInterface/receiverInterface.cpp slsDetector/slsDetectorUsers.cpp threadFiles/CondVar.cpp threadFiles/Mutex.cpp threadFiles/ThreadPool.cpp sharedMemory/SharedMemory.cpp #../slsReceiverSoftware/MySocketTCP/MySocketTCP.cpp
|
||||||
DEPSINCLUDES = $(LIBZMQDIR)/sls_receiver_defs.h $(LIBZMQDIR)/sls_receiver_funcs.h $(LIBZMQDIR)/ansi.h commonFiles/sls_detector_defs.h commonFiles/sls_detector_funcs.h commonFiles/error_defs.h slsDetector/slsDetectorBase.h slsDetectorAnalysis/angCalLogClass.h slsDetectorAnalysis/angleConversionConstant.h slsDetectorAnalysis/badChannelCorrections.h slsDetectorAnalysis/detectorData.h slsDetectorAnalysis/enCalLogClass.h slsDetectorAnalysis/fileIOStatic.h slsDetectorAnalysis/movingStat.h slsDetectorAnalysis/runningStat.h slsDetectorAnalysis/single_photon_hit.h threadFiles/Global.h threadFiles/Task.h usersFunctions/angleFunction.h sharedMemory/sharedMemory.h commonFiles/sls_detector_exceptions.h
|
DEPSINCLUDES = $(LIBZMQDIR)/sls_receiver_defs.h $(LIBZMQDIR)/sls_receiver_funcs.h $(LIBZMQDIR)/ansi.h commonFiles/sls_detector_defs.h commonFiles/sls_detector_funcs.h commonFiles/error_defs.h slsDetector/slsDetectorBase.h slsDetectorAnalysis/angCalLogClass.h slsDetectorAnalysis/angleConversionConstant.h slsDetectorAnalysis/badChannelCorrections.h slsDetectorAnalysis/detectorData.h slsDetectorAnalysis/enCalLogClass.h slsDetectorAnalysis/fileIOStatic.h slsDetectorAnalysis/movingStat.h slsDetectorAnalysis/runningStat.h slsDetectorAnalysis/single_photon_hit.h threadFiles/Global.h threadFiles/Task.h usersFunctions/angleFunction.h sharedMemory/SharedMemory.h commonFiles/sls_detector_exceptions.h commonFiles/versionAPI.h
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ gotthardVirtualServer: $(SRC_MYTHEN_SVC)
|
|||||||
cd gotthardDetectorServer && make -f Makefile.virtual DESTDIR=$(DESTDIR)
|
cd gotthardDetectorServer && make -f Makefile.virtual DESTDIR=$(DESTDIR)
|
||||||
|
|
||||||
|
|
||||||
%.o : %.cpp %.h $(DEPSINCLUDES) Makefile
|
%.o : %.cpp %.h $(DEPSINCLUDES) Makefile
|
||||||
$(CXX) -o $@ -c $< $(INCLUDES) $(DFLAGS) -fPIC $(EPICSFLAGS) -pthread -lrt $(LIBZMQ) $(FLAGS)
|
$(CXX) -o $@ -c $< $(INCLUDES) $(DFLAGS) -fPIC $(EPICSFLAGS) -pthread -lrt $(LIBZMQ) $(FLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
/** maximum rois */
|
/** maximum rois */
|
||||||
#define MAX_ROIS 100
|
#define MAX_ROIS 100
|
||||||
|
|
||||||
|
/** maximum trim en */
|
||||||
|
#define MAX_TRIMEN 100
|
||||||
|
|
||||||
/** maximum unit size of program sent to detector */
|
/** maximum unit size of program sent to detector */
|
||||||
#define MAX_FPGAPROGRAMSIZE (2 * 1024 *1024)
|
#define MAX_FPGAPROGRAMSIZE (2 * 1024 *1024)
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
Path: slsDetectorsPackage/slsDetectorSoftware
|
Path: slsDetectorsPackage/slsDetectorSoftware
|
||||||
URL: origin git@github.com:slsdetectorgroup/slsDetectorPackage.git
|
URL: origin git@github.com:slsdetectorgroup/slsDetectorPackage.git
|
||||||
Repository Root: origin git@github.com:slsdetectorgroup/slsDetectorPackage.git
|
Repository Root: origin git@github.com:slsdetectorgroup/slsDetectorPackage.git
|
||||||
Repsitory UUID: 51fd9ed423b7a8fb45a76b4f48316537c4fb0f5d
|
Repsitory UUID: f5a86bbfe1e4d0ec5e9296b84a3e1096fdc4a9a6
|
||||||
Revision: 1906
|
Revision: 1990
|
||||||
Branch: developer
|
Branch: 3.3.0-rc
|
||||||
Last Changed Author: Dhanya_Thattil
|
Last Changed Author: Dhanya_Thattil
|
||||||
Last Changed Rev: 3818
|
Last Changed Rev: 3938
|
||||||
Last Changed Date: 2018-05-17 10:41:55.000000002 +0200 ./slsDetector/slsDetector.o
|
Last Changed Date: 2018-07-10 14:45:56.000000002 +0200 ./multiSlsDetector/multiSlsDetector.cpp
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -58,7 +58,7 @@ public:
|
|||||||
} \
|
} \
|
||||||
// single id scanned
|
// single id scanned
|
||||||
if (strchr(argv[0],':')) { \
|
if (strchr(argv[0],':')) { \
|
||||||
iv=sscanf(argv[0],"%d:",&pos, cmd); \
|
iv=sscanf(argv[0],"%d:",&pos); \
|
||||||
if (iv == 1 && pos >= 0) { \
|
if (iv == 1 && pos >= 0) { \
|
||||||
cout << "pos " << pos << " is not allowed for readout!" << endl; \
|
cout << "pos " << pos << " is not allowed for readout!" << endl; \
|
||||||
return; \
|
return; \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#define GITURL "git@github.com:slsdetectorgroup/slsDetectorPackage.git"
|
#define GITURL "git@github.com:slsdetectorgroup/slsDetectorPackage.git"
|
||||||
#define GITREPUUID "51fd9ed423b7a8fb45a76b4f48316537c4fb0f5d"
|
#define GITREPUUID "f5a86bbfe1e4d0ec5e9296b84a3e1096fdc4a9a6"
|
||||||
#define GITAUTH "Dhanya_Thattil"
|
#define GITAUTH "Dhanya_Thattil"
|
||||||
#define GITREV 0x3818
|
#define GITREV 0x3938
|
||||||
#define GITDATE 0x20180517
|
#define GITDATE 0x20180710
|
||||||
#define GITBRANCH "developer"
|
#define GITBRANCH "3.3.0-rc"
|
||||||
|
@ -646,7 +646,8 @@ void slsDetector::initializeDetectorStructure(detectorType type) {
|
|||||||
strncpy(thisDetector->calDir, getenv("HOME"), MAX_STR_LENGTH-1);
|
strncpy(thisDetector->calDir, getenv("HOME"), MAX_STR_LENGTH-1);
|
||||||
thisDetector->calDir[MAX_STR_LENGTH-1] = 0;
|
thisDetector->calDir[MAX_STR_LENGTH-1] = 0;
|
||||||
thisDetector->nTrimEn = 0;
|
thisDetector->nTrimEn = 0;
|
||||||
thisDetector->trimEnergies[100];
|
for(int i = 0; i < MAX_TRIMEN; ++i)
|
||||||
|
thisDetector->trimEnergies[i] = 0;
|
||||||
thisDetector->progressIndex = 0;
|
thisDetector->progressIndex = 0;
|
||||||
thisDetector->totalProgress = 1;
|
thisDetector->totalProgress = 1;
|
||||||
strcpy(thisDetector->filePath, "/");
|
strcpy(thisDetector->filePath, "/");
|
||||||
@ -876,6 +877,8 @@ void slsDetector::initializeMembers() {
|
|||||||
case JUNGFRAUCTB:
|
case JUNGFRAUCTB:
|
||||||
fileIO::setFramesPerFile(JFRAU_MAX_FRAMES_PER_FILE);
|
fileIO::setFramesPerFile(JFRAU_MAX_FRAMES_PER_FILE);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ private:
|
|||||||
int nTrimEn;
|
int nTrimEn;
|
||||||
|
|
||||||
/** list of the energies at which the detector has been trimmed */
|
/** list of the energies at which the detector has been trimmed */
|
||||||
int trimEnergies[100];
|
int trimEnergies[MAX_TRIMEN];
|
||||||
|
|
||||||
/** indicator for the acquisition progress - set to 0 at the beginning
|
/** indicator for the acquisition progress - set to 0 at the beginning
|
||||||
* of the acquisition and incremented when each frame is processed */
|
* of the acquisition and incremented when each frame is processed */
|
||||||
|
@ -6355,7 +6355,7 @@ string slsDetectorCommand::cmdReceiver(int narg, char *args[], int action) {
|
|||||||
}
|
}
|
||||||
char answer[100];
|
char answer[100];
|
||||||
memset(answer, 0, 100);
|
memset(answer, 0, 100);
|
||||||
sprintf(answer,"%s", myDet->setReceiverFramesPerFile());
|
sprintf(answer,"%d", myDet->setReceiverFramesPerFile());
|
||||||
return string(answer);
|
return string(answer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user