Hello, first I would like to apologize about my spaming on the forum this one will be the last.
Here is the data I would like to get to finally plot my number of detections according to the number of detectors that detected the neutron/gamma.
I’ve tried this code ;
TFile f("RAW148OS_treeFF01.root");
std::unique_ptr<TTree> tree(dynamic_cast<TTree*>(f.Get("Analysis_All")));
tree->SetBranchStatus("*", false);
tree->SetBranchStatus("Psd_All_Shift", true);
ROOT::RDataFrame d("Analysis_All", "RAW148OS_treeFF01.root"); // Interface to TTree and TChain
auto rvec = d.Take<ROOT::VecOps::RVec<UShort_t>>("Psd_All_Shift");
// Affichage des valeurs de rvec
for (const auto& value : rvec) {
std::cout << value << std::endl;
}
Wish returns me datas I really don’t understand but anyway, this is not what TRee::Scan(“Psd_All_Shift”) returns me.
I know that those datas are ROOT::VecOps::RVec<UShort_t>.
If you ever have an idea, I would be Thanksfull.