GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » [SOLVED] Event filter after simulation phase
Re: Event filter after simulation phase [message #24824 is a reply to message #24814] Thu, 23 April 2020 16:02 Go to previous messageGo to previous message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi,

please find attached an example task which does the work for you. As pointed out already by Mohammad the write during the simulation is steered by the FairMCApplication. In FairMCApplication ther is the function SetSaveCurrentEvent(Bool_t) which can be used to suppress the output of one event to file. The default is to write the event to file and this is reestablished after each event. So if you want to suppress the output you need a task which runs within the simulation which calls the function with kFALSE as parameter.

Ciao

Florian
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Add two similar files as friends in the simulation
Next Topic: Remove hits from removed tracks
Goto Forum:
  


Current Time: Sat Apr 20 12:13:11 CEST 2024

Total time taken to generate the page: 0.00926 seconds