Linear Collider Forum



Home » Software Tools » org.lcsim » Cluster analysis
Cluster analysis [message #1475] Wed, 21 May 2008 12:58 Go to previous message
bjasper
Messages: 33
Registered: March 2007
Location: University of Regina
I'm running the PFA written by Steve Magill and I'm having some trouble getting information about the clusters. I want to be able to get the cluster's position, theta, phi and energy. My problem is that for ~40% of the events I'm having clusters returning "NaN" for their position and 0.0 for their energy. Has anybody else had this problem? Are these clusters not real, rather just some sort of artifact of the code?

After the PFA runs, I use the following code to get the cluster info:

.
.
.
List<List<BasicCluster>> clusterSets = event.get(BasicCluster.class);
.
.
.
for (List<BasicCluster> clusters : clusterSets){
        String name = event.getMetaData(clusters).getName();
	if(name=="TrackCALClusters"||name=="PhotonClusters"||name=="NeutralHadronClusters"){
	  for (BasicCluster cluster : clusters){
	    double[] clPos = cluster.getPosition();\
	    e = cluster.getEnergy();
	    Theta = cluster.getITheta();
	    Phi = cluster.getIPhi();
	  }

	}
}
.
.
.
 
Read Message
Read Message
Previous Topic:GeomConverter - Installing and Running
Next Topic:LCRelation
Goto Forum:
  


Current Time: Thu Apr 26 23:33:49 Pacific Daylight Time 2018
.:: Contact :: Home ::.

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