sherpa is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (/hepforge/svn/sherpa does not appear to be a Subversion repository.). Look in the Trac log for more information.
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#80 closed enhancement (fixed)

Event filter/selector on hadron level

Reported by: Frank Siegert Owned by: Frank Siegert
Priority: minor Milestone:
Component: Unknown Version: 0.trunk
Keywords: Cc:

Description

Currently one can only cut events on the ME level and typically all hadron level cuts are applied in the analysis. Recently we have had a few cases where users thought it would be useful to apply selectors on the hadron level e.g. to reduce the size of files written out or to send only relevant events through full-sim.

This should be relatively simple with some kind of combination of the Analysis module with its Triggers and the output modules.

Attachments (1)

event-selector.patch (4.3 KB) - added by Frank Siegert 14 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 14 years ago by Frank Siegert

Resolution: fixed
Status: newclosed

Implemented in r15493 and attached here as a patch for version 1.2.2:

  cd SHERPA-MC-1.2.2
  patch -p0 < event-selector.patch
  make install

It implements a pseudo-observable in the internal analysis module, which writes out events if the specified InList is not empty. This can be achieved using arbitrary combinations of analysis triggers. The event format can be specified exactly like the global event output. An example which will only write out events if the final state contains an electron:

(analysis){
  BEGIN_ANALYSIS {

  LEVEL Hadron;

  Trigger {
    InList   FinalState;
    OutList  Triggered;
    Counts   11    1  -1;
  }

  Event_Output {
    InList Triggered
    HEPMC2_GENEVENT_OUTPUT testfile
    FILE_SIZE 100
    EVT_FILE_PATH triggeredevents
  }
}(analysis)

As demonstrated, the Event_Output observable takes as arguments the name of the trigger list and additionally allows for all event output parameters as documented in the manual.

This should be used in an analysis with LEVEL Hadron only.

Changed 14 years ago by Frank Siegert

Attachment: event-selector.patch added

comment:2 Changed 13 years ago by Frank Siegert

Milestone: rel-old

comment:3 Changed 11 years ago by Stefan Hoeche

Milestone: old

Milestone old deleted

Modify Ticket

Change Properties
Action
as closed The owner will remain Frank Siegert.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.