#ifdef ALI_AMORE
#include <AmoreDA.h>
+#include "TObjString.h"
+#include "TSystem.h"
+#include <sstream>
#endif
const char* OUTPUT_FILE = "mch.occupancy";
return -1;
}
+#ifdef ALI_AMORE
+ amore::da::AmoreDA amoreDA(amore::da::AmoreDA::kSender);
+#endif
// needed for streamer application
gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo",
"*",
// Send occupancy store (as a big string) to the AMORE DB
- amore::da::AmoreDA amoreDA(amore::da::AmoreDA::kSender);
-
ostringstream str;
GenerateOutputFile(accumulatedData,str,runNumber,numberOfUsedEvents);
-
- str.close();
-
+
TObjString occupancyAsString(str.str().c_str());
- Int_t status = amoreDA.Send("Occupancy",&occupanyAsString);
+ Int_t status = amoreDA.Send("Occupancy",&occupancyAsString);
if ( status )
{
cerr << "ERROR : Failed to write occupancies in the AMORE database : " << status << endl;