-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding AHDC geom in mon12 #66
base: main
Are you sure you want to change the base?
Conversation
if I understood correctly, the graph would show hits for single events, right? mon12 is not really meant for that because it is usually run in accumulation mode, while CED will provide that functionality. The 2D histogram is a better option in my opinion. A few suggestions on that:
|
Hello, I have removed the XY graph as it was not convenient for mon12. Concerning the 2D histogram, my intention to represent wires as filled circles led me to use a big number of bins : 1000x1000. Unfortunately, this big number of bins had a bad effect on the performance of the software. Before continuing to your suggestion, I have renounced to the idea of representing wires as a filled circles. Now, representing a wire as a simple rectangle allowed me to reduced the number of bins up to 120x120 (a good compromise). What do you think about this modification ? |
Renounce to the idea of representing wires as filled circles
Hi,
Thanks for addressing my comments so quickly.
120x120 bin should definitely be manageable.
The one concern that I would still have is about how easy it would be for shift takers to spot a missing wire…in my experience, a histogram where all bins are by default filled makes it easier, hence my suggestion on phi vs. layer
… On 18 Dec 2024, at 13:55, Felix Touchte Codjo ***@***.***> wrote:
Hello,
I have removed the XY graph as it was not convenient for mon12.
Concerning the 2D histogram, my intention to represent wires as filled circles lead me to use a big number of bins : 1000x1000. Unfortunately, this big number of bins had a bad effect on the performance of the software.
Before continuing to your suggestion, I have renounced to the idea of representing wires as a filled circles. Now, representing a wire as a simple rectangle allowed me to reduced the number of bins up to 120x120 (a good compromise).
What do you think about this modification ?
120x120 bins
120bins.png (view on web) <https://github.com/user-attachments/assets/2ad0b15c-4e16-4504-9135-2e2b606e5fb5>
100x100 bins
100bins.png (view on web) <https://github.com/user-attachments/assets/a6bc1dec-2522-4a06-89c9-a14675eda1d8>
80x80 bins
80bins.png (view on web) <https://github.com/user-attachments/assets/6ec312b3-7776-4a8c-8311-b97892dea782>
36x36 bins
36bins.png (view on web) <https://github.com/user-attachments/assets/cafe86fd-ed22-42d0-b40c-f417db6f09ed>
—
Reply to this email directly, view it on GitHub <#66 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABZNEPWD35VELY4NOUVOYDT2GFWF7AVCNFSM6AAAAABTYLCIZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJRGI2TIOBYGQ>.
You are receiving this because you commented.
|
Hi, Sorry for the delay. It's true, it's difficult to have access to a given wire in the "x vs y" representation. But, as we don't have the same number of wires in each layer, using "phi vs layer" will be also difficult. Here is an alternative : wire vs layer
What do you think ? Another question : I know there is a new branch with the new version of coatjava that implements the AHDC decoder. I wonder how to use this decoder in coatjava. |
Hi Felix,
That seems a good solution.
To switch to the new decode, it should be sufficient to change the coat-libs version in the mon12 pom file https://github.com/JeffersonLab/mon12/blob/main/pom.xml#L12 to the latest release number, i.e. 11.1.0.
On Jan 8, 2025, at 7:37 AM, Felix Touchte Codjo ***@***.***> wrote:
Hi,
Sorry for the delay. It's true, it's difficult to have access to a given wire in the "x vs y" representation. But, as we don't have the same number of wires in each layer, using "phi vs layer" will be also difficult.
Here is an alternative : wire vs layer
layer ID layer number
11 1
21 2
22 3
31 4
32 5
41 6
42 7
51 8
What do you think ?
Another question : I know there is a new branch with the new version of coatjava that implements the AHDC decoder. I wonder how to use this decoder in coatjava.
Capture.d.ecran.de.2025-01-08.12-40-10.png (view on web)<https://github.com/user-attachments/assets/c9e81f13-654e-4e3f-92c8-2a0d8f0955cc>
—
Reply to this email directly, view it on GitHub<#66 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABZNEPUJWFCLFTIFKGQ4QQL2JULXDAVCNFSM6AAAAABTYLCIZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZXGU3TEMRVGY>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Backup : need to fix maven dependencies
here's the needed fix for coatjava: JeffersonLab/coatjava#432 |
Hi everyone, I have made some modification in coatjava JeffersonLab/coatjava#446 to recover more data from AHDC pulse analysis. I have re-organised the AHDC tab in mon12 to show :
Here is the result when reading some evio files. Here is the result when reading some hipo files containing the relevant data. Comment My remaining concern is the way I have computed the mean values of the decoded quantity. Is it the good way to do that? Also, what plots should be displayed in |
The new tabs look very good to me. Concerning your questions:
|
Thank you very much, I will update the code. |
Hi, I have displayed the occupancy in the summary tab. Concerning the and and this method is used more that one time, I think we could accumulate error : Am I right ? |
You are right: doing it like that would introduce a bias. In suggesting this approach, I forgot to mention something important...
and in analysisUpdate
|
I have finally used the analysisUpdate() method to compute the averages of each decoding outputs. Everything works fine with hipo files. For evio files, as we need to use the decoder, I had to store more data in the AHDC::adc bank. So I have done some modifications in coatjava. |
@raffaelladevita could you please review/merge? |
It cannot be merged yet because it requires a new version of coatjava with updates to the decoder and AHDC::add bank
… On 8 Feb 2025, at 23:58, Whitney Armstrong ***@***.***> wrote:
@raffaelladevita <https://github.com/raffaelladevita> could you please review/merge?
—
Reply to this email directly, view it on GitHub <#66 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABZNEPQGBXWSUFWJGOQ4W7T2O3N55AVCNFSM6AAAAABTYLCIZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBWGA3DSOJRHA>.
You are receiving this because you were mentioned.
|
@ftouchte What is the status of the decoder (evio)? I assume this (JeffersonLab/coatjava#446) is the PR that has those changes? |
Merge branch 'main' of https://github.com/JeffersonLab/mon12 into issue/sync-fork
@ftouchte could you please rebase the PR? |
@whit2333 I think my PR is already up to date with the recent changes in mon12. |
I just checked on clondaq7 with a recent run and I get this repeated error
@baltzell or @raffaelladevita do you know what line is causing this error to print? |
@whit2333
To deal with that, I have just rename the package name and overwrite the coatjava downloaded by maven ( |
@ftouchte , you are right I needed to update my coatjava version. The errors remain and the histograms are still not being populated. |
@whit2333 Terminal output (mon12_output.txt ) Here are the steps I have followed : #mvn clean
ifarm2401.jlab.org> mvn install
Failed to load native library:jansi-2.4.1-c408528079fcc0ac-libjansi.so. The native library file at /tmp/jansi-2.4.1-c408528079fcc0ac-libjansi.so is not executable, make sure that the directory is mounted on a partition without the noexec flag, or set the jansi.tmpdir system property to point to a proper location. osinfo: Linux/x86_64
java.lang.UnsatisfiedLinkError: /tmp/jansi-2.4.1-c408528079fcc0ac-libjansi.so: /tmp/jansi-2.4.1-c408528079fcc0ac-libjansi.so: failed to map segment from shared object
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< org.clas.detector:clas12mon >---------------------
[INFO] Building clas12mon 7.10
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from clas12maven: https://clasweb.jlab.org/clas12maven/org/jlab/coat/coat-libs/11.1.0-SNAPSHOT/maven-metadata.xml
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ clas12mon ---
... ifarm2401.jlab.org> echo $CLAS12DIR
/u/scigroup/cvmfs/hallb/clas12/sw/noarch/coatjava/11.1.1
ifarm2401.jlab.org> setenv CLAS12DIR /w/hallb-scshelf2102/clas12/users/touchte/coatjava/coatjava
ifarm2401.jlab.org> echo $CLAS12DIR
/w/hallb-scshelf2102/clas12/users/touchte/coatjava/coatjava ifarm2401.jlab.org> ls -ll /home/touchte/.m2/repository/org/jlab/coat/coat-libs/11.1.0-SNAPSHOT/
total 259230
-rw-r--r--. 1 touchte clas12-grp 198289518 Feb 12 10:50 coat-libs-11.1.0-SNAPSHOT.jar
-rw-r--r--. 1 touchte enp 477 Jan 2 17:37 coat-libs-11.1.0-SNAPSHOT.pom
-rw-r--r--. 1 touchte enp 226 Feb 6 16:27 _remote.repositories
-rw-r--r--. 1 touchte enp 235 Feb 21 05:12 resolver-status.properties
ifarm2401.jlab.org>
ifarm2401.jlab.org> cp /w/hallb-scshelf2102/clas12/users/touchte/coatjava/coatjava/lib/clas/coat-libs-11.1.2-SNAPSHOT.jar /home/touchte/.m2/repository/org/jlab/coat/coat-libs/11.1.0-SNAPSHOT/coat-libs-11.1.0-SNAPSHOT.jar
ifarm2401.jlab.org> ls -ll /home/touchte/.m2/repository/org/jlab/coat/coat-libs/11.1.0-SNAPSHOT/
total 259278
-rw-r--r--. 1 touchte clas12-grp 198298382 Feb 21 05:21 coat-libs-11.1.0-SNAPSHOT.jar
-rw-r--r--. 1 touchte enp 477 Jan 2 17:37 coat-libs-11.1.0-SNAPSHOT.pom
-rw-r--r--. 1 touchte enp 226 Feb 6 16:27 _remote.repositories
-rw-r--r--. 1 touchte enp 235 Feb 21 05:12 resolver-status.properties
ifarm2401.jlab.org>
ifarm2401.jlab.org>
ifarm2401.jlab.org> ifarm2401.jlab.org> ./bin/mo
mon12* mon12_hydra* mon12_rgc* mon12_rgd* mon12_rge* mon12_rgk* mon12-rgl* mon12_rgm*
ifarm2401.jlab.org> ./bin/mon12
[HipoDataSync] ---> dictionary size = 241
[ConstantsManager] ---> loading table for run = 2284
[DB] ---> open connection with : mysql://[email protected]/clas12
[DB] ---> database variation : default
[DB] ---> database run number : 2,284
[DB] ---> database time stamp : 2/21/25, 5:25 AM
[DB] ---> database connection : success
***** >>> adding : BMTconfig / table = /daq/config/bmt
[DB] ---> database disconnect : success
[RCDB] ---> open connection with : mysql://[email protected]/rcdb
[RCDB] ---> database connection : success
[RCDB] ---> database disconnect : success
...
#see file mon12_output.txt Remark, this figure shows another issue related to the https://github.com/JeffersonLab/coatjava/blob/e4ba622ad161e9f1fc55478f5c1b0e09a3656c65/common-tools/clas-detector/src/main/java/org/jlab/detector/pulse/ModeAHDC.java#L274
|
see JeffersonLab/coatjava#483 |
I think, I just understand what is going wrong. It is in ModeAHDC, I never fill the |
I have fixed the issue. JeffersonLab/coatjava#480 |
can this be merged? |
Hello,
I have tried to produce plots with respect to the AHDC geometry on mon12.
The geometry information is retrieved from coatjava. In two temporary tabs (
geom
andgeom_bis
), I have presented some examples of use. The code is not perfect and has a lot unnecessary screen outputs. Thanks to this discussion, we can improve the result.The following graph, in

geom
, shows a XY graph of the detector (2D view at the center of the detector).The following graphs, in
geom_bis
, are 2D histograms showing the wire occupancy during respectively100000
and100
events.100000 events

100 events
