I tried modify the TMVAClassification.C macro to analysis for single electron data
and I get the following message.
: Dataset[dataset] : ERROR while preparing training and testing trees:
: Dataset[dataset] : multiple array-type expressions of different length were encountered
: Dataset[dataset] : location of error: event 0 in tree Signal_Tree of file SingleElectron.root
: Dataset[dataset] : expression track_R has Dataset[dataset] : 3 entries, while
: Dataset[dataset] : expression track_Eta has Dataset[dataset] : 6 entries
: Dataset[dataset] : Need to abort
***> abort program execution
terminate called after throwing an instance of ‘std::runtime_error’
what(): FATAL error
The data file I used have variable which is consist of vector of different size.
According to error message, that fact seems to be causing error.
I saw the above topic on ROOT forum.
And found the something I want. In the end of topic kialbert saied “If the vector is of variable size we need to consider another approach.”
But I have no idea how the problem can solve.
Please give me some advice.
I attached the macors.
TMVAClassification.C (3.1 KB)
And this is the data file I used
Thank you a lot for your help in advance.