Commit bd2709e3 authored by Lucas Mello Schnorr's avatar Lucas Mello Schnorr
Browse files

generate an unique filename for every event

parent d1adf7d3
...@@ -136,7 +136,9 @@ void AliAnalysisTaskMyTask::UserExec(Option_t *) ...@@ -136,7 +136,9 @@ void AliAnalysisTaskMyTask::UserExec(Option_t *)
} else { } else {
ofstream esd_detail; ofstream esd_detail;
esd_detail.open ("esd-detail.dat",std::ofstream::app); std::stringstream esd_filename;
esd_filename << "esd_detail-event_" << selectedEventID << ".dat";
esd_detail.open (esd_filename.str(),std::ofstream::app);
fESD = dynamic_cast<AliESDEvent*>(InputEvent()); // get an event (called fESD) from the input file fESD = dynamic_cast<AliESDEvent*>(InputEvent()); // get an event (called fESD) from the input file
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#ifndef AliAnalysisTaskMyTask_H #ifndef AliAnalysisTaskMyTask_H
#define AliAnalysisTaskMyTask_H #define AliAnalysisTaskMyTask_H
#include <sstream>
#include "AliAnalysisTaskSE.h" #include "AliAnalysisTaskSE.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment