JeffersonLab / hps-java

HPS reconstruction and analysis framework in Java
2 stars 10 forks source link

Run recon from the ET ring and display plots #495

Closed JeremyMcCormick closed 5 years ago

JeremyMcCormick commented 5 years ago

Starter script (from hps-java-sandbox):

public static void main(String[] args) {
    CompositeLoopConfiguration config = new CompositeLoopConfiguration();
    LCSimEventBuilder builder = new LCSimTestRunEventBuilder();
    builder.setDebug(false);
    config.setDataSourceType(DataSourceType.ET_SERVER)
            .setDetectorName("HPS-TestRun-v8-5")
            .setEtConnection(EtConnection.createDefaultConnection())
            .setLCSimEventBuilder(builder)
            .setStopOnEndRun(true)
            .setStopOnErrors(true)
            .setSupplyLcioEvents(true)
            .setMaxQueueSize(1)
            .setTimeout(-1L)
            .add(new CalibrationDriver())
            .add(new RawTrackerHitSensorSetup())
            .add(new EventMarkerDriver())
            .add(new EcalRawConverterDriver());
        CompositeLoop loop = new CompositeLoop(config);
        loop.loop(-1);
}
JeremyMcCormick commented 5 years ago

Sent: Monday, June 3, 2019 2:07 PM ... Subject: Re: ET ring processing

Hello Norman,

attached is our java version of the histograms for online data processing, which was written but never used since we are using c++ version, so it was not extensively tested. I compiled it and run, it books 1dim histogram and sends it over activemq, receiver see it and decode correctly.

To compile:

mvn install

To run (assuming ActiveMQ server on host clon00, and topic is 'clasrun.clastest1.daq.hist'):

java -cp target/clasMQ-3.0-SNAPSHOT-jar-with-dependencies.jar org.jlab.clas.mq.IpcServer tcp://clon00.jlab.org:61616 clasrun.clastest1.daq.hist

Please let me know if it is usable. If so you can incorporate it into data processing, and we'll test it here along with the rest of the system. As I described it on the meeting, main idea is to have many senders and our ROOT-based receiver which will fill and display histograms from all senders.

Will give info on ET producer tomorrow.

Sergey

JeremyMcCormick commented 5 years ago

Sent: Monday, June 3, 2019 2:25 PM ... Subject: Re: ET ring processing

Hello Norman,

to insert data from evio file to ET:

  1. Start ET system: et_start -n 100 -s 2000000 -f /et/test1
  2. Start ET producer: evio2et evio_file_name /et/test1
  3. Start ET monitor (just to control): et_monitor -f /et/test1

It will read file over and over again and insert data into ET. Instead of 'evio2et' program 'evio2mem2et' can be used if memory allows, it will read entire file into memory, event rate will be higher in that case.

It all resides in $CODA/src/et-14.0/ on clon machines. Please let me know if it works for you.

NOTE: only one ET system can be run on one machine, so if you are running 'et_start' and see message: et SEVERE: et_netserver: specified port is busy, cannot start server thread then search for 'et_start' or 'coda_et' processes and kill them.

Sergey

JeremyMcCormick commented 5 years ago

From: Serguei Boiarinov boiarino@jlab.org Sent: Monday, June 3, 2019 2:25 PM Subject: Re: ET ring processing

Hello Norman,

to insert data from evio file to ET:

  1. Start ET system: et_start -n 100 -s 2000000 -f /et/test1
  2. Start ET producer: evio2et evio_file_name /et/test1
  3. Start ET monitor (just to control): et_monitor -f /et/test1

It will read file over and over again and insert data into ET. Instead of 'evio2et' program 'evio2mem2et' can be used if memory allows, it will read entire file into memory, event rate will be higher in that case.

It all resides in $CODA/src/et-14.0/ on clon machines. Please let me know if it works for you.

NOTE: only one ET system can be run on one machine, so if you are running 'et_start' and see message: et SEVERE: et_netserver: specified port is busy, cannot start server thread then search for 'et_start' or 'coda_et' processes and kill them.

normangraf commented 5 years ago

Got the following error when trying to build iss495: [ERROR] Failed to execute goal on project hps-record-util: Could not resolve dependencies for project org.hps:hps-record-util:jar:4.4-SNAPSHOT: Could not find artifact org.jlab.coda:et:jar:16.0 in maven-central-repo (http://repo1.maven.org/maven2/) -> [Help 1]

mholtrop commented 5 years ago

The ET system needs to be at 16.2 which can be found here: https://coda.jlab.org/maven/org/jlab/coda/et/16.2/ https://coda.jlab.org/maven/org/jlab/coda/et/16.2/ The 16.0 no longer exists.

I updated the pom.xml and it should work now.

On Jun 14, 2019, at 10:54 AM, normangraf notifications@github.com wrote:

Got the following error when trying to build iss495: [ERROR] Failed to execute goal on project hps-record-util: Could not resolve dependencies for project org.hps:hps-record-util:jar:4.4-SNAPSHOT: Could not find artifact org.jlab.coda:et:jar:16.0 in maven-central-repo (http://repo1.maven.org/maven2/ http://repo1.maven.org/maven2/) -> [Help 1]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JeffersonLab/hps-java/issues/495?email_source=notifications&email_token=ABDD7YWASKTQWJTFHIZOCBDP2OWLXA5CNFSM4HR2VDNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXXA6PQ#issuecomment-502140734, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDD7YXMUPTOWJGDUBXI7FTP2OWLXANCNFSM4HR2VDNA.

normangraf commented 5 years ago

Thank you, that fixes the record-util issue.

JeremyMcCormick commented 5 years ago

Can you check in that change if you didn't already?

On Fri, Jun 14, 2019 at 11:59 PM normangraf notifications@github.com wrote:

Thank you, that fixes the record-util issue.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/JeffersonLab/hps-java/issues/495?email_source=notifications&email_token=AAQXV426QG7NZNNFNDZPXXTP2O553A5CNFSM4HR2VDNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXXG43A#issuecomment-502165100, or mute the thread https://github.com/notifications/unsubscribe-auth/AAQXV47LHO7BZUUBF3BKKHDP2O553ANCNFSM4HR2VDNA .

mholtrop commented 5 years ago

It was checked in.

commit eb2154efe752458ea4c5a22c18cfd17e841c00b8 (HEAD -> iss495, origin/iss495) Author: Maurik Holtrop maurik@physics.unh.edu Date: Fri Jun 14 11:33:18 2019 -0400

Move ET to 16.2 which can actually be found at JLab. :-)
JeremyMcCormick commented 5 years ago

This is resolved by #511.

I have additional features that I would like to implement but this is a good starter version.