// ---------------------------------------------------------------------------- // $Id: stdhep_GoGenMC.C,v 1.4 2001/05/11 21:52:56 toshi Exp $ // ---------------------------------------------------------------------------- // $Log: stdhep_GoGenMC.C,v $ // Revision 1.4 2001/05/11 21:52:56 toshi // Remove .so suffix from gSystem->Load("...") in order to call macros from // Windows system. // // Revision 1.3 2001/05/09 22:10:13 toshi // Add $Id: stdhep_GoGenMC.C,v 1.4 2001/05/11 21:52:56 toshi Exp $. // // Revision 1.2 2001/05/01 20:33:18 masako // Bug fix. // Correct typo miss. // // // Example file for event generation interactively with Root. // // In this file, 1) event generation (e+e- -> ZH) with pandora_pythia // 2) out put a stdhep file // // Apr. 26 2001 Toshi // // :: How to run :: // // 1) type root // 2) // root [0] .x stdhep_GoGenMC.C // // For example, if you like to generate 20 events, type like // root [0] .x stdhep_GoGenMC.C(20) //__________________________________________________________________________ Int_t stdhep_GoGenMC(Int_t nEvent=100){ gROOT->Reset(); // In order to refer to shareable libraries in this simple form, // include their paths in a .rootrc file. gSystem->Load("libPandora"); gSystem->Load("libPandoraProc"); gSystem->Load("libPythia6"); gSystem->Load("libEG"); gSystem->Load("libEGPythia6"); gSystem->Load("libTauola"); gSystem->Load("libPandPyth"); //gSystem->Load("libLCDEvent"); //gSystem->Load("libLCDRootAppsUtil"); //gSystem->Load("libLCDFastMC"); //gSystem->Load("libLCDPhUtil"); //gSystem->Load("libLCDGenUtil"); //------------ Out put file (stdhep) Char_t* outfile = "test.dat"; //------------< Setup Generator (Pandora-Pythia) >------------------------ cout<<"Start Generator Setup!"<------------------- gBenchmark->Start("gen_eetoZH"); PR->getevents();//Event Generation gBenchmark->Stop("gen_eetoZH"); gBenchmark->Print("gen_eetoZH"); PR.terminate(); }