Difference between revisions of "Day4 09/27/2011"

From New IAC Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
* to search
 
* to search
 
   C-s
 
   C-s
 +
* [http://lpn.rnbhq.org/tools/xemacs/emacs_ref.html Emacs Commands List ]
  
  
 
'''ExN02ChamberParameterisation.cc change'''
 
'''ExN02ChamberParameterisation.cc change'''
 
* change number of chambers
 
* change number of chambers
 +
  //NbOfChambers = 5;
 
   NbOfChambers = 1;
 
   NbOfChambers = 1;
 +
 
* add new materials
 
* add new materials
 
   //Liquid Hydrogen
 
   //Liquid Hydrogen
Line 16: Line 19:
 
   new G4Material("Hydrogen", z=1., a=1.01*g/mole, density = 0.07*g/cm3,
 
   new G4Material("Hydrogen", z=1., a=1.01*g/mole, density = 0.07*g/cm3,
 
                 kStateGas, 3*kelvin, 1.7e5*pascal);
 
                 kStateGas, 3*kelvin, 1.7e5*pascal);
* change LogicWorld to BadVacuum 
 
  //logicWorld= new G4LogicalVolume( solidWorld, Air, "World", 0, 0, 0);
 
  logicWorld= new G4LogicalVolume( solidWorld, BadVacuum, "World", 0, 0, 0);
 
* change LogicTracker to BadVacuum 
 
  //logicTracker = new G4LogicalVolume(solidTracker , Air, "Tracker",0,0,0); 
 
  logicTracker = new G4LogicalVolume(solidTracker , BadVacuum, "Tracker",0,0,0); 
 
 
 
 
 
  
 
   //BadVacuum
 
   //BadVacuum
Line 35: Line 28:
 
   new G4Material("Galactic", z=1., a=1.01*g/mole, density,
 
   new G4Material("Galactic", z=1., a=1.01*g/mole, density,
 
                 kStateGas, temperature, pressure);
 
                 kStateGas, temperature, pressure);
 +
 
* define target as Liquid Hydrogen
 
* define target as Liquid Hydrogen
 +
  //TargetMater  = Pb;
 
   TargetMater  = LH2;
 
   TargetMater  = LH2;
  
 +
* change LogicWorld to BadVacuum 
 +
  //logicWorld= new G4LogicalVolume( solidWorld, Air, "World", 0, 0, 0);
 +
  logicWorld= new G4LogicalVolume( solidWorld, BadVacuum, "World", 0, 0, 0);
  
 +
* change LogicTracker to BadVacuum 
 +
  //logicTracker = new G4LogicalVolume(solidTracker , Air, "Tracker",0,0,0); 
 +
  logicTracker = new G4LogicalVolume(solidTracker , BadVacuum, "Tracker",0,0,0); 
  
  
 
'''exampleN02'''
 
'''exampleN02'''
 +
* Idle> /run/verbose 0
 +
* Idle> /run/verbose 0
 
* Idle> /tracking/verbose 2
 
* Idle> /tracking/verbose 2
 +
* Idle> /gun/energy 1 MeV
 +
* Idle> /gun/particle e+
 
* Idle> /run/beamOn 1
 
* Idle> /run/beamOn 1
* Idle> gun/energy 1 MeV
 

Latest revision as of 17:08, 29 September 2011

go back

emacs note:

  • to remove bottom panel
 C-x 1
  • to search
 C-s


ExN02ChamberParameterisation.cc change

  • change number of chambers
 //NbOfChambers = 5;
 NbOfChambers = 1;
  • add new materials
 //Liquid Hydrogen
 G4Material* LH2=
 new G4Material("Hydrogen", z=1., a=1.01*g/mole, density = 0.07*g/cm3,
                kStateGas, 3*kelvin, 1.7e5*pascal);
 //BadVacuum
 density=universe_mean_density;
 temperature=0.1*kelvin;
 pressure=1.e-19*pascal;
 G4Material* BadVacuum=
 new G4Material("Galactic", z=1., a=1.01*g/mole, density,
                kStateGas, temperature, pressure);
  • define target as Liquid Hydrogen
 //TargetMater  = Pb;
 TargetMater  = LH2;
  • change LogicWorld to BadVacuum
 //logicWorld= new G4LogicalVolume( solidWorld, Air, "World", 0, 0, 0);
 logicWorld= new G4LogicalVolume( solidWorld, BadVacuum, "World", 0, 0, 0);
  • change LogicTracker to BadVacuum
 //logicTracker = new G4LogicalVolume(solidTracker , Air, "Tracker",0,0,0);  
 logicTracker = new G4LogicalVolume(solidTracker , BadVacuum, "Tracker",0,0,0);  


exampleN02

  • Idle> /run/verbose 0
  • Idle> /run/verbose 0
  • Idle> /tracking/verbose 2
  • Idle> /gun/energy 1 MeV
  • Idle> /gun/particle e+
  • Idle> /run/beamOn 1