CaloCluster drawing locations #225
-
Hi! I was playing with Phoenix and injecting some objects via JSON. I'm seeing unexpected locations of my CaloCluster objects in eta/phi space. If I, for example, hand the same eta/phi direction to both a jet and a CaloCluster object, they're in very different locations. I suspect the issue is somewhere in the projection surface handling, probably on my side. The following screenshot shows a jet and a CaloCluster object with exactly the same eta/phi, and you can see the shift in drawing location. The JSON snippet is also below. "Jets": {
"Jets": [
{
"phi": -0.6605201959609985,
"eta": -0.3017900288105011,
"energy": 633767.0
},
{
"phi": -0.6605201959609985,
"eta": -0.30008089542388916,
"energy": 502159.03125
}
]
},
"CaloClusters": {
"JetConstituents": [
{
"phi": -0.6605201959609985,
"eta": -0.30008089542388916,
"energy": 502159.03125
}
]
}, I see in the manual:
but I can't quite figure out 1) where exactly to add this to my collection in a way that makes it have any effect, and 2) what these numbers specifically correspond to. I'm hoping someone can provide some feedback on how to think about the positioning of the CaloCluster objects. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
I am not a physics guy so I can't really answer you on the domain aspect. I think @EdwardMoyse will when he sees it. But going through the code I don't see Even so, if you want to have a look at the object construction logic for clusters. The code is here: https://github.com/HSF/phoenix/blob/master/packages/phoenix-event-display/src/loaders/objects/phoenix-objects.ts#L200-L228 |
Beta Was this translation helpful? Give feedback.
-
Hi all, Sorry for the delay - I can confirm there is a bug with the calo positions (I made a test JSON and used labels to check). I think we can fix it easily but I would prefer clean all of this code up a bit, so it might have to wait until next week. |
Beta Was this translation helpful? Give feedback.
-
Hi Larry - have a look at this MR where I think I fixed it #251 |
Beta Was this translation helpful? Give feedback.
Hi Larry - have a look at this MR where I think I fixed it #251