LISTSERV mailing list manager LISTSERV 16.5

Help for HPS-SOFTWARE Archives


HPS-SOFTWARE Archives

HPS-SOFTWARE Archives


HPS-SOFTWARE@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

HPS-SOFTWARE Home

HPS-SOFTWARE Home

HPS-SOFTWARE  December 2014

HPS-SOFTWARE December 2014

Subject:

Re: ECAL calibrations

From:

"McCormick, Jeremy I." <[log in to unmask]>

Reply-To:

Software for the Heavy Photon Search Experiment <[log in to unmask]>

Date:

Fri, 12 Dec 2014 19:23:30 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (211 lines)

Hi, Nathan.

> Ok, it seems to work now (but spits out lots of info about svt, severe error ...)

Good to hear it is working.  The SVT errors can be safely ignored and are being trapped by the conditions manager.

> Also we need a command line way to print the table currently used for a given run number.  E.g. "give me the gains for run 2001".

This exists already....

CommandLineTool print -t ecal_gains -r 2000

etc.

Check "print -h" for the exact syntax.

> Looks like I accidentally "added" the gains 3 times instead of once yesterday, due to all the "errors" reported.  Maybe you want to delete the first two.

That's not a big deal.  Can you try deleting these yourself from the mysql client?  I would like to double check that hpscalibrations has permissions to do this.  (It is supposed to have the delete grant.)

It would just be a simple SQL command from the terminal like...

mysql> delete from ecal_gains where collection_id = 123;

You just need to put in the collection ID there that you want to delete.

Today I'm going to look at extracting run number from the EVIO events in the new data you put out there so the monitoring app can initialize conditions properly without needing a user run number....

--Jeremy

-----Original Message-----
From: Nathan Baltzell [mailto:[log in to unmask]] 
Sent: Friday, December 12, 2014 10:47 AM
To: McCormick, Jeremy I.
Subject: Re: ECAL calibrations

I checked, and the peds and gains in the db look as I expect.
-nathan


On Dec 12, 2014, at 9:15 AM, Nathan Baltzell <[log in to unmask]> wrote:

> Ok, it seems to work now (but spits out lots of info about svt, severe 
> error ...)
> 
> You should find now gains (collection_id=3) and pedestals 
> (collection_id=4) in the db, but I'm about to run a full test, 
> downloading them crosscheck that they are what I expect before announcing on the mailing list.
> 
> Looks like I accidentally "added" the gains 3 times instead of once 
> yesterday, due to all the "errors" reported.  Maybe you want to delete the first two.
> 
> Also we need a command line way to print the table currently used for 
> a given run number.  E.g. "give me the gains for run 2001".
> 
> -nathan
> 
> 
> 
> 
> On Dec 11, 2014, at 5:52 PM, "McCormick, Jeremy I." <[log in to unmask]> wrote:
> 
>> Hi,
>> 
>> Okay, there was yet another bug.  (Conditions system wasn't 
>> initialized properly.)
>> 
>> But this should work now on trunk...
>> 
>> java -cp hps-distribution-3.1-SNAPSHOT-bin.jar 
>> org.hps.conditions.cli.CommandLineTool  -p connection.properties -v 
>> load -t ecal_calibrations -f ecal_calibrations.txt
>> 
>> Just pull it again from Nexus once the build is done.
>> 
>> Sorry, I need to test this better after I change things....
>> 
>> -Jeremy
>> 
>> On Dec 11, 2014, at 2:29 PM, Nathan Baltzell <[log in to unmask]> wrote:
>> 
>>> java -cp hps-distribution-3.1-20141211.202153-123-bin.jar 
>>> org.hps.conditions.cli.CommandLineTool -p 
>>> hpscalibrations_jlab.properties load -t ecal_calibrations -f 
>>> ped4db.txt
>>> 
>>> http://www.jlab.org/~baltzell/HPS/ped4db.txt
>>> 
>>> (null pointer at line 483 in DatabaseConditionsManager.java)
>>> 
>>> -nathan
>>> 
>>> 
>>> On Dec 11, 2014, at 5:19 PM, "McCormick, Jeremy I." <[log in to unmask]> wrote:
>>> 
>>>> Oh and I meant to say please attach the ped.txt file in your reply as well...
>>>> 
>>>>> On Dec 11, 2014, at 2:18 PM, McCormick, Jeremy I. <[log in to unmask]> wrote:
>>>>> 
>>>>> Can you send again the exact command you're using and attach the file you're trying to load?  I'll test it on my local dev db...
>>>>> 
>>>>>> On Dec 11, 2014, at 2:08 PM, Nathan Baltzell <[log in to unmask]> wrote:
>>>>>> 
>>>>>> Jeremy,
>>>>>> 
>>>>>> Ok, the "add" of gains worked now.
>>>>>> 
>>>>>> But now using latest snapshot (20141211.202153-123) to "load" the 
>>>>>> pedestals I get an error similar to the one yesterday:
>>>>>> 
>>>>>> DatabaseConditionsManager.findTableMetaData(DatabaseCondisiontMan
>>>>>> ager.java:483)
>>>>>> 
>>>>>> Something wrong with these options:?
>>>>>> load -t ecal_calibrations -f ped4db.txt
>>>>>> 
>>>>>> -Nathan
>>>>>> 
>>>>>> 
>>>>>>> On Dec 11, 2014, at 3:10 PM, "McCormick, Jeremy I." <[log in to unmask]> wrote:
>>>>>>> 
>>>>>>> Hi again, Nathan.
>>>>>>> 
>>>>>>> Okay, this should work fine now.  I tested on my local dev database to make sure.
>>>>>>> 
>>>>>>> Executed this command similar to yours...
>>>>>>> 
>>>>>>> java -cp ~/.m2/repository/org/hps/hps-distribution/3.1-SNAPSHOT/hps-distribution-3.1-SNAPSHOT-bin.jar org.hps.conditions.cli.CommandLineTool -v -p ../hps-java-sandbox/conditions_dev.prop add -t ecal_gains -k ecal_gains -c 3 -r 2000 -e 9999 -u baltzell -m 'CosmicGains'
>>>>>>> 
>>>>>>> You should see something like this in the log which indicates it succeeded...
>>>>>>> 
>>>>>>> Thu Dec 11 12:05:01 PST 2014 :: DatabaseConditionsManager :: 
>>>>>>> FINE :: INSERT INTO conditions ( run_start, run_end, table_name, 
>>>>>>> name, collection_id, created_by, notes, created ) VALUES ( 
>>>>>>> '2000', '9999', 'ecal_gains', 'ecal_gains', '3', 'baltzell', 
>>>>>>> 'CosmicGains', STR_TO_DATE( '2014-12-11 12:05:01', '%Y-%m-%d 
>>>>>>> %H:%i:%S' ))
>>>>>>> 
>>>>>>> You will want to 'svn up' and build trunk and then use hps-distribution from there.
>>>>>>> 
>>>>>>> Or you can wait for this build to finish...
>>>>>>> 
>>>>>>> http://srs.slac.stanford.edu/hudson/view/HPS/job/hps-modules/835
>>>>>>> /
>>>>>>> 
>>>>>>> And then download the 3.1-SNAPSHOT bin jar from Nexus.
>>>>>>> 
>>>>>>> -Jeremy
>>>>>>> 
>>>>>>>> On Dec 11, 2014, at 11:15 AM, McCormick, Jeremy I. <[log in to unmask]> wrote:
>>>>>>>> 
>>>>>>>> That shouldn't be a fatal error, as it is being trapped in the 
>>>>>>>> manager.  It just means SVT conditions aren't in the db yet...
>>>>>>>> 
>>>>>>>>> On Dec 11, 2014, at 11:08 AM, Nathan Baltzell <[log in to unmask]> wrote:
>>>>>>>>> 
>>>>>>>>> I just now used the latest jar from nexus, and now it complains about "svt_channels"
>>>>>>>>> when trying to "add" a table for "ecal_gains".  This is using 
>>>>>>>>> the same command as yesterday.
>>>>>>>>> -Nathan
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> On Dec 11, 2014, at 1:28 PM, "McCormick, Jeremy I." <[log in to unmask]> wrote:
>>>>>>>>>> 
>>>>>>>>>> Hi, Nathan.
>>>>>>>>>> 
>>>>>>>>>> I know we discussed before that the currently used calibrations (pedestal + noise) in the JLAB database are wrong for about half the crystals due to some kind of mix up with the channel ID convention that was used.  I think we should fix this ASAP so that the calibrations are reasonable.  The existing conditions collection should just be deleted, too, as it isn't usable.
>>>>>>>>>> 
>>>>>>>>>> I have an LCSim Driver that generates a pedestal + noise 
>>>>>>>>>> conditions set from data.  It is relatively simple right now 
>>>>>>>>>> and just uses the mean and sigma distribution of all ADC 
>>>>>>>>>> values from a histogram.  But it could be made more 
>>>>>>>>>> sophisticated by, for instance, selecting only ADC values 
>>>>>>>>>> from background "hits".  Could we start working from this 
>>>>>>>>>> Driver to generate these calibrations?  If we need to improve 
>>>>>>>>>> it then we should do it.  It is already in SVN.  (mentioned 
>>>>>>>>>> in my talk today)
>>>>>>>>>> 
>>>>>>>>>> Also, are the pedestals sufficiently stable that we could use one calibration for all the runs thus far?  I have calibrated just a few runs with this Driver, and I don't have much idea if there is any pedestal drift (none that I have seen), or at least enough for us to want to store this information by individual run.  I know you stated that there is no significant amount of pedestal drift.  Has this been shown definitively in any analysis/plots e.g. for the cosmic runs?
>>>>>>>>>> 
>>>>>>>>>> I currently have all data files for runs 2823, 2825 and 2826 copied to SLAC where I can do analysis on them.  Do you want me to generate the pedestal calibrations for these runs and send them to you as text files so you can verify and then load yourself  OR I just can directly load them into the JLAB database myself if you're too busy with ECAL operations.  Probably if I did this I would just assign the collections to the individual run numbers and not a range.
>>>>>>>>>> 
>>>>>>>>>> Anyways, let me know what you think is best...
>>>>>>>>>> 
>>>>>>>>>> -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-SOFTWA
>>>>>>>> RE&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
>>> 
>> 
> 

########################################################################
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

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
June 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use