Linear Collider Forum



Home » Software Tools » org.lcsim » Jet Analysis Driver with LCIO Output Driver
Jet Analysis Driver with LCIO Output Driver [message #1802] Fri, 17 July 2009 01:34 Go to next message
twhite
Messages: 2
Registered: July 2009
Hi,

I am able to add both these drivers to the constructor and have them run during each event by calling

super.process;

However I want to be able to output only selected events, which was possible before I added the Jet Analysis driver but now seems impossible as I want to run the Jet Analysis driver in every event.

I have tried adding and removing the drivers during each event to selectively and individually run the each driver but this has so far just caused the program to freeze when I run it.

i.e.

super.add(output);
super.remove(j);
super.process;
super.remove(output);
super.add(j);

where 'output' and 'j' have been defined as the drivers with the correct settings, both of which work fine if added in the constructor and simply called in the event.

I am pretty new to this so was wondering if I'm missing anything?

Is there another way to output to an LCIO file?

Thanks

Tom
Re: Jet Analysis Driver with LCIO Output Driver [message #1803 is a reply to message #1802] Fri, 17 July 2009 02:48 Go to previous message
twhite
Messages: 2
Registered: July 2009
I have managed to solve the problem by outputting to the LCIO file without using the driver.

In the constructor

try{
File output = new File(System.getProperty("user.home"), "output.slcio");
writer = new LCIOWriter(output);
}
catch(IOException x)
{
throw new RuntimeException""Error writing LCIO file", x)
}

Then in the event

try{
writer.write(event);
}
catch(IOException x)
{
throw new RuntimeException""Error writing LCIO file", x)
}
Previous Topic:maven plugin for netbeans
Next Topic:Can't create lcsim driver class via xml in batch; runs ok in JAS3
Goto Forum:
  

[ PDF ]

Current Time: Mon Sep 16 01:08:54 Pacific Daylight Time 2019
.:: Contact :: Home ::.

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