Rate corrections are now passed in (ns) units. Improvement to the manual.

This commit is contained in:
Gemma Tinti 2016-04-27 15:42:50 +02:00
parent 5e337debd1
commit b8c86f7e83

View File

@ -5015,7 +5015,7 @@ int slsDetector::setRateCorrection(double t){
int fnum=F_SET_RATE_CORRECT;
int ret=FAIL;
char mess[1000]="";
int64_t arg = t*1e9;
int64_t arg = t/**1e9*/;
int64_t retval = -1;
#ifdef VERBOSE
std::cout<< "Setting Rate Correction to " << arg << endl;
@ -5036,11 +5036,11 @@ int slsDetector::setRateCorrection(double t){
if(t < 0)
thisDetector->tDead = -1;
else
thisDetector->tDead = (double)retval/(double)1e9;
thisDetector->tDead = (double)retval/*/(double)1e9*/;
}
else{
thisDetector->correctionMask&=~(1<<RATE_CORRECTION);
thisDetector->tDead = (double)retval/(double)1e9;
thisDetector->tDead = (double)retval/*/(double)1e9*/;
}
}
} else {