lcio/src/cpp/src/EXAMPLE
diff -u -r1.14 -r1.15
--- GNUmakefile 14 Dec 2007 17:47:32 -0000 1.14
+++ GNUmakefile 4 Jun 2008 17:29:08 -0000 1.15
@@ -78,11 +78,5 @@
$(BINDIR)/stdhepjob: stdhepjob.cc $(INSTALL)/liblcio.a
$(CXX) -o $(BINDIR)/stdhepjob $(CPPFLAGS) stdhepjob.cc $(LIBS)
-$(BINDIR)/testcopy: testcopy.cc $(INSTALL)/liblcio.a
- $(CXX) -o $(BINDIR)/testcopy $(CPPFLAGS) testcopy.cc $(LIBS)
-
-$(BINDIR)/testvtx: testvtx.cc $(INSTALL)/liblcio.a
- $(CXX) -o $(BINDIR)/testvtx $(CPPFLAGS) testvtx.cc $(LIBS)
-
$(BINDIR)/lcrtrelation: lcrtrelation.cc $(INSTALL)/liblcio.a
$(CXX) -o $(BINDIR)/lcrtrelation $(CPPFLAGS) lcrtrelation.cc $(LIBS)
lcio/src/cpp/src/EXAMPLE
diff -N testvtx.cc
--- testvtx.cc 21 Sep 2006 06:10:42 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,92 +0,0 @@
-#include "lcio.h"
-
-#include "EVENT/LCCollection.h"
-#include "EVENT/ReconstructedParticle.h"
-#include "EVENT/Vertex.h"
-#include "IMPL/LCCollectionVec.h"
-#include "IMPL/ReconstructedParticleImpl.h"
-#include "IMPL/VertexImpl.h"
-
-#include "LCIOSTLTypes.h"
-#include "UTIL/LCTOOLS.h"
-//#include "UTIL/IndexMap.h"
-#include "UTIL/Operators.h"
-
-using namespace std ;
-using namespace lcio ;
-using namespace UTIL ;
-
-
-////////////////////////////////////////////////////////////////////////////////
-// This file is temporary and ONLY for the purpose of testing the Vertex Class!!
-////////////////////////////////////////////////////////////////////////////////
-
-int main(int argc, char** argv ){
-
- LCCollectionVec* vertexVec = new LCCollectionVec( LCIO::VERTEX ) ;
-
- //gives a warnig...
- //cout<<header(&VertexImpl());
-
- //EXP: INDEX MAP - UNDER DEVELOPMENT
- //IndexMap imVtx(vertexVec, "AlgorithmNames", "AlgorithmTypes");
-
- for(int i=0; i < 10; i++){
-
- VertexImpl* vtx = new VertexImpl ;
-
- if( i==0 ){ vtx->setPrimary(true); }
- else{ vtx->setPrimary(false); }
-
- vtx->setChi2(1+i*.01);
- vtx->setProbability(0.0032+i*.01);
- vtx->setPosition(0.3453+i*.01,.45345354+i*.01,2.345354+i*.01);
-
- FloatVec cov(6) ;
- cov[0] = 1. ;
- cov[1] = 2. ;
- cov[2] = 3. ;
- cov[3] = 4. ;
- cov[4] = 5. ;
- cov[5] = 6. ;
-
- vtx->setCovMatrix( cov ) ;
-
- /*
- //EXP: INDEX MAP - UNDER DEVELOPMENT
-
- switch(i){
- case 0: vtx->setAlgorithmType( imVtx.encode( "ZvTop" ) ); break;
- case 1: vtx->setAlgorithmType( imVtx.encode( "ZvKin" ) ); break;
- case 5: vtx->setAlgorithmType( imVtx.encode( "SimAnnealing" ) ); break;
- default: vtx->setAlgorithmType( imVtx.encode( "SthElse" ) );
- }
- */
-
- vtx->addParameter(.01);
- vtx->addParameter(.02);
- vtx->addParameter(.03);
-
-
- //Vertex* v=vtx;
- //cout<<lcshort(v);
-
- vertexVec->addElement ( vtx ) ;
-
- }
-
- //gives a warnig...
- //cout<<tail(&VertexImpl());
-
- //gives a warnig...
- //cout<<&IMPL::VertexImpl()<<endl;
-
- cout << dynamic_cast<Vertex*>(vertexVec->getElementAt(0)) << endl;
-
- LCTOOLS::printVertices( vertexVec ) ;
-
- delete vertexVec ;
-
- return 0 ;
-}
-