/[PAMELA software]/PamVMC/examples/run_g4_testTRK.C
ViewVC logotype

Diff of /PamVMC/examples/run_g4_testTRK.C

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by nikolas, Thu Feb 19 17:39:48 2009 UTC revision 1.3 by nikolas, Thu Feb 19 18:43:13 2009 UTC
# Line 35  void run_g4_testTRK(const TString& confi Line 35  void run_g4_testTRK(const TString& confi
35      //optPhoton();        //optPhoton();  
36          appl->SetVerboseLevel(2);          appl->SetVerboseLevel(2);
37      // Initialize MC      // Initialize MC
38      appl->InitMC(configMacro);          TString G4ConfMacro=G4WD+"/config/"+configMacro;
39            appl->InitMC(G4ConfMacro);
40            //    appl->InitMC(configMacro);
41    
42      // Customise Geant4 setting after initialization:      // Customise Geant4 setting after initialization:
43      // Physics list      // Physics list
# Line 51  void run_g4_testTRK(const TString& confi Line 53  void run_g4_testTRK(const TString& confi
53  //     gMC->SetCut("PPCUTM", 1.0e-6);  //     gMC->SetCut("PPCUTM", 1.0e-6);
54  //     gMC->SetCut("TOFMAX", 1.0e-3);  //     gMC->SetCut("TOFMAX", 1.0e-3);
55            
56      ((TGeant4*)gMC)->ProcessGeantMacro("../macro/g4config2.in");      ((TGeant4*)gMC)->ProcessGeantMacro(G4WD+"/config/g4config2.in");
57      // Visualization settings      // Visualization settings
58      // ((TGeant4*)gMC)->ProcessGeantMacro("../macro/g4vis.in");      // ((TGeant4*)gMC)->ProcessGeantMacro(G4WD+"/config/g4vis.in");
59    
60     ((TGeant4*)gMC)->SetMaxNStep(50000);     ((TGeant4*)gMC)->SetMaxNStep(50000);
61     //appl->GetPrimaryGenerator()->SetParticle(1000060120);     //appl->GetPrimaryGenerator()->SetParticle(1000060120);
# Line 69  void run_g4_testTRK(const TString& confi Line 71  void run_g4_testTRK(const TString& confi
71        //appl->GetPrimaryGenerator()->GenDirection(0.,TMath::Pi()/2.,0.,2*TMath::Pi());        //appl->GetPrimaryGenerator()->GenDirection(0.,TMath::Pi()/2.,0.,2*TMath::Pi());
72        //appl->GetPrimaryGenerator()->GenSpe(1.,5.,-2.75);        //appl->GetPrimaryGenerator()->GenSpe(1.,5.,-2.75);
73        //  appl->GetPrimaryGenerator()->Print();        //  appl->GetPrimaryGenerator()->Print();
74        // if (i==9) ((TGeant4*)gMC)->ProcessGeantMacro("../macro/g4vis.in");        // if (i==9) ((TGeant4*)gMC)->ProcessGeantMacro(G4WD+"/macro/g4vis.in");
75        appl->RunMC(1);        appl->RunMC(1);
76    
77      }      }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23