to compile:

rm -f main
c++ -Wall -I. `root-config --cflags` -o main main.cc \
  AnalysisInfo.cc SourceFactory.cc EventSource.cc    \
  Event.cc EventReadFromFile.cc EventSim.cc          \
  AnalysisSteering.cc AnalysisFactory.cc             \
  ParticleStatistic.cc EventDump.cc MassHisto.cc     \
  PtStatistic.cc HHCandidate.cc JPsiKCandidate.cc    \
  Cartesian.cc Utilities.cc Constants.cc `root-config --libs`

or

compile

------------

to run:

main input particle_events.dat [dump] [stat] [hist h.root]
or
main sim 100 [seed 234]  [dump] [stat] [hist h.root]
(to simulate 100 events with random seed 234)

