Linear Collider Forum



Home » Software Tools » Marlin et al » marlin::message
Re: marlin::message [message #1775 is a reply to message #851] Wed, 01 July 2009 08:31 Go to previous message
gaede
Messages: 233
Registered: January 2004
Location: DESY, Hamburg
Hi,

there are already exceptions defined to skip further processing of the current events or to 'gracefully' stop the event processing entirely. The first will continue with processing the next event and the latter will call Processor::end() for all processors in order to clean up allocagted resource, eg. write histo files etc.

So in any processor you can do sth like:

 if( .. skip condition ...){
    streamlog_out( MESSAGE ) << " skiping event coz' ..." <<    endl;
    throw SkipEventException( this ) ;

 }


 if( ... error condition ...){

   streamlog_out( ERROR ) << " sth bad happened ..." << endl ;
   throw StopProcessingException( this ) ;
 }




Frank.
 
Read Message
Read Message
Read Message
Previous Topic:Command line arguments "to" MARLIN Steeringfiles
Next Topic:MarlinReco example
Goto Forum:
  


Current Time: Mon Oct 14 13:08:40 Pacific Daylight Time 2019
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software