Breakup Reaction for Li7


/*************************************************************************************
**                                                                                  **
**                                Breakup Reaction:                                 **
**   g+A -> D33+(A-1) -> Delta0+eta+(A-1) -> pi0+N+eta+(A-1) -> 2g+N+2g+(A-1)       **
**             The scattering of a photon and a neutron inside 7Li                  **
**      (This macro demonstrates how the model PFermiMomentumGA can be used)        **
**                              *****************                                   **
**                                  Author:                                         **
**                  Lilian Witthauer and Manuel Dieterle                            **
**                                  Date:                                           **
**                                April 2009                                        **
**                             ******************                                   **
**                       (All energies and masses in GeV)                           **
**                                                                                  **
*************************************************************************************/

void Li7_breakup_macro(Int_t EventNumber=10000, Double_t StartEBeam = 1.5, Double_t iter=500./1000.) 
{
  char NameFile1[100];
  Double_t EBeamMax = 1.508;                 // Maximum MAMI beam energy
  Double_t EBeam    = StartEBeam;
  Int_t EBeamMeV    = EBeam*1000;
  Double_t DeltaEnergy;

  makeDistributionManager()->Exec("nucleus_fermi:gamma");
  
  Int_t i=0;

  while (EBeam <= EBeamMax)
  {
    // Define projectile (g), target (7Li), nucleus fragment (6Li)
    PParticle *GammaB  = new PParticle("g",EBeam);
    PParticle *Nucleus = new PParticle("7Li");
    PParticle *NucRest = new PParticle("6Li");
    
    // IS particle
    PParticle *s = new PParticle(*GammaB+*Nucleus);

    // Quasi-free sub-reaction:
    PParticle *GammaB2  = new PParticle("g");
    PParticle *QFtarget = new PParticle("n"); 
    PParticle *s2       = new PParticle(*GammaB2+*QFtarget);

    // Outgoing products of g-N scattering process:         
    PParticle *Delta   = new PParticle("D0");              
    PParticle *Eta     = new PParticle("eta");             
     
    PParticle *Pi0     = new PParticle("pi0");
    PParticle *Neutron = new PParticle("n");
     
    PParticle *GammaE1   = new PParticle("g");
    PParticle *GammaE2   = new PParticle("g");
    PParticle *GammaP1   = new PParticle("g");
    PParticle *GammaP2   = new PParticle("g");  

    // Define group of particles of each step
    PParticle *cc1[] = {s,NucRest,s2};
    PParticle *cc2[] = {s2,Delta,Eta};
    PParticle *cc3[] = {Delta,Pi0,Neutron};
    PParticle *cc4[] = {Pi0,GammaP1,GammaP2};
    PParticle *cc5[] = {Eta,GammaE1,GammaE2};

    // Allocate groups to decay channel
    PChannel *c1 = new PChannel(cc1,2);
    PChannel *c2 = new PChannel(cc2,2);
    PChannel *ccD0  = new PChannel(cc3,2);
    PChannel *ccPi0 = new PChannel(cc4,2);
    PChannel *ccEta = new PChannel(cc5,2);
    
    // Allocate channels
    PChannel *cc[] = {c1,c2,ccD0,ccPi0,ccEta};
 
    sprintf(NameFile1, "7Li_breakup_%i_MeV_in_GeV", EBeamMeV); //File name
    PReaction *Reac = new PReaction(cc,NameFile1,5,1,0,0,0);    // Define reaction
    
    cout << "******************************************" << endl;
    cout << "Beam Energy:" << EBeam << endl;
    cout << "******************************************" << endl; 

    Reac->Print();            // Write to .root file     
    Reac->loop(EventNumber);  //Number of events

    

    //Increase energy
    i++;
    DeltaEnergy=i*iter;
    EBeam = StartEBeam+DeltaEnergy;
    EBeamMeV = EBeam*1000;
  }
}
 plugin_Li7_breakup_macro.C:1
 plugin_Li7_breakup_macro.C:2
 plugin_Li7_breakup_macro.C:3
 plugin_Li7_breakup_macro.C:4
 plugin_Li7_breakup_macro.C:5
 plugin_Li7_breakup_macro.C:6
 plugin_Li7_breakup_macro.C:7
 plugin_Li7_breakup_macro.C:8
 plugin_Li7_breakup_macro.C:9
 plugin_Li7_breakup_macro.C:10
 plugin_Li7_breakup_macro.C:11
 plugin_Li7_breakup_macro.C:12
 plugin_Li7_breakup_macro.C:13
 plugin_Li7_breakup_macro.C:14
 plugin_Li7_breakup_macro.C:15
 plugin_Li7_breakup_macro.C:16
 plugin_Li7_breakup_macro.C:17
 plugin_Li7_breakup_macro.C:18
 plugin_Li7_breakup_macro.C:19
 plugin_Li7_breakup_macro.C:20
 plugin_Li7_breakup_macro.C:21
 plugin_Li7_breakup_macro.C:22
 plugin_Li7_breakup_macro.C:23
 plugin_Li7_breakup_macro.C:24
 plugin_Li7_breakup_macro.C:25
 plugin_Li7_breakup_macro.C:26
 plugin_Li7_breakup_macro.C:27
 plugin_Li7_breakup_macro.C:28
 plugin_Li7_breakup_macro.C:29
 plugin_Li7_breakup_macro.C:30
 plugin_Li7_breakup_macro.C:31
 plugin_Li7_breakup_macro.C:32
 plugin_Li7_breakup_macro.C:33
 plugin_Li7_breakup_macro.C:34
 plugin_Li7_breakup_macro.C:35
 plugin_Li7_breakup_macro.C:36
 plugin_Li7_breakup_macro.C:37
 plugin_Li7_breakup_macro.C:38
 plugin_Li7_breakup_macro.C:39
 plugin_Li7_breakup_macro.C:40
 plugin_Li7_breakup_macro.C:41
 plugin_Li7_breakup_macro.C:42
 plugin_Li7_breakup_macro.C:43
 plugin_Li7_breakup_macro.C:44
 plugin_Li7_breakup_macro.C:45
 plugin_Li7_breakup_macro.C:46
 plugin_Li7_breakup_macro.C:47
 plugin_Li7_breakup_macro.C:48
 plugin_Li7_breakup_macro.C:49
 plugin_Li7_breakup_macro.C:50
 plugin_Li7_breakup_macro.C:51
 plugin_Li7_breakup_macro.C:52
 plugin_Li7_breakup_macro.C:53
 plugin_Li7_breakup_macro.C:54
 plugin_Li7_breakup_macro.C:55
 plugin_Li7_breakup_macro.C:56
 plugin_Li7_breakup_macro.C:57
 plugin_Li7_breakup_macro.C:58
 plugin_Li7_breakup_macro.C:59
 plugin_Li7_breakup_macro.C:60
 plugin_Li7_breakup_macro.C:61
 plugin_Li7_breakup_macro.C:62
 plugin_Li7_breakup_macro.C:63
 plugin_Li7_breakup_macro.C:64
 plugin_Li7_breakup_macro.C:65
 plugin_Li7_breakup_macro.C:66
 plugin_Li7_breakup_macro.C:67
 plugin_Li7_breakup_macro.C:68
 plugin_Li7_breakup_macro.C:69
 plugin_Li7_breakup_macro.C:70
 plugin_Li7_breakup_macro.C:71
 plugin_Li7_breakup_macro.C:72
 plugin_Li7_breakup_macro.C:73
 plugin_Li7_breakup_macro.C:74
 plugin_Li7_breakup_macro.C:75
 plugin_Li7_breakup_macro.C:76
 plugin_Li7_breakup_macro.C:77
 plugin_Li7_breakup_macro.C:78
 plugin_Li7_breakup_macro.C:79
 plugin_Li7_breakup_macro.C:80
 plugin_Li7_breakup_macro.C:81
 plugin_Li7_breakup_macro.C:82
 plugin_Li7_breakup_macro.C:83
 plugin_Li7_breakup_macro.C:84
 plugin_Li7_breakup_macro.C:85
 plugin_Li7_breakup_macro.C:86
 plugin_Li7_breakup_macro.C:87
 plugin_Li7_breakup_macro.C:88
 plugin_Li7_breakup_macro.C:89
 plugin_Li7_breakup_macro.C:90
 plugin_Li7_breakup_macro.C:91
 plugin_Li7_breakup_macro.C:92
 plugin_Li7_breakup_macro.C:93