Print

Print


I made an example showing how to calculate the integrated luminosity for a job, and it doesn't need the run database.  You can access the necessary information from the LCSim events, as the EPICS data timestamps are now included.

You can see here in hps-java trunk

users/src/test/java/org/hps/users/jeremym/LuminosityAnalysisDriverTest.java

e.g. to try it

cd users

mvn test -Dtest=LuminosityAnalysisDriverTest

which prints something like this

adding EPICS data with timestamp 1431853731 and Faraday cup current 50.986988
adding EPICS data with timestamp 1431853733 and Faraday cup current 50.915791
adding EPICS data with timestamp 1431853735 and Faraday cup current 51.08247
adding EPICS data with timestamp 1431853738 and Faraday cup current 50.78223
adding EPICS data with timestamp 1431853742 and Faraday cup current 51.530624
adding EPICS data with timestamp 1431853744 and Faraday cup current 51.521244
adding EPICS data with timestamp 1431853746 and Faraday cup current 50.139801
luminosity for job was 7.66036711E-6C

I just put it into my users area because this is just a rough example that we should refine.

Let me know what you think.

-----Original Message-----
From: Nathan Baltzell [mailto:[log in to unmask]] 
Sent: Saturday, August 29, 2015 4:11 PM
To: McCormick, Jeremy I.
Cc: hps-software
Subject: Re: run database

Hi Jeremy,

Sounds great!  If one is reading an LCIO file, what exactly should they do to retrieve that file's integrated beam charge from this database?

-Nathan



On Aug 28, 2015, at 8:47 PM, "McCormick, Jeremy I." <[log in to unmask]> wrote:

> Hi,
> 
> Just an update the status of the run database....
> 
> I rewrote a lot of the backend code this week and redesigned most of the data schema.  It has the capability now to store all scaler and EPICS information from a run via the crawler.  This should allow selecting scaler and EPICS data by run or timestamp ranges.
> 
> After updating the database at JLAB with the new schema, I launched a job to run the crawler on run 5772 at JLAB, and I will let you know when this is available to test.  Hopefully, it will finish okay by Monday.
> 
> --Jeremy
> 
> ######################################################################
> ##
> Use REPLY-ALL to reply to list
> 
> To unsubscribe from the HPS-SOFTWARE list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1