lcio/examples/cpp/rootDict
diff -u -r1.1 -r1.2
--- README 21 Jan 2010 16:22:59 -0000 1.1
+++ README 22 Jan 2010 17:47:10 -0000 1.2
@@ -25,7 +25,7 @@
#----- set ROOT environment (5.26 or higher: ) :
- . ~/ilcsoft/root/5.26.00/bin/thisroot.sh
+ . __path_to_root__/root/5.26.00/bin/thisroot.sh
#---- configure cmake
@@ -57,7 +57,7 @@
writeTree.C:
- reads *.slcio file and writ the MCParticle collection to
+ reads *.slcio file and write the MCParticle collection to
a branch of type std::vector<IMPL::MCParticleImpl*>
in file lcioTree.root
lcio/examples/cpp/rootDict
diff -u -r1.1 -r1.2
--- treeDraw.C 21 Jan 2010 16:22:59 -0000 1.1
+++ treeDraw.C 22 Jan 2010 17:47:10 -0000 1.2
@@ -37,6 +37,8 @@
// simple drawing of scalar variable (using API !)
+//LCIO->Draw("MCParticlesSkimmed.getPDG()") ;
+
LCIO->Draw("MCParticlesSkimmed.getPDG()", isPhoton || isElectron ) ;
@@ -48,7 +50,11 @@
LCIO->Draw("MCParticlesSkimmed._endpoint[][0]:MCParticlesSkimmed._endpoint[][1]", sizeCut && isElectron ) ;
-// this syntax does not work !?? ....
+// this syntax does not work !!!!
+//
+// in order to access array like data,
+// you need to use the member variable names as shown above
+//
//LCIO->Draw("MCParticlesSkimmed.getEndpoint()[][0]:MCParticlesSkimmed.getEndpoint()[][1]", sizeCut) ;
//LCIO->Draw("MCParticlesSkimmed.getEndpoint()[0]:MCParticlesSkimmed.getEndpoint()[1]" ) ;