|Message: Referencing/passing sensitive detector to analysis manager||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I'm not quite sure which forum section is best to put this in, so this is my best guess.
Here is the issue that I'm having. I have a stepping action file in my simulation which has information I need to use to know when to call a function in my sensitive detector file. I can access my analysis manager file and its functions by doing analysisManager.functionname(parameters) because the analysis manager is passed to the stepping action and sensitive detector files. What I need to do is to pass the sensitive detector to either the stepping action or analysis manager file, so that I can call a function from sensitive detector from one of those two places. Those files are called at the frequency I need this function from sensitive detector to be called, but since the sensitive detector file is only called from time to time, I need to call this function within it from one of these two other places.
I have tried to do this by passing the sensitive detector to either the stepping action or analysis manager files as the analysis manager is passed to the stepping action and analysis manager files. It's possible I'm missing something, otherwise I wonder whether there is some other reason why this won't work? Is the analysis manager somehow special that it can be passed and the others can't?
What I have done is to add the sensitive detector into (for example) the stepping action declaration, both in the .cc and .hh files. I also declared the sensitive detector itself in the .hh file in the public section. Then I went to mysim.cc and changed the declaration there also. I think this is all I did although it's been a long day and my brain is getting fuzzy.
The errors I get when things don't work are largely complaints about missing semicolons, improper matching of arguments and types, and (strangely) seeming to say that string is not a valid type.
I can give more detail if that would be helpful, it's possible I left out something relevant.
If you have any ideas of what might be causing my difficulties please let me know!
|Inline Depth:||Outline Depth:||Add message:|