|
ROOT Interface to Hijing
1.7Hijing Logo Introduction.This library supplies a TGenerator interface to HijingPlease refer to the Online manual and Postscript file avaliable at LBL for a fuller description of HIJING. Also, you need the (Fortran77) source code for the library libHijing.so, also avaliable from the above site.
Any comments, questins, etc. on HIJING it self should go to: Example of use: Int_t nEvents = 10; gRandom = new TRanMar; THijing* hijing = new THijing("hijing", "HIJING Simulation"); TClonesArray* particles = new TClonesArray("TParticle"); TFile* file = new TFile("hijing.root","RECREATE"); TTree* tree = new TTree("T","A Hijing Tree"); tree->Branch("particles",&particles); hijing->SetParameter("ihpr2",12,1); hijing->Initialize(200); Int_t i; for (i = 0; i < nEvents; i++) { cout << "Event # " << i << " ... " << flush; Int_t nPart = hijing->ImportParticles(particles); cout << "done (" << nPart << " particles) " << flush; tree->Fill(); } file->Write(); file->Close();
|