to compile:

rm -f main
c++ -I. -Wall `root-config --cflags --libs` -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

or

source 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)

