//////////////////////////////////////////////////////////////// // ---- Interface to start Multfrag code -------- // // ---- Author : Alicia Sanchez ------- // // // //////////////////////////////////////////////////////////////// #include #include "TClonesArray.h" #include "TFile.h" #include "TLorentzVector.h" #include "TTree.h" #include "TRandom.h" #include "TVector3.h" #include "TParticle.h" #include using namespace std; #include "cfortran.h" extern "C" { extern struct { int n, AG[1000], ZG[1000], HG[1000]; float PXs[1000], PYs[1000], PZs[1000], EP[1000],GM[1000] ; } frag_; } extern "C" void initia_(double* she,int*an, int*zn, int*hn);//install DPM extern "C" void razhyp_gen__(double* shell ); //to generate events int main() { float Plab, Elastic; // Plab momentum in Lab.Sys. double shell,she; int ntot, Ieven, npart, i;//,A[1000],Z[1000],H[1000]; //float Px[1000],Py[1000],Pz[1000],E[1000],M[1000],Wh[1000]; //int Id[1000]; int an,zn,hn; std::vector fPx; std::vector fPy; std::vector fPz; //Double fPhx[1000],fPhy[1000],fPhz[1000]; std::vector fMass; std::vectorfEx; std::vectorfPid; std::vector A; std::vectorZ; std::vectorH; //const Char_t* fFileName; char* fFileName; /* TFile f1("Background-micro.root","RECREATE","ROOT_Tree"); float Generator=0.; Double_t weight = 1.0; Int_t activeCnt=0; TTree* fTree = new TTree("data","DPM Background"); TClonesArray* fEvt; fEvt=new TClonesArray("TParticle",100); fTree->Branch("Npart",&activeCnt,"Npart/I"); fTree->Branch("Weigth",&weight,"Weight/D"); fTree->Branch("Seed",&seed,"Weight/D"); fTree->Branch("Particles",&fEvt, 32000,99);*/ she= 3.; //an=13; //zn=5; //hn=2; std::cout << " Enter N_Events "; std::cin >> ntot; std::cout << " Enter target name "; std::cin >> fFileName; if(strcmp(fFileName,"12C")==0){ std::cout<<" 12C + Xi- --> 13BLL "< 14BLL "< 11BeLL "< 12BeLL "< 10LiLL "<Fill(); //! } //return 0; //f1.Write(); }