Linear Collider Forum



Home » Analysis and Reconstruction » Reconstruction » Why org.lcsim.util.lcio.SIOSimCalorimeterHit is not public?!
Why org.lcsim.util.lcio.SIOSimCalorimeterHit is not public?! [message #231] Fri, 22 April 2005 15:13 Go to next message
lima
Messages: 47
Registered: May 2004
Location: DeKalb, IL, USA
Hi,

I am porting DigiSim to org.lcsim framework.

I was trying to create some RawCalHits from SimCalHits. There was no RawCalHit interface or SIORawCalHit class defined, so I created those myself, by starting from SimCalHit interface and SIOSimCalHit class. So far so good, I could compile and build a .jar file.

Next I tried to create some raw hits, and then I found that I cannot do this:

import org.lcsim.util.lcio.SIOSimCalorimeterHit;
import org.lcsim.util.lcio.SIORawCalorimeterHit;

because the compilation gives me:

-------------------------
DigiSimProcessor.java:24: org.lcsim.util.lcio.SIOSimCalorimeterHit is not public in org.lcsim.util.lcio; cannot be accessed from outside package
import org.lcsim.util.lcio.SIOSimCalorimeterHit;
^
DigiSimProcessor.java:25: org.lcsim.util.lcio.SIORawCalorimeterHit is not public in org.lcsim.util.lcio; cannot be accessed from outside package
import org.lcsim.util.lcio.SIORawCalorimeterHit;
^
-------------------------------------------------

Am I not supposed to use these implementation classes directly?

I also could not yet find some example code writing SimCalorimeterHits within org.lcsim framework. I would like to have such example I could study and see how to do this.

Any help would be much appreciated!!

Thanks in advance,
Guilherme
Re: Why org.lcsim.util.lcio.SIOSimCalorimeterHit is not public?! [message #232 is a reply to message #231] Mon, 25 April 2005 09:18 Go to previous messageGo to next message
tonyj
Messages: 138
Registered: January 2004

Hi Guillerme, the SIO* classes are deliberately not public, they are only intended for reading SIO files.

To create an instance of RawCalorimeterHit from your analysis you need to create a class which implements RawCalorimeterHit yourself. For other classes we have done this already, but I think you are the first to create a RawCalorimeterHit. I can send you an example of how to do it if you like.

Tony
Re: Why org.lcsim.util.lcio.SIOSimCalorimeterHit is not public?! [message #233 is a reply to message #232] Mon, 25 April 2005 09:23 Go to previous message
lima
Messages: 47
Registered: May 2004
Location: DeKalb, IL, USA
Hi Tony,

Ok, so I have to create a class implementing RawCalorimeterHit. I would like to have some example. Also, if you have a suggestion where to put such implementation class, please let me know.

Thanks,
Gui
Previous Topic:Problems using LCDG4 data with org.lcsim
Next Topic:One block handler per RawCalHit class implementation?
Goto Forum:
  

[ PDF ]

Current Time: Sat Feb 22 23:33:50 Pacific Standard Time 2020
.:: Contact :: Home ::.

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