slicPandora/src
diff -u -r1.7 -r1.8
--- PfoProcessor.cpp 22 Mar 2010 21:50:58 -0000 1.7
+++ PfoProcessor.cpp 24 Mar 2010 19:01:37 -0000 1.8
@@ -1,4 +1,4 @@
-// $Id: PfoProcessor.cpp,v 1.7 2010/03/22 21:50:58 jeremy Exp $
+// $Id: PfoProcessor.cpp,v 1.8 2010/03/24 19:01:37 jeremy Exp $
#include "PfoProcessor.h"
// lcio
@@ -27,7 +27,7 @@
using std::endl;
// Uncomment for debugging output.
-//#define PFOPROCESSOR_DEBUG 1
+#define PFOPROCESSOR_DEBUG 1
PfoProcessor::PfoProcessor()
: EventProcessor("PfoProcessor")
@@ -38,6 +38,10 @@
void PfoProcessor::processEvent(EVENT::LCEvent* event)
{
+#ifdef PFOPROCESSOR_DEBUG
+ std::cout << "PfoProcessor::processEvent" << std::endl;
+#endif
+
// Make a container for the clusters.
LCCollectionVec* clusterVec = new LCCollectionVec(EVENT::LCIO::CLUSTER);
@@ -62,6 +66,8 @@
itPFO != itPFOEnd;
++itPFO)
{
+ std::cout << std::endl << "proc PFO: " << (int)(&(*itPFO)) << std::endl;
+
// Make the new ReconstructedParticle.
ReconstructedParticleImpl *pReconstructedParticle = new ReconstructedParticleImpl();
@@ -71,7 +77,9 @@
#endif
pandora::TrackAddressList trackAddressList = (*itPFO)->GetTrackAddressList();
+#ifdef PFOPROCESSOR_DEBUG
cout << "Pandora found <" << trackAddressList.size() << "> tracks associated with this PFO." << std::endl;
+#endif
// Iterate over the cluster list and make LCIO clusters.
for (pandora::ClusterAddressList::iterator itCluster = clusterAddressList.begin(), itClusterEnd = clusterAddressList.end();
@@ -118,7 +126,9 @@
itTrack != itTrackEnd;
++itTrack)
{
- //std::cout << "adding track to RP" << std::endl;
+#ifdef PFOPROCESSOR_DEBUG
+ std::cout << "adding track to RP" << std::endl;
+#endif
pReconstructedParticle->addTrack((Track*) (*itTrack));
}