#include <TString.h>
#include <TList.h>
#include <TCollection.h>
-#include "TSAXParser.h"
+//#include <TSAXParser.h>
#include "AliCDBMetaData.h"
#include "AliLog.h"
#include "AliTRDCalibraFit.h"
#include "AliTRDCalibraMode.h"
#include "AliTRDCalibPadStatus.h"
-#include "AliTRDSaxHandler.h"
+//#include "AliTRDSaxHandler.h"
+
#include "Cal/AliTRDCalDet.h"
#include "Cal/AliTRDCalPadStatus.h"
#include "Cal/AliTRDCalDCS.h"
Log(Form("File %s not found!",nameFile));
}
- // create parser and parse
- TSAXParser saxParser;
- AliTRDSaxHandler saxHandler;
- saxParser.ConnectToHandler("AliTRDSaxHandler", &saxHandler);
- saxParser.ParseFile(nameFile);
-
- // report errors if present
- if (saxParser.GetParseCode() == 0) {
- Log("XML file validation OK");
- } else {
- Log(Form("ERROR in XML file validation. Parsecode: %s", saxParser.GetParseCode()));
- return 6;
- }
- if (saxHandler.GetHandlerStatus() != 0) {
- Log(Form("ERROR while creating calibration objects. Error code: %s", saxHandler.GetHandlerStatus()));
- return 7;
- }
-
- // get the calibration object storing the data from the handler
- AliTRDCalDCS* fCalDCSObj = saxHandler.GetCalDCSObj();
-
- // store the DCS calib data in the CDB
- AliCDBMetaData metaData1;
- metaData1.SetBeamPeriod(0);
- metaData1.SetResponsible("Frederick Kramer");
- metaData1.SetComment("DCS configuration data in one AliTRDCalDCS object.");
- if (!Store("Calib", "DCSCONFIG", fCalDCSObj, &metaData1, 0, kTRUE)) {
- Log("problems while storing DCS config data object");
- return 8;
- }
+// // create parser and parse
+// TSAXParser saxParser;
+// AliTRDSaxHandler saxHandler;
+// saxParser.ConnectToHandler("AliTRDSaxHandler", &saxHandler);
+// saxParser.ParseFile(nameFile);
+
+// // report errors if present
+// if (saxParser.GetParseCode() == 0) {
+// Log("XML file validation OK");
+// } else {
+// Log(Form("ERROR in XML file validation. Parsecode: %s", saxParser.GetParseCode()));
+// return 6;
+// }
+// if (saxHandler.GetHandlerStatus() != 0) {
+// Log(Form("ERROR while creating calibration objects. Error code: %s", saxHandler.GetHandlerStatus()));
+// return 7;
+// }
+
+// // get the calibration object storing the data from the handler
+// AliTRDCalDCS* fCalDCSObj = saxHandler.GetCalDCSObj();
+
+// // store the DCS calib data in the CDB
+// AliCDBMetaData metaData1;
+// metaData1.SetBeamPeriod(0);
+// metaData1.SetResponsible("Frederick Kramer");
+// metaData1.SetComment("DCS configuration data in one AliTRDCalDCS object.");
+// if (!Store("Calib", "DCSCONFIG", fCalDCSObj, &metaData1, 0, kTRUE)) {
+// Log("problems while storing DCS config data object");
+// return 8;
+// }
return 0;
}