@@ -54,6 +54,39 @@ are located.
5454```python
5555{{#include ana-cfg.py}}
5656```
57+
58+ ~~~ admonish error title="Unable to Load Library" collapsible=true
59+ If you see an error like the one below, you are probably not linking
60+ your stand-alone processor to its necessary libraries.
61+ The configuration script needs to be updated with `needs` listing
62+ the ldmx-sw libraries that the stand-alone processor needs to be
63+ linked to.
64+
65+ For example, this tutorial uses the Ecal hits defined in the
66+ `Ecal/Event` area which means we need to add `'Ecal_Event'` to
67+ the `needs` list.
68+
69+ Example error you could see...
70+ ```
71+ $ denv fire ana-cfg.py
72+ ---- LDMXSW: Loading configuration --------
73+ Processor source file /home/tom/code/ldmx/website/src/using/analysis/MyAnalyzer.cxx is newer than its compiled library
74+ /home/tom/code/ldmx/website/src/using/analysis/libMyAnalyzer.so (or library does not exist), recompiling...
75+ done compiling /home/tom/code/ldmx/website/src/using/analysis/MyAnalyzer.cxx
76+ ---- LDMXSW: Configuration load complete --------
77+ ---- LDMXSW: Starting event processing --------
78+ Warning in <TClass::Init>: no dictionary for class pair<int,ldmx::SimParticle> is available
79+ Warning in <TClass::Init>: no dictionary for class ldmx::SimParticle is available
80+ Warning in <TClass::Init>: no dictionary for class ldmx::SimTrackerHit is available
81+ Warning in <TClass::Init>: no dictionary for class ldmx::SimCalorimeterHit is available
82+ Warning in <TClass::Init>: no dictionary for class ldmx::HgcrocDigiCollection is available
83+ Warning in <TClass::Init>: no dictionary for class ldmx::EcalHit is available
84+ Warning in <TClass::Init>: no dictionary for class ldmx::CalorimeterHit is available
85+
86+ ... proceeds to seg fault on getEnergy ...
87+ ```
88+ ~~~
89+
5790A quick test can show that the code is compiling and running
5891(although it will not print out anything or create any files).
5992```
0 commit comments