put Settings and Logs into working

This commit is contained in:
Ryan Tang 2023-03-27 15:58:20 -04:00
parent 802596af78
commit 6a37002b5d
3 changed files with 7 additions and 4 deletions

View File

@ -31,7 +31,7 @@ SOLARISpanel::SOLARISpanel(Digitizer2Gen **digi, unsigned short nDigi,
this->mapping = mapping;
this->detType = detType;
this->detMaxID = detMaxID;
this->digiSettingPath = analysisPath + "/Settings/";
this->digiSettingPath = analysisPath + "/working/Settings/";
//Check number of detector type; Array 0-199, Recoil 200-299, other 300-
int nDetType = detType.size();

View File

@ -70,7 +70,7 @@ DigiSettingsPanel::DigiSettingsPanel(Digitizer2Gen ** digi, unsigned short nDigi
this->nDigi = MaxNumberOfChannel;
qDebug() << "Please increase the MaxNumberOfChannel";
}
this->digiSettingPath = analysisPath + "/Settings/";
this->digiSettingPath = analysisPath + "/working/Settings/";
ID = 0;
enableSignalSlot = false;

View File

@ -268,7 +268,10 @@ MainWindow::~MainWindow(){
LogMsg("Closing SOLARIS DAQ.");
QFile file(analysisPath + "/working/Log_" + QDateTime::currentDateTime().toString("yyyyMMdd_hhmmss") + ".dat");
QDir dir(analysisPath + "/working/Logs/");
if( !dir.exists() ) dir.mkpath(".");
QFile file(analysisPath + "/working/Logs/Log_" + QDateTime::currentDateTime().toString("yyyyMMdd_hhmmss") + ".dat");
printf("-------- Save log msg to %s\n", file.fileName().toStdString().c_str());
if (file.open(QIODevice::WriteOnly | QIODevice::Text)) {
QTextStream stream(&file);
@ -593,7 +596,7 @@ void MainWindow::OpenDigitizers(){
int nDigiConnected = 0;
//Check path exist
QDir dir(analysisPath + "/Settings/");
QDir dir(analysisPath + "/working/Settings/");
if( !dir.exists() ) dir.mkpath(".");
for( int i = 0; i < nDigi; i++){