Replies: 6 comments 1 reply
-
@VinzenzBildstein Does this loop structure make sense? I'm assuming a bgo hit does not have a
|
Beta Was this translation helpful? Give feedback.
-
You might want to cast the bgo hit to a |
Beta Was this translation helpful? Give feedback.
-
This line now causes a seg-fault:
I had to add |
Beta Was this translation helpful? Give feedback.
-
That's weird, what error message do you get from the segfault? I personally would have used a static_cast instead of dynamic_cast, maybe try that. |
Beta Was this translation helpful? Give feedback.
-
Changing to |
Beta Was this translation helpful? Give feedback.
-
I'm not really sure why the dynamic_cast creates a seg-fault, but it can return a null pointer (which would create a seg-fault like error). |
Beta Was this translation helpful? Give feedback.
-
I've been trying to build a HPGe BGO hit pattern that resembles the image blow except that it includes the BGO channels.
I emailed Vinzenz and he suggested I transcribe the reply here so others can benefit and suggest alternate solutions.
To simplify even further the command
TGriffin.fHits.GetArrayNumber():TGriffinBgo.fHits.GetArrayNumber()
in theDraw()
command also works.Beta Was this translation helpful? Give feedback.
All reactions