mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-07 10:30:41 +02:00
removed unused variables
This commit is contained in:
parent
ac1e9569b5
commit
d945f39142
@ -24,16 +24,16 @@ const std::string DataProcessor::TypeName = "DataProcessor";
|
|||||||
|
|
||||||
DataProcessor::DataProcessor(int ind, detectorType dtype, Fifo *f,
|
DataProcessor::DataProcessor(int ind, detectorType dtype, Fifo *f,
|
||||||
fileFormat *ftype, bool fwenable, bool *mfwenable,
|
fileFormat *ftype, bool fwenable, bool *mfwenable,
|
||||||
bool *dsEnable, uint32_t *dr, uint32_t *freq,
|
bool *dsEnable, uint32_t *freq,
|
||||||
uint32_t *timer, uint32_t *sfnum, bool *fp,
|
uint32_t *timer, uint32_t *sfnum, bool *fp,
|
||||||
bool *act, bool *depaden, bool *sm, bool *qe,
|
bool *act, bool *depaden, bool *sm,
|
||||||
std::vector<int> *cdl, int *cdo, int *cad)
|
std::vector<int> *cdl, int *cdo, int *cad)
|
||||||
: ThreadObject(ind, TypeName), fifo(f), myDetectorType(dtype),
|
: ThreadObject(ind, TypeName), fifo(f), myDetectorType(dtype),
|
||||||
dataStreamEnable(dsEnable), fileFormatType(ftype),
|
dataStreamEnable(dsEnable), fileFormatType(ftype),
|
||||||
fileWriteEnable(fwenable), masterFileWriteEnable(mfwenable),
|
fileWriteEnable(fwenable), masterFileWriteEnable(mfwenable),
|
||||||
dynamicRange(dr), streamingFrequency(freq), streamingTimerInMs(timer),
|
streamingFrequency(freq), streamingTimerInMs(timer),
|
||||||
streamingStartFnum(sfnum), activated(act),
|
streamingStartFnum(sfnum), activated(act),
|
||||||
deactivatedPaddingEnable(depaden), silentMode(sm), quadEnable(qe),
|
deactivatedPaddingEnable(depaden), silentMode(sm),
|
||||||
framePadding(fp), ctbDbitList(cdl), ctbDbitOffset(cdo),
|
framePadding(fp), ctbDbitList(cdl), ctbDbitOffset(cdo),
|
||||||
ctbAnalogDataBytes(cad), firstStreamerFrame(false) {
|
ctbAnalogDataBytes(cad), firstStreamerFrame(false) {
|
||||||
LOG(logDEBUG) << "DataProcessor " << ind << " created";
|
LOG(logDEBUG) << "DataProcessor " << ind << " created";
|
||||||
|
@ -49,9 +49,9 @@ class DataProcessor : private virtual slsDetectorDefs, public ThreadObject {
|
|||||||
* @param cad pointer to ctb analog databytes
|
* @param cad pointer to ctb analog databytes
|
||||||
*/
|
*/
|
||||||
DataProcessor(int ind, detectorType dtype, Fifo *f, fileFormat *ftype,
|
DataProcessor(int ind, detectorType dtype, Fifo *f, fileFormat *ftype,
|
||||||
bool fwenable, bool *mfwenable, bool *dsEnable, uint32_t *dr,
|
bool fwenable, bool *mfwenable, bool *dsEnable,
|
||||||
uint32_t *freq, uint32_t *timer, uint32_t *sfnum, bool *fp,
|
uint32_t *freq, uint32_t *timer, uint32_t *sfnum, bool *fp,
|
||||||
bool *act, bool *depaden, bool *sm, bool *qe,
|
bool *act, bool *depaden, bool *sm,
|
||||||
std::vector<int> *cdl, int *cdo, int *cad);
|
std::vector<int> *cdl, int *cdo, int *cad);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -268,9 +268,6 @@ class DataProcessor : private virtual slsDetectorDefs, public ThreadObject {
|
|||||||
/** Master File Write Enable */
|
/** Master File Write Enable */
|
||||||
bool *masterFileWriteEnable;
|
bool *masterFileWriteEnable;
|
||||||
|
|
||||||
/** Dynamic Range */
|
|
||||||
uint32_t *dynamicRange;
|
|
||||||
|
|
||||||
/** Pointer to Streaming frequency, if 0, sending random images with a timer
|
/** Pointer to Streaming frequency, if 0, sending random images with a timer
|
||||||
*/
|
*/
|
||||||
uint32_t *streamingFrequency;
|
uint32_t *streamingFrequency;
|
||||||
@ -296,9 +293,6 @@ class DataProcessor : private virtual slsDetectorDefs, public ThreadObject {
|
|||||||
/** Silent Mode */
|
/** Silent Mode */
|
||||||
bool *silentMode;
|
bool *silentMode;
|
||||||
|
|
||||||
/** quad enable */
|
|
||||||
bool *quadEnable;
|
|
||||||
|
|
||||||
/** frame padding */
|
/** frame padding */
|
||||||
bool *framePadding;
|
bool *framePadding;
|
||||||
|
|
||||||
|
@ -162,15 +162,15 @@ void Implementation::setDetectorType(const detectorType d) {
|
|||||||
auto fifo_ptr = fifo[i].get();
|
auto fifo_ptr = fifo[i].get();
|
||||||
listener.push_back(sls::make_unique<Listener>(
|
listener.push_back(sls::make_unique<Listener>(
|
||||||
i, myDetectorType, fifo_ptr, &status, &udpPortNum[i], ð[i],
|
i, myDetectorType, fifo_ptr, &status, &udpPortNum[i], ð[i],
|
||||||
&numberOfTotalFrames, &dynamicRange, &udpSocketBufferSize,
|
&numberOfTotalFrames, &udpSocketBufferSize,
|
||||||
&actualUDPSocketBufferSize, &framesPerFile, &frameDiscardMode,
|
&actualUDPSocketBufferSize, &framesPerFile, &frameDiscardMode,
|
||||||
&activated, &deactivatedPaddingEnable, &silentMode));
|
&activated, &deactivatedPaddingEnable, &silentMode));
|
||||||
dataProcessor.push_back(sls::make_unique<DataProcessor>(
|
dataProcessor.push_back(sls::make_unique<DataProcessor>(
|
||||||
i, myDetectorType, fifo_ptr, &fileFormatType, fileWriteEnable,
|
i, myDetectorType, fifo_ptr, &fileFormatType, fileWriteEnable,
|
||||||
&masterFileWriteEnable, &dataStreamEnable, &dynamicRange,
|
&masterFileWriteEnable, &dataStreamEnable,
|
||||||
&streamingFrequency, &streamingTimerInMs, &streamingStartFnum,
|
&streamingFrequency, &streamingTimerInMs, &streamingStartFnum,
|
||||||
&framePadding, &activated, &deactivatedPaddingEnable,
|
&framePadding, &activated, &deactivatedPaddingEnable,
|
||||||
&silentMode, &quadEnable, &ctbDbitList, &ctbDbitOffset,
|
&silentMode, &ctbDbitList, &ctbDbitOffset,
|
||||||
&ctbAnalogDataBytes));
|
&ctbAnalogDataBytes));
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
listener.clear();
|
listener.clear();
|
||||||
@ -841,7 +841,7 @@ void Implementation::setNumberofUDPInterfaces(const int n) {
|
|||||||
auto fifo_ptr = fifo[i].get();
|
auto fifo_ptr = fifo[i].get();
|
||||||
listener.push_back(sls::make_unique<Listener>(
|
listener.push_back(sls::make_unique<Listener>(
|
||||||
i, myDetectorType, fifo_ptr, &status, &udpPortNum[i],
|
i, myDetectorType, fifo_ptr, &status, &udpPortNum[i],
|
||||||
ð[i], &numberOfTotalFrames, &dynamicRange,
|
ð[i], &numberOfTotalFrames,
|
||||||
&udpSocketBufferSize, &actualUDPSocketBufferSize,
|
&udpSocketBufferSize, &actualUDPSocketBufferSize,
|
||||||
&framesPerFile, &frameDiscardMode, &activated,
|
&framesPerFile, &frameDiscardMode, &activated,
|
||||||
&deactivatedPaddingEnable, &silentMode));
|
&deactivatedPaddingEnable, &silentMode));
|
||||||
@ -850,9 +850,9 @@ void Implementation::setNumberofUDPInterfaces(const int n) {
|
|||||||
dataProcessor.push_back(sls::make_unique<DataProcessor>(
|
dataProcessor.push_back(sls::make_unique<DataProcessor>(
|
||||||
i, myDetectorType, fifo_ptr, &fileFormatType,
|
i, myDetectorType, fifo_ptr, &fileFormatType,
|
||||||
fileWriteEnable, &masterFileWriteEnable, &dataStreamEnable,
|
fileWriteEnable, &masterFileWriteEnable, &dataStreamEnable,
|
||||||
&dynamicRange, &streamingFrequency, &streamingTimerInMs,
|
&streamingFrequency, &streamingTimerInMs,
|
||||||
&streamingStartFnum, &framePadding, &activated,
|
&streamingStartFnum, &framePadding, &activated,
|
||||||
&deactivatedPaddingEnable, &silentMode, &quadEnable,
|
&deactivatedPaddingEnable, &silentMode,
|
||||||
&ctbDbitList, &ctbDbitOffset, &ctbAnalogDataBytes));
|
&ctbDbitList, &ctbDbitOffset, &ctbAnalogDataBytes));
|
||||||
dataProcessor[i]->SetGeneralData(generalData);
|
dataProcessor[i]->SetGeneralData(generalData);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
@ -21,11 +21,11 @@ const std::string Listener::TypeName = "Listener";
|
|||||||
|
|
||||||
Listener::Listener(int ind, detectorType dtype, Fifo *f,
|
Listener::Listener(int ind, detectorType dtype, Fifo *f,
|
||||||
std::atomic<runStatus> *s, uint32_t *portno, std::string *e,
|
std::atomic<runStatus> *s, uint32_t *portno, std::string *e,
|
||||||
uint64_t *nf, uint32_t *dr, int64_t *us, int64_t *as,
|
uint64_t *nf, int64_t *us, int64_t *as,
|
||||||
uint32_t *fpf, frameDiscardPolicy *fdp, bool *act,
|
uint32_t *fpf, frameDiscardPolicy *fdp, bool *act,
|
||||||
bool *depaden, bool *sm)
|
bool *depaden, bool *sm)
|
||||||
: ThreadObject(ind, TypeName), fifo(f), myDetectorType(dtype), status(s),
|
: ThreadObject(ind, TypeName), fifo(f), myDetectorType(dtype), status(s),
|
||||||
udpPortNumber(portno), eth(e), numImages(nf), dynamicRange(dr),
|
udpPortNumber(portno), eth(e), numImages(nf),
|
||||||
udpSocketBufferSize(us), actualUDPSocketBufferSize(as),
|
udpSocketBufferSize(us), actualUDPSocketBufferSize(as),
|
||||||
framesPerFile(fpf), frameDiscardMode(fdp), activated(act),
|
framesPerFile(fpf), frameDiscardMode(fdp), activated(act),
|
||||||
deactivatedPaddingEnable(depaden), silentMode(sm) {
|
deactivatedPaddingEnable(depaden), silentMode(sm) {
|
||||||
|
@ -41,7 +41,7 @@ class Listener : private virtual slsDetectorDefs, public ThreadObject {
|
|||||||
* @param sm pointer to silent mode
|
* @param sm pointer to silent mode
|
||||||
*/
|
*/
|
||||||
Listener(int ind, detectorType dtype, Fifo *f, std::atomic<runStatus> *s,
|
Listener(int ind, detectorType dtype, Fifo *f, std::atomic<runStatus> *s,
|
||||||
uint32_t *portno, std::string *e, uint64_t *nf, uint32_t *dr,
|
uint32_t *portno, std::string *e, uint64_t *nf,
|
||||||
int64_t *us, int64_t *as, uint32_t *fpf, frameDiscardPolicy *fdp,
|
int64_t *us, int64_t *as, uint32_t *fpf, frameDiscardPolicy *fdp,
|
||||||
bool *act, bool *depaden, bool *sm);
|
bool *act, bool *depaden, bool *sm);
|
||||||
|
|
||||||
@ -172,9 +172,6 @@ class Listener : private virtual slsDetectorDefs, public ThreadObject {
|
|||||||
/** Number of Images to catch */
|
/** Number of Images to catch */
|
||||||
uint64_t *numImages;
|
uint64_t *numImages;
|
||||||
|
|
||||||
/** Dynamic Range */
|
|
||||||
uint32_t *dynamicRange;
|
|
||||||
|
|
||||||
/** UDP Socket Buffer Size */
|
/** UDP Socket Buffer Size */
|
||||||
int64_t *udpSocketBufferSize;
|
int64_t *udpSocketBufferSize;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user