[ROOT] MC particles, TPythia6 ...cfortran.h

From: Pasha Murat (630)840-8237 FNAL (630)859-3463 home (murat@murat.fnal.gov)
Date: Fri Jan 26 2001 - 06:24:35 MET


Dear ROOTers,

I think it would be quite helpful if TParticle in addition to 2 indices of 
mothers and 2 indices of daughters would also "remember" its own index in 
the original list of MC particles produced by event generator. I know that 
it is not strictly necessary, however whenever one is trying (and one 
is always doing it) to save just a small subset of the original list of
particles, then in order to preserve a piece of original history each 
and every time he has to add this integer to TParticle in this or that way.

			Any possible showstoppers?

Few more observations:

- Pythia6 library in 3.0 doesn't compile - there seems to be a typo in TPythia6.h
  (#include "TMCParticle.h" is typed in instead of #include "TMCParticle6.h")
- after fixing this typo the library can't be loaded because of the unresolved
   references. 
- describing FORTRAN common-blocks in C++  using cfortan.h (like it is done 
  in eg/inc/Hepevt.h) is not the best idea. cfortan.h  declares an external C++ GLOBAL, 
  corresponding to a FORTRAN common-block. In order to resolve this reference that at 
  linking stage linker picks up an ARBITRARY (the first one found!) FORTRAN
  routine where this common block is described and links it in. In case
  this first routine calls some other FORTRAN routines, one gets completely
  unexplainable unresolved references resulting from a "cross-talk" between C++ 
  and FORTRAN.  This is very similar to parasitic signal pick-up in 
  electronics. 

  Couple of years ago we at CDF waisted quit a bit of time to learn this.

							best, Pasha



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:34 MET