Dear experts,
I have a runAnalysis.C macro that I use to compile my custom classes using ROOT5 like
gROOT->LoadMacro("ClassA.cxx++")
In the ClassA definition, I have a preprocessor macro that determines the definition of the class, something like:
#define TYPE 1
#if TYPE == 1
typedef EventA Event;
#endif
#if TYPE == 2
typedef EventB Event;
#endif
Is there a way to pass the TYPE value as a parameter for the compilator in my runAnalysis.C macro instead, so that I don’t have to rewrite it manually in the source file?
ROOT5 as well as ROOT6 solutions are welcome
Thanks a lot!
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided