Linear Collider Forum



Home » General » General Questions » IDDecoder
Re: IDDecoder [message #1797 is a reply to message #1796] Mon, 13 July 2009 07:00 Go to previous messageGo to previous message
bweinert
Messages: 16
Registered: September 2008
Location: University of Rochester
I still get a single number for the getPosition() method. Here is the bit of code I use:
List<CalorimeterHit> hits1 = null;
try {
hits1 = event.get( CalorimeterHit.class, ecalHitmapName);
}
// catch(DataNotAvailableException e) {
catch(Exception e) {
// System.out.println(" Evt "+_event.getEventNumber()
// +": No data in collection "+colName);
// This happens quite frequently with tail catcher,
// when no energy leaks into it
}
// return if no collection in event
if(hits1==null) return;

for( int j = 0; j<hits1.size(); ++j ) {
CalorimeterHit jhit = hits1.get(j);
System.out.println ("EM Hit Position: " + jhit.getPosition());


Here is an example of the output: E Cal Position : 68.25.
Is there anything wrong with the code?

-Ben
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Class not found
Next Topic:location of SiD02 data files
Goto Forum:
  


Current Time: Sat Apr 21 22:01:33 Pacific Daylight Time 2018
.:: Contact :: Home ::.

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