mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
change the filenaming according to det position and not det id
This commit is contained in:
@ -297,20 +297,22 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
|
||||
/** (default) constructor
|
||||
\param type is needed to define the size of the detector shared memory 9defaults to GENERIC i.e. the largest shared memory needed by any slsDetector is allocated
|
||||
\param id is the detector index which is needed to define the shared memory id. Different physical detectors should have different IDs in order to work independently
|
||||
\param pos is the index of object in the parent multislsdet array
|
||||
\param p is the parent multislsdet to access filename ,path etc
|
||||
|
||||
*/
|
||||
|
||||
slsDetector(detectorType type=GENERIC, int id=0, multiSlsDetector *p=NULL);
|
||||
slsDetector(int pos, detectorType type=GENERIC, int id=0, multiSlsDetector *p=NULL);
|
||||
|
||||
/** constructor
|
||||
\param id is the detector index which is needed to define the shared memory id. Different physical detectors should have different IDs in order to work independently
|
||||
\param pos is the index of object in the parent multislsdet array
|
||||
\param p is the parent multislsdet to access filename ,path etc
|
||||
*/
|
||||
slsDetector(int id, multiSlsDetector *p=NULL);
|
||||
slsDetector(int pos, int id, multiSlsDetector *p=NULL);
|
||||
|
||||
|
||||
slsDetector(char *name, int id=0, int cport=DEFAULT_PORTNO, multiSlsDetector *p=NULL);
|
||||
slsDetector(int pos, char *name, int id=0, int cport=DEFAULT_PORTNO, multiSlsDetector *p=NULL);
|
||||
//slsDetector(string const fname);
|
||||
// ~slsDetector(){while(dataQueue.size()>0){}};
|
||||
/** destructor */
|
||||
@ -1415,6 +1417,7 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
|
||||
*/
|
||||
|
||||
int getDetectorId(int i=-1) {return detId;};
|
||||
|
||||
/**
|
||||
Receives a data frame from the detector socket
|
||||
\returns pointer to the data (or NULL if failed)
|
||||
@ -1836,6 +1839,11 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
|
||||
*/
|
||||
int detId;
|
||||
|
||||
/**
|
||||
position ID
|
||||
*/
|
||||
int posId;
|
||||
|
||||
|
||||
/**
|
||||
* parent multi detector
|
||||
|
Reference in New Issue
Block a user