]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/EMCAL/AliEMCALConfiguration.cxx
- Derive value types from TObject so that they can be used in CINT
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEMCALConfiguration.cxx
index 8cc8fdd5a9425437b43f8a80dafeebd810f620f5..979b4fb4ac9166660144ed3bb092fc19476da0e8 100644 (file)
@@ -4,7 +4,9 @@
  *  Created on: 06.11.2014
  *      Author: markusfasel
  */
+#include <cstring>
 #include <sstream>
+#include <iostream>
 #include <TList.h>
 
 #include "AliEMCALJSONReader.h"
@@ -82,4 +84,16 @@ const char* AliEMCALConfiguration::CreateJSONString() const {
   }
   jsonbuilder << "}";
   return jsonbuilder.str().c_str();
+/*
+  std::cout << "My json string " << jsonbuilder.str().c_str() << std::endl;
+  char * result = new char[jsonbuilder.str().length()];
+  strcpy(result, jsonbuilder.str().c_str());  
+  return result;
+*/
+
+}
+
+std::ostream &operator<<(std::ostream & os, const AliEMCALConfiguration &conf){
+  os << conf.CreateJSONString();
+  return os;
 }