I try to insert a branch with type “character string” in a TTree but I don’t store what I want in this branch. I’d like to do something like
studymc = new TTree(“studymc”,“TTree from StudyMC.cpp”);
studymc->Branch(“nTfired”, &nTfired, “nTfired/I”);
studymc->Branch(“Tfired”, &Tfired, “Tfired[nTfired]/C”);
with in the corresponding header :
to store an array of “character string” for each event processed. “nTfired” is the number of triggers fired for each event processed and I’d like to store the name of all the fired triggers (“Tfired”) for each event.
I tried several possibilities for the type of Tfired (Char_t, char_t*, Char_t , …) but without success.
I have to admit I don’t understand how to deal with this kind of variables (need to use 2D array, use Char_t*,…?) so any help would be much appreciated.
thanks a lot for any reply,