Hi,
I am trying to make profile plots for one scalar (“angle” in my code) and one vector (“correctHits” in my code). I am not sure what is the best way to do this. The code snippet I used is the following:
auto CalcHit = [](ints &bec, ints &clus) {
auto clusSize = clus;
return clusSize[bec==0];
};
auto profile_hit = dCut.Filter("nhit > 0")
.Define("correctHits", CalcHit, {"hit_bec", "hit_clusize"})
.Profile1D<ints>({"profile_hit","profile_hit",360,-18.0,18.0},"angle","correctHits");
Here hit_bec and hit_clusize are vectors of int with equal size and ints is just
ROOT::VecOps::RVec <int>
. I intend to make the profile plots of angle and correctHits (hits for which bec==0). When I am running this, I get this error:
Error in <TRint::HandleTermInput()>: std::runtime_error caught: Cannot fill object if the type of the first column is a scalar and the one of the second a container.
What should be the best way to tackle this problem?
Thank you very much,
Arka
_ROOT Version: 6.18/04
_Platform: linuxx8664gcc
_Compiler: gcc 7.4.0