Hello,
I am trying to save std::vector item to TTree, where
class myclass
{
public:
double v1;
double v2;
}
Is it possible?
Thanks,
Kirill
Hello,
I am trying to save std::vector item to TTree, where
class myclass
{
public:
double v1;
double v2;
}
Is it possible?
Thanks,
Kirill
Hi,
of course! See the part on Loader.C in root.cern.ch/phpBB2/viewtopic.php?t=10029 Once you have called “.L Loader.C+” you can add objects of your class to the TTree.
Cheers, Axel.
Thanks, Axel!
Thank you very much for the link! Though, I’m afraid I won’t be able to do this because I’m not using a macros, but some piece of C++ code running in Athena
Thanks again,
Kirill
[quote=“Axel”]Hi,
of course! See the part on Loader.C in root.cern.ch/phpBB2/viewtopic.php?t=10029 Once you have called “.L Loader.C+” you can add objects of your class to the TTree.
Cheers, Axel.[/quote]
Hi,
look for how to create dictionaries inside Athena, then; there is a Wiki page by Gordon Watts. You should ask your Atlas software people for help if you get stuck building the dictionary.
Cheers, Axel.
Hi, Axel,
OK, thanks!
Kirill
[quote=“Axel”]Hi,
look for how to create dictionaries inside Athena, then; there is a Wiki page by Gordon Watts. You should ask your Atlas software people for help if you get stuck building the dictionary.
Cheers, Axel.[/quote]