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  January 2015

HPS-SOFTWARE January 2015

Subject:

Re: example XML

From:

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

Reply-To:

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

Date:

Wed, 14 Jan 2015 01:36:46 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (193 lines)

I didn't realize it was a nested bank.  I think I can find this now.  Thanks!
________________________________________
From: [log in to unmask] <[log in to unmask]> on behalf of Nathan Baltzell <[log in to unmask]>
Sent: Tuesday, January 13, 2015 5:23 PM
To: McCormick, Jeremy I.
Cc: Sergey Boyarinov; hps-software
Subject: Re: example XML

Here's an example of what evio2xml gives for hps_003446.evio.10, note the
57615 bank and the correct run number (0xd76).


<!-- ===================== Buffer 72 contains 217 words (868 bytes) ===================== -->

<event format="evio" count="72" content="bank" data_type="0x10" tag="1" padding="0" num="204" length="217" ndata="215">
   <bank content="uint32" data_type="0x1" tag="49152" padding="0" num="0" length="5" ndata="3">
                0x50            0x1              0
   </bank>
   <bank content="bank" data_type="0xe" tag="46" padding="0" num="80" length="26" ndata="24">
      <uint32 data_type="0x1" tag="57610" padding="0" num="39" length="6" ndata="4">
              0x2010003           0x50     0x94b033eb              0
      </uint32>
      <uint32 data_type="0x1" tag="57612" padding="0" num="39" length="11" ndata="9">
             0x92800050     0x98b033e8           0x94     0xa18450ee            0x6
             0xa106cf75           0x11     0xa19174b9           0x11
      </uint32>
      <uint32 data_type="0x1" tag="57615" padding="0" num="0" length="7" ndata="5">
                      0          0xd76           0x50     0x54957a44            0x1
      </uint32>



And I also just now tried to just find the existence of this bank in the same EVIO file
using hps-java by modifying LCSimTestRunEventBuilder.getEventData, and
found it.  Here's a code snippet:


    protected EventHeader getEventData(EvioEvent evioEvent) {
        int[] eventID = null;
        //array of length 3: {event number, trigger code, readout status}

        List<TriggerData> triggerList = getTriggerData(evioEvent);

        if (evioEvent.getChildCount() > 0) {
            for (BaseStructure bank : evioEvent.getChildren()) {
                if (bank.getHeader().getTag() == EvioEventConstants.EVENTID_BANK_TAG) {
                    eventID = bank.getIntData();
                }
                System.out.println("-----NABO   "+bank.getHeader().getTag());
                if (bank.getChildren()!=null)
                {
                    for (BaseStructure bank2 : bank.getChildren()) {
                        System.out.println(bank2.getHeader().getTag());
                        if (bank2.getHeader().getTag()==57615)
                        {
                            System.out.println("asdfjkl;asdfjkl;asdfjklasdfjkl;asdfjlk;asdflkjasdfl;kajsf");
                        }


And a corresponding printout snippet:
-----NABO   46
57610
57612
57615
asdfjkl;asdfjkl;asdfjklasdfjkl;asdfjlk;asdflkjasdfl;kajsf
-----NABO   37
57610
57602


So this bank definitely exists.   Probably your issue is it is a nested bank.

-Nathan






On Jan 13, 2015, at 6:48 PM, "McCormick, Jeremy I." <[log in to unmask]> wrote:

> Okay, then maybe I’m doing something wrong.
>
> Basically I try to get the head bank as follows….
>
>     public static BaseStructure getHeadBank(EvioEvent evioEvent) {
>         for (BaseStructure bank : evioEvent.getChildren()) {
>             if (bank.getHeader().getTag() == EvioEventConstants.HEAD_BANK_TAG) {
>                 return bank;
>             }
>         }
>         return null;
>     }
>
> where
>
> HEAD_BANK_TAG = 0xe10F;
>
> and evioEvent is a physics event.
>
> I don’t seem to see any of these banks.
>
> How do you access this information?
>
> On Jan 13, 2015, at 3:04 PM, Nathan Baltzell <[log in to unmask]> wrote:
>
>> Hi Jeremy,
>>
>> I checked out a few, and every one I’ve looked at has this head bank, including run 3446,
>> within 40 events of the beginning of the file.  Can you check again?
>>
>> Yes, of course we must have run number in every event.  And it was, until something happened
>> and we just now noticed.  I’m sure Sergey can fix it for next run ….
>>
>> -Nathan
>>
>>
>>
>> On Jan 13, 2015, at 14:56, McCormick, Jeremy I. <[log in to unmask]> wrote:
>>
>>> Okay, I’m looking at various files now.  Run 3446 doesn’t have any of these records in the first ~100 events.  So are the head banks not present at all in non-blocking mode?  (Seems to be the case from what I’m seeing.)
>>>
>>> I’m going to take a look at some of the other files from runs you marked as “blocking” in your run list to see if I can pick out the run banks from them.
>>>
>>> In the future, could this information be put into every physics event?
>>>
>>> Basically, what I’m trying to do here is automatically setup run-based conditions when no pre start event is received as the first event in processing.  If the job does not start with the “.evio.0” file then the user has to provide a run number via the command line or the ConditionsDriver, or the job dies.  I think this is pretty clunky and prone to error (in fact it would be preferable if this is completely hidden from end users), so I would prefer if this could be done automatically on an event by event basis if necessary.
>>>
>>> This would also be very useful for the monitoring application if you connect to a run and do not catch a pre start event.  Similarly, if the pre start event is not processed, then the run number has to be provided manually via the GUI.
>>>
>>> Or does adding this to every event add too much overhead?  (I guess it is basically 5 extra int values plus the header block information and tag, etc.)
>>>
>>> On Jan 13, 2015, at 7:27 AM, Nathan Baltzell <[log in to unmask]> wrote:
>>>
>>>> Jeremy,
>>>>
>>>> Turns out for data taken in blocking mode for the commissioning run, this 57615 bank is only
>>>> present every 40 events (block).
>>>>
>>>> -Nathan
>>>>
>>>>
>>>> On Jan 12, 2015, at 14:48, McCormick, Jeremy I. <[log in to unmask]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> More on run numbers in the physics events….
>>>>>
>>>>> I dumped the first event of run 3446.  (See attached.)
>>>>>
>>>>> I’m not seeing a bank with tag ‘0xe10F’ or its decimal equivalent.
>>>>>
>>>>> So I’m not sure this is correct….
>>>>>
>>>>> "We have now head bank (tag=0xe10F)”
>>>>>
>>>>> I do see some banks with 5 ints but they don’t make sense according to the previously described scheme…
>>>>>
>>>>> "word 0 = 0 (version number, zero so far)
>>>>> word 1 = run number
>>>>> word 2 = event number
>>>>> word 3 = event unix time
>>>>> word 4 = event type (=1 for now)”
>>>>>
>>>>> Can you please confirm for me whether this information is actually present in the ECAL Eng Run data.
>>>>>
>>>>> If so can you tell me how to access it?
>>>>>
>>>>> It is possible my code is not right, but the XML kind of suggests to me that the previously described bank is not there in the expected form.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> —Jeremy
>>>>>
>>>>>
>>>>> <example_event.xml>
>>>>
>>>
>>
>

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