]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/Config.C
oops
[u/mrichter/AliRoot.git] / MUON / Config.C
index da3427c512ad8e7f693a0876f8714a8fef40cbde..e5d819b7423e074cea60b5ac4717f7081abcadc0 100644 (file)
@@ -6,19 +6,22 @@ Int_t ntracks=1;
 void Config()
 
 {
-new AliGeant3("C++ Interface to Geant3");
+ gSystem->Load("libgeant321");
+ new     TGeant3("C++ Interface to Geant3");
+
 
 //=======================================================================
 //  Create the output file
    
  TFile *rootfile = new TFile("galice.root","recreate");
  rootfile->SetCompressionLevel(2);
- TGeant3 *geant3 = (TGeant3*)gMC;
  AliDecayer* decayer = new AliDecayerPythia();
  decayer->SetForceDecay(kAll);
  decayer->Init();
  gMC->SetExternalDecayer(decayer);
 
+ TGeant3 *geant3 = (TGeant3*)gMC;
 //=======================================================================
 // ******* GEANT STEERING parameters FOR ALICE SIMULATION *******
 geant3->SetTRIG(1);          //Number of events to be processed 
@@ -160,9 +163,8 @@ AliGenPythia *gener = new AliGenPythia(ntracks);
      gener->SetPtRange(0,100);
      //gener->SetOrigin(0,0,0);          // vertex position
      //gener->SetVertexSmear(kPerEvent);
-     //gener->SetSigma(0,0,5.6);         // Sigma in (X,Y,Z) (cm) on IP
-position
-     gener->SetStrucFunc(kDO_Set_1);
+     //gener->SetSigma(0,0,5.6);         // Sigma in (X,Y,Z) (cm) on IP position
+     gener->SetStrucFunc(kDOSet1);
      gener->SetProcess(kPyCharm);
      gener->SetEnergyCMS(5500.);
      break;              
@@ -190,6 +192,7 @@ position
 //*******************************************************
      AliGenParam *gener = new AliGenParam(ntracks, AliGenMUONlib::kUpsilon);
      gener->SetMomentumRange(0,999);
+     gener->SetPtRange(0,100.);
      gener->SetPhiRange(-180, 180);
      gener->SetYRange(2.5,4);
      gener->SetCutOnChild(1);
@@ -262,11 +265,11 @@ gAlice->SetField(2,1);    //Specify maximum magnetic field in Tesla (neg. ==> de
 Int_t iFRAME  =0;
 Int_t iMAG    =0;
 Int_t iITS    =0;
-Int_t iABSO   =0;
+Int_t iABSO   =1;
 Int_t iDIPO   =0;
 Int_t iHALL   =0;
-Int_t iSHIL   =0;
-Int_t iPIPE   =0;
+Int_t iSHIL   =1;
+Int_t iPIPE   =1;
 Int_t iFMD    =0;
 Int_t iMUON   =1;