padsley / k600analyser

Code for the K600 analyser including plugin codes for silicon, clover and HAGAR data
1 stars 4 forks source link

preprocessor directive VDCRESCALCS #160

Open neveling opened 7 years ago

neveling commented 7 years ago

This dates back to a time when all the focal plane code was inside f-plane.c (now main.c). Now a lot of it was moved to Focalplane.c

To save on processing time I placed some of the resolution parameters (res2 to res8 for all 4 wireplanes) inside

ifdef _VDCRESCALCS

so not not produce unnecessary output. This was inside the variable definitions, the main event routine as well as inside the raytrace routine.

Then later I moved a lot of the focalplane routines to Focalplane.c so that main.c will be less busy and only focus on the main things happening per event.

Now that I wanted to calculate the res6 parameter, I ran into the trouble that even after I uncommented the preprocessor directive in main.c, the res6 parameter was still useless. That is because raytrace never actually calculated it.

Will probably need a more elegant solution in future, but for now I will just place

define _VDCRESCALCS

inside Focalplane.c as well.

padsley commented 4 years ago

I think that this is part of the new FPData class stuff so I am grouping it with that as a reminder that we need to do this.