46 JRootClassReader cls(to);
48 for (Head::const_iterator i = from.begin(); i != from.end(); ++i) {
50 const JRootClassReader& abc = cls.find(
getTag(i->first).c_str());
54 JRedirectString redirect(reader, i->second);
56 reader.getObject(abc);
80 JRootClassWriter cls(from);
82 TIterator* i = cls.getClass()->GetListOfDataMembers()->MakeIterator();
84 for (
const TDataMember* p; (p = (
const TDataMember*) i->Next()) != NULL; os.str(
"")) {
86 if (JRootClass::is_class(*p) && strcmp(p->GetName(), end_event::Class_Name()) != 0) {
88 if (from.find(p->GetName()) != from.end()) {
90 writer.putObject(cls.get(*p));
92 to.insert(make_pair(p->GetName(), os.str()));
99 for (JHead::const_iterator i = from.begin(); i != from.end(); ++i) {
100 if (to.find(i->first) == to.end()) {
static const std::string GSEAGEN
static const std::string KM3
ASCII I/O of objects with ROOT dictionary.
static const std::string MUPAGE
static const std::string GENIE
static const std::string JSIRENE
void copy(const Head &from, JHead &to)
Copy header from from to to.
static JRootDictionary & getInstance()
Get reference to unique instance of this class object.
static const std::string GENHEN
Generators.
static JNullStream null
Null I/O stream.
std::string getTag(const std::string &tag)
Get tag without aanet extension "_<counter>" for identical tags.
const JEquationParameters & getEquationParameters()
Get equation parameters corresponding to Monte Carlo ASCII format, i.e: