gordonwatts / CalRatioTrainer

1 stars 2 forks source link

Cluster pt seems like it isn't right #162

Closed gordonwatts closed 1 year ago

gordonwatts commented 1 year ago

This is for all samples: image

gordonwatts commented 1 year ago

The ordering is correct - largest to smallest. But why does the first one seem so much larger?

gordonwatts commented 1 year ago

Here it is:

                eta_sum +=clus_eta_arr[i]*clus_pt_arr[i];
                if (clus_pt_arr[i] != 0) clus_pt_arr[i] = (clus_pt_arr[i])/(500);

Looks like a regular scaling is done (divide by 500). Man. What a bummer!

gordonwatts commented 1 year ago

It looks to me like the clus_pt is in MeV, but we divide by 500, which is meant to be GeV. Tracking the code this is what it seems like, at least. That said - when I look at the numbers that come out, it looks like the GeV conversion is made somewhere in Felix's datafiles, but I can't find it. AND it doesn't seem like it is being made in the code DiVertAnalysis!!!!