added code specifically for the SOLARIS DAQ, the root path is always under /mnt/data1/<expName>
This commit is contained in:
parent
66df74920e
commit
63f447ab41
|
@ -11,8 +11,8 @@
|
|||
#include <QRandomGenerator>
|
||||
#include <QVariant>
|
||||
#include <QCoreApplication>
|
||||
#include <QChartView>
|
||||
#include <QValueAxis>
|
||||
//#include <QChartView>
|
||||
//#include <QValueAxis>
|
||||
#include <QStandardItemModel>
|
||||
#include <QApplication>
|
||||
#include <QDateTime>
|
||||
|
@ -1528,6 +1528,14 @@ void MainWindow::ProgramSettingsPanel(){
|
|||
expDataPath = masterExpDataPath + "/" + expName;
|
||||
rawDataPath = expDataPath + "/data_raw/";
|
||||
rootDataPath = expDataPath + "/root_data/";
|
||||
QString pcName = qEnvironmentVariable("PCName");
|
||||
if( pcName == "solaris-daq" ){
|
||||
LogMsg("This is SOLARIS DAQ....");
|
||||
rawDataPath = expDataPath + "/";
|
||||
LogMsg("Raw Data Path : " + rawDataPath);
|
||||
rootDataPath = "/mnt/data1/" + expName + "/";
|
||||
LogMsg("Root Data Path : " + rootDataPath);
|
||||
}
|
||||
leExpName->setText(expName);
|
||||
leRawDataPath->setText(rawDataPath);
|
||||
|
||||
|
@ -1629,6 +1637,15 @@ bool MainWindow::LoadProgramSettings(){
|
|||
rawDataPath = expDataPath + "/data_raw/";
|
||||
rootDataPath = expDataPath + "/root_data/";
|
||||
|
||||
QString pcName = qEnvironmentVariable("PCName");
|
||||
if( pcName == "solaris-daq" ){
|
||||
LogMsg("This is SOLARIS DAQ....");
|
||||
rawDataPath = expDataPath + "/";
|
||||
LogMsg("Raw Data Path : " + rawDataPath);
|
||||
rootDataPath = "/mnt/data1/" + expName + "/";
|
||||
LogMsg("Root Data Path : " + rootDataPath);
|
||||
}
|
||||
|
||||
leExpName->setText(expName);
|
||||
|
||||
ret = true;
|
||||
|
@ -2123,6 +2140,15 @@ void MainWindow::CreateNewExperiment(const QString newExpName){
|
|||
rawDataPath = expDataPath + "/data_raw/";
|
||||
rootDataPath = expDataPath + "/root_data/";
|
||||
|
||||
QString pcName = qEnvironmentVariable("PCName");
|
||||
if( pcName == "solaris-daq" ){
|
||||
LogMsg("This is SOLARIS DAQ....");
|
||||
rawDataPath = expDataPath + "/";
|
||||
LogMsg("Raw Data Path : " + rawDataPath);
|
||||
rootDataPath = "/mnt/data1/" + expName + "/";
|
||||
LogMsg("Root Data Path : " + rootDataPath);
|
||||
}
|
||||
|
||||
CreateRawDataFolder();
|
||||
WriteExpNameSh();
|
||||
|
||||
|
@ -2190,11 +2216,11 @@ void MainWindow::CreateNewExperiment(const QString newExpName){
|
|||
logMsgHTMLMode = true;
|
||||
LogMsg("<font style=\"color red;\"> !!!! Please Create a new Elog with name <b>" + newExpName + "</b>. </font>");
|
||||
|
||||
expDataPath = masterExpDataPath + "/" + newExpName;
|
||||
rawDataPath = expDataPath + "/data_raw/";
|
||||
rootDataPath = expDataPath + "/root_data/";
|
||||
// expDataPath = masterExpDataPath + "/" + newExpName;
|
||||
// rawDataPath = expDataPath + "/data_raw/";
|
||||
// rootDataPath = expDataPath + "/root_data/";
|
||||
|
||||
CreateRawDataFolder();
|
||||
// CreateRawDataFolder();
|
||||
CreateDataSymbolicLink();
|
||||
|
||||
leRawDataPath->setText(rawDataPath);
|
||||
|
|
Loading…
Reference in New Issue
Block a user