Hi,
I have input root file as its tree and branches look like when I type the commands as:
TFile *_file0 = TFile::Open("./Bs2KK_MC2017_36.root")
TTree *T = (TTree*)_file0->Get("T1")
T->Print()
******************************************************************************
*Tree :T1 : CMSSW HF tree *
*Entries : 12799 : Total = 4604483253 bytes File Size = 1151609353 *
* : : Tree compression factor = 4.00 *
******************************************************************************
*Branch :TAna01Event *
*Entries : 12799 : BranchElement (see below) *
*............................................................................*
*Br 169 :fMuons.fChi2LocalMomentum : Float_t fChi2LocalMomentum[fMuons_] *
*Entries : 12799 : Total Size= 300421 bytes File Size = 81759 *
*Baskets : 37 : Basket Size= 25088 bytes Compression= 3.66 *
*............................................................................*
*Br 170 :fMuons.fNumberOfLostTrkHits : Int_t fNumberOfLostTrkHits[fMuons_] *
*Entries : 12799 : Total Size= 300503 bytes File Size = 56581 *
*Baskets : 37 : Basket Size= 25088 bytes Compression= 5.29 *
*............................................................................*
*Br 171 :fMuons.fNumberOfValidTrkHits : Int_t fNumberOfValidTrkHits[fMuons_]*
*Entries : 12799 : Total Size= 300544 bytes File Size = 59670 *
*Baskets : 37 : Basket Size= 25088 bytes Compression= 5.02 *
*............................................................................*
*Br 172 :fMuons.fSegmentComp : Float_t fSegmentComp[fMuons_] *
*Entries : 12799 : Total Size= 300175 bytes File Size = 76596 *
*Baskets : 37 : Basket Size= 25088 bytes Compression= 3.90 *
*............................................................................*
I’d like to get the variables, e.g. fMuons.fSegmentComp and add them to the data loader container.
How can I access and add the variables to be used for the MVA training?
Thanks a lot.