Using the 4C fit "outside the framework" [message #17886] |
Fri, 13 February 2015 12:58 |
Marcel Tiemens
Messages: 47 Registered: January 2014
|
continuous participant |
From: *kvi-cart.rug.nl
|
|
Hello everyone,
Before posting my question, let me set the stage. I'm working an a new algorithm for clustering in the EMC, and in doing that, the data structures that are created do not neccesarily follow the format of the PandaRoot framework. That wouldn't really matter at this point, however, to test the algorithm, I am trying to reconstruct some decay (in my case, pbarp->h_c->...->7 gamma), and to improve on the resolution of e.g. the invariant mass of the h_c, I tried to apply a kinematic fit.
As I'm not creating the data in the format of the framework, I manually build the RhoCandidates from the Lorentz vectors of the clusters, and put them in a RhoCandList (and all the other particles in the decay), so I can use the kinematic fit as sketched in the Rho tutorial. When I try to run the macro I made however, ROOT complains that some matrix (which one is not specified) is singular and crashes in a segmentation violation. I've tried looking into the code of the PndKinFitter, but didn't learn much as to the cause of the crash. Johan said that I needed to specify the energy resolution matrix somewhere, but I can't figure out where. Does anyone know 1) if this is (likely) the reason for the crash and 2) how I can specify this matrix 'externally'? Or something else I can do to get around this problem?
Thanks!
Marcel
[Updated on: Fri, 13 February 2015 12:59] Report message to a moderator
|
|
|