Hello
I am sure it is trivial but could not find it
So, I ve made the .C and .H via the âMakeClassâ and this is how the .h looks like
[code]Int_t NII;
Float_t XELEC[1801]; //[NII]
âŚ
fChain->SetBranchAddress(âXELECâ, XELEC, &b_XELEC);
[/code]
Now, I am not sure how to loop and draw the contents of the XELEC since it is an array. Doing
[code] Int_t kentries = lcpolmc->GetEntriesFast();
TH1F *h1 = new TH1F(âh1â,âXELDETâ, 100, -0.0,0.1);
for (Int_t jentry=0; jentry<kentries;jentry++) {
fChain->GetEntry(jentry);
Int_t ientry = LoadTree(jentry);
h1->Fill(XELDET[jentry]);
cout<<" kentry "<<jentry<<" ientry "<<ientry<<" value "<<XELDET[jentry]<<endl;
}
[/code]
does not produce the proper histogram⌠What am I missing ?
Thanks
Alex