Changeset 1230 for trunk/examples/extended/exoticphysics
- Timestamp:
- Jan 8, 2010, 3:02:48 PM (15 years ago)
- Location:
- trunk/examples/extended/exoticphysics/monopole
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/exoticphysics/monopole/GNUmakefile
r807 r1230 1 # $Id: GNUmakefile,v 1. 1 2007/08/16 10:32:04vnivanch Exp $1 # $Id: GNUmakefile,v 1.2 2008/06/11 14:34:19 vnivanch Exp $ 2 2 # -------------------------------------------------------------- 3 3 # GNUmakefile for examples module. Gabriele Cosmo, 06/04/98. … … 15 15 all: lib bin 16 16 17 ifdef G4ANALYSIS_USE18 CPPFLAGS += -DG4ANALYSIS_USE19 endif20 21 17 include $(G4INSTALL)/config/architecture.gmk 22 23 ifdef G4ANALYSIS_USE24 # for the aida-config command see the README file25 CPPFLAGS += `aida-config --include`26 LOADLIBS += `aida-config --lib`27 endif28 18 29 19 include $(G4INSTALL)/config/binmake.gmk -
trunk/examples/extended/exoticphysics/monopole/include/DetectorConstruction.hh
r807 r1230 24 24 // ******************************************************************** 25 25 // 26 // $Id: DetectorConstruction.hh,v 1. 1 2007/08/16 10:32:04vnivanch Exp $27 // GEANT4 tag $Name: $26 // $Id: DetectorConstruction.hh,v 1.2 2009/07/15 10:19:47 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 46 46 class DetectorConstruction : public G4VUserDetectorConstruction 47 47 { 48 48 public: 49 49 50 51 50 DetectorConstruction(); 51 ~DetectorConstruction(); 52 52 53 public: 54 55 void SetSizeX (G4double); 56 void SetSizeYZ (G4double); 57 void SetMaterial (G4String); 58 void SetMagField (G4double); 53 void SetSizeX (G4double); 54 void SetSizeYZ (G4double); 55 void SetMaterial (G4String); 56 void SetMagField (G4double); 59 57 60 58 void SetMaxStepSize (G4double); 61 59 62 63 60 G4VPhysicalVolume* Construct(); 61 void UpdateGeometry(); 64 62 65 public: 66 67 G4double GetWorldSizeX() {return worldSizeX;}; 68 G4double GetWorldSizeYZ() {return worldSizeYZ;}; 69 G4Material* GetWorldMaterial() {return worldMaterial;}; 70 G4double GetAbsorSizeX() {return absorSizeX;}; 71 G4double GetAbsorSizeYZ() {return absorSizeYZ;}; 72 G4double GetMaxStepSize() {return maxStepSize;}; 73 G4Material* GetAbsorMaterial() {return absorMaterial;}; 74 75 void PrintParameters(); 63 G4double GetWorldSizeX() {return worldSizeX;}; 64 G4double GetWorldSizeYZ() {return worldSizeYZ;}; 65 G4Material* GetWorldMaterial() {return worldMaterial;}; 66 G4double GetAbsorSizeX() {return absorSizeX;}; 67 G4double GetAbsorSizeYZ() {return absorSizeYZ;}; 68 G4double GetMaxStepSize() {return maxStepSize;}; 69 G4Material* GetAbsorMaterial() {return absorMaterial;}; 70 71 void PrintParameters(); 76 72 77 private: 73 private: 74 75 void DefineMaterials(); 76 G4VPhysicalVolume* ConstructVolumes(); 78 77 79 80 81 82 83 84 G4doublemaxStepSize;85 86 87 78 G4double worldSizeX; 79 G4double worldSizeYZ; 80 G4Material* worldMaterial; 81 G4double absorSizeX; 82 G4double absorSizeYZ; 83 G4double maxStepSize; 84 G4Material* absorMaterial; 85 G4UniformMagField* magField; 86 G4LogicalVolume* lAbsor; 88 87 89 88 DetectorMessenger* detectorMessenger; 90 89 91 private:92 93 void DefineMaterials();94 G4VPhysicalVolume* ConstructVolumes();95 90 }; 96 91 -
trunk/examples/extended/exoticphysics/monopole/include/DetectorMessenger.hh
r807 r1230 25 25 // 26 26 // $Id: DetectorMessenger.hh,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/include/EventAction.hh
r807 r1230 25 25 // 26 26 // $Id: EventAction.hh,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/include/EventActionMessenger.hh
r807 r1230 25 25 // 26 26 // $Id: EventActionMessenger.hh,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/include/G4Monopole.hh
r807 r1230 53 53 { 54 54 private: 55 55 56 static G4Monopole* theMonopole; 56 57 … … 66 67 G4DecayTable *decaytable ); 67 68 69 virtual ~G4Monopole(); 70 68 71 public: 69 70 virtual ~G4Monopole();71 72 72 73 static G4Monopole* MonopoleDefinition(G4double mass_ = 100.*GeV, -
trunk/examples/extended/exoticphysics/monopole/include/G4MonopolePhysics.hh
r807 r1230 25 25 // 26 26 // 27 // $Id: G4MonopolePhysics.hh,v 1. 1 2007/08/16 10:32:04vnivanch Exp $28 // GEANT4 tag $Name: $27 // $Id: G4MonopolePhysics.hh,v 1.2 2009/07/15 10:19:47 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 39 39 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 40 40 41 class G4MonopolePhysicsMessenger; 42 41 43 class G4MonopolePhysics : public G4VPhysicsConstructor 42 44 { 43 45 public: 44 G4MonopolePhysics(const G4String& name = "EM_monopole"); 45 virtual ~G4MonopolePhysics(); 46 47 G4MonopolePhysics(const G4String& nam = "Monopole Physics"); 48 ~G4MonopolePhysics(); 46 49 47 50 // This method is dummy for physics … … 53 56 virtual void ConstructProcess(); 54 57 58 void SetMagneticCharge(G4int); 59 void SetElectricCharge(G4int); 60 void SetMonopoleMass(G4double); 61 55 62 private: 56 63 57 64 // hide assignment operator 58 G4MonopolePhysics & operator=(const G4MonopolePhysics &right); 59 G4MonopolePhysics(const G4MonopolePhysics&); 65 // G4MonopolePhysics & operator=(const G4MonopolePhysics &right); 66 // G4MonopolePhysics(const G4MonopolePhysics&); 67 68 G4int magCharge; 69 G4int elCharge; 70 G4double monopoleMass; 71 72 G4MonopolePhysicsMessenger* theMessenger; 60 73 61 74 }; -
trunk/examples/extended/exoticphysics/monopole/include/PrimaryGeneratorAction.hh
r807 r1230 24 24 // ******************************************************************** 25 25 // 26 // $Id: PrimaryGeneratorAction.hh,v 1. 1 2007/08/16 10:32:04vnivanch Exp $27 // GEANT4 tag $Name: $26 // $Id: PrimaryGeneratorAction.hh,v 1.2 2009/07/15 10:19:47 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 45 45 class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction 46 46 { 47 public: 48 PrimaryGeneratorAction(DetectorConstruction*); 49 ~PrimaryGeneratorAction(); 47 public: 50 48 51 public: 52 void SetRndmBeam(G4double val) {rndmBeam = val;} 53 void GeneratePrimaries(G4Event*); 49 PrimaryGeneratorAction(DetectorConstruction*); 50 ~PrimaryGeneratorAction(); 51 52 void SetRndmBeam(G4double val) {rndmBeam = val;} 53 void GeneratePrimaries(G4Event*); 54 54 55 56 55 void ResetEbeamCumul() {EbeamCumul = 0.;} 56 G4double GetEbeamCumul() {return EbeamCumul;} 57 57 58 58 G4ParticleGun* GetParticleGun() {return particleGun;} 59 59 60 private: 61 G4ParticleGun* particleGun; 62 DetectorConstruction* detector; 63 G4double rndmBeam; 64 G4double EbeamCumul; 65 PrimaryGeneratorMessenger* gunMessenger; 60 private: 61 62 G4ParticleGun* particleGun; 63 DetectorConstruction* detector; 64 G4double rndmBeam; 65 G4double EbeamCumul; 66 PrimaryGeneratorMessenger* gunMessenger; 66 67 }; 67 68 -
trunk/examples/extended/exoticphysics/monopole/include/PrimaryGeneratorMessenger.hh
r807 r1230 25 25 // 26 26 // $Id: PrimaryGeneratorMessenger.hh,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/include/RunAction.hh
r807 r1230 25 25 // 26 26 // $Id: RunAction.hh,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/include/RunActionMessenger.hh
r807 r1230 25 25 // 26 26 // $Id: RunActionMessenger.hh,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/include/SteppingAction.hh
r807 r1230 25 25 // 26 26 // $Id: SteppingAction.hh,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/include/TrackingAction.hh
r807 r1230 25 25 // 26 26 // $Id: TrackingAction.hh,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/monopole.cc
r807 r1230 24 24 // ******************************************************************** 25 25 // 26 // $Id: monopole.cc,v 1. 1 2007/08/16 10:32:04vnivanch Exp $27 // GEANT4 tag $Name: $26 // $Id: monopole.cc,v 1.2 2009/07/15 10:19:47 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 35 35 #include "G4UItcsh.hh" 36 36 #include "Randomize.hh" 37 #include "globals.hh" 37 38 38 39 #include "DetectorConstruction.hh" … … 60 61 G4RunManager * runManager = new G4RunManager; 61 62 62 //set mandatory initialization classes 63 DetectorConstruction* det; 64 65 //ceate physicsList 63 //create physicsList 66 64 QGSP* phys = new QGSP(); 67 G4MonopolePhysics * theMonopole = new G4MonopolePhysics ;65 G4MonopolePhysics * theMonopole = new G4MonopolePhysics(); 68 66 phys->RegisterPhysics(theMonopole); 69 67 70 PrimaryGeneratorAction* kin; 71 runManager->SetUserInitialization(det = new DetectorConstruction); 72 runManager->SetUserInitialization(phys); 73 runManager->SetUserAction(kin = new PrimaryGeneratorAction(det)); 68 //get the pointer to the User Interface manager 69 G4UImanager* UI = G4UImanager::GetUIpointer(); 70 71 // Setup monopole 72 G4String s = ""; 73 if(argc > 2) s = argv[2]; 74 UI->ApplyCommand("/control/verbose 1"); 75 UI->ApplyCommand("/monopole/setup "+s); 76 77 // mandator user classes 78 DetectorConstruction* det = new DetectorConstruction(); 79 80 runManager->SetUserInitialization(det); 81 runManager->SetUserInitialization(phys); 82 83 PrimaryGeneratorAction* kin = new PrimaryGeneratorAction(det); 84 runManager->SetUserAction(kin); 74 85 75 86 #ifdef G4VIS_USE … … 78 89 #endif 79 90 80 // setuser action classes91 //user action classes 81 92 RunAction* run; 82 93 … … 85 96 runManager->SetUserAction(new TrackingAction(run)); 86 97 runManager->SetUserAction(new SteppingAction(det, run)); 87 88 //get the pointer to the User Interface manager89 G4UImanager* UI = G4UImanager::GetUIpointer();90 G4cout << "User actions are instantiated" << G4endl;91 98 92 99 if (argc == 1) // Define UI terminal for interactive mode … … 100 107 session = new G4UIterminal(); 101 108 #endif 102 session->SessionStart();103 delete session;109 session->SessionStart(); 110 delete session; 104 111 } 105 112 else // Batch mode 106 113 { 107 G4String command = "/control/execute ";108 G4String fileName = argv[1];109 UI->ApplyCommand(command+fileName);114 G4String command = "/control/execute "; 115 G4String fileName = argv[1]; 116 UI->ApplyCommand(command+fileName); 110 117 } 111 118 -
trunk/examples/extended/exoticphysics/monopole/src/DetectorConstruction.cc
r807 r1230 25 25 // 26 26 // $Id: DetectorConstruction.cc,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/src/DetectorMessenger.cc
r807 r1230 25 25 // 26 26 // $Id: DetectorMessenger.cc,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/src/EventAction.cc
r807 r1230 25 25 // 26 26 // $Id: EventAction.cc,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/src/EventActionMessenger.cc
r807 r1230 25 25 // 26 26 // $Id: EventActionMessenger.cc,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/src/G4Monopole.cc
r807 r1230 103 103 104 104 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 105 105 106 G4Monopole* G4Monopole::Monopole() 106 107 { -
trunk/examples/extended/exoticphysics/monopole/src/G4MonopolePhysics.cc
r807 r1230 25 25 // 26 26 // 27 // $Id: G4MonopolePhysics.cc,v 1. 1 2007/08/16 10:32:04vnivanch Exp $28 // GEANT4 tag $Name: $27 // $Id: G4MonopolePhysics.cc,v 1.2 2009/07/15 10:19:47 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //--------------------------------------------------------------------------- … … 42 42 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 43 43 44 #include "G4MonopolePhysics.hh" 45 #include "G4MonopolePhysicsMessenger.hh" 46 44 47 #include "G4Monopole.hh" 45 #include "G4MonopolePhysics.hh"46 48 #include "G4ParticleDefinition.hh" 47 49 #include "G4ProcessManager.hh" … … 55 57 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 56 58 57 G4MonopolePhysics::G4MonopolePhysics(const G4String& name): G4VPhysicsConstructor(name) 58 {} 59 G4MonopolePhysics::G4MonopolePhysics(const G4String& nam) 60 : G4VPhysicsConstructor(nam) 61 { 62 magCharge = 1; 63 elCharge = 0; 64 monopoleMass = 100.*GeV; 65 theMessenger = new G4MonopolePhysicsMessenger(this); 66 } 59 67 60 68 G4MonopolePhysics::~G4MonopolePhysics() 61 {} 69 { 70 delete theMessenger; 71 } 62 72 63 73 void G4MonopolePhysics::ConstructParticle() 64 74 { 65 G4Monopole::MonopoleDefinition(); 75 G4Monopole::MonopoleDefinition(monopoleMass, magCharge, elCharge); 76 } 77 78 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 79 void G4MonopolePhysics::ConstructProcess() 80 { 81 if(verboseLevel > 0) { 82 G4cout << "G4MonopolePhysics::ConstructProcess" << G4endl; 83 } 84 G4Monopole* mpl = G4Monopole::Monopole(); 85 86 G4ProcessManager* pmanager = new G4ProcessManager(mpl); 87 mpl->SetProcessManager(pmanager); 88 89 // defined monopole parameters and binning 90 91 G4double emax = 10.*TeV; 92 G4double magn = mpl->MagneticCharge(); 93 G4double emin = mpl->GetPDGMass()/20000.; 94 if(emin < keV) emin = keV; 95 96 G4int nbin = G4int(std::log10(emin/eV)); 97 emin = std::pow(10.,G4double(nbin))*eV; 98 99 nbin = G4int(std::log10(emax/emin)); 100 if(nbin < 1) nbin = 1; 101 nbin *= 10; 102 103 pmanager->AddProcess( new G4Transportation(), -1, 0, 0); 104 if(magn != 0.0) { 105 G4mplIonisation* mplioni = new G4mplIonisation(magn); 106 mplioni->SetDEDXBinning(nbin); 107 mplioni->SetMinKinEnergy(emin); 108 mplioni->SetMaxKinEnergy(emax); 109 pmanager->AddProcess(mplioni, -1, 1, 1); 110 } 111 if(mpl->GetPDGCharge() != 0.0) { 112 G4hhIonisation* hhioni = new G4hhIonisation(); 113 hhioni->SetDEDXBinning(nbin); 114 hhioni->SetMinKinEnergy(emin); 115 hhioni->SetMaxKinEnergy(emax); 116 pmanager->AddProcess(hhioni, -1, 2, 2); 117 } 118 pmanager->AddProcess( new G4StepLimiter(), -1, -1, 3); 119 120 } 121 122 void G4MonopolePhysics::SetMagneticCharge(G4int val) 123 { 124 magCharge = val; 125 } 126 127 void G4MonopolePhysics::SetElectricCharge(G4int val) 128 { 129 elCharge = val; 130 } 131 132 void G4MonopolePhysics::SetMonopoleMass(G4double mass) 133 { 134 monopoleMass = mass; 66 135 } 67 136 68 137 69 138 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 70 void G4MonopolePhysics::ConstructProcess()71 {72 139 73 // Add standard EM Processes for gamma74 G4cout << "G4MonopolePhysics::ConstructProcess" << G4endl;75 76 G4Monopole* mpl = G4Monopole::MonopoleDefinition();77 78 G4ProcessManager* pmanager = new G4ProcessManager(mpl);79 mpl->SetProcessManager(pmanager);80 81 pmanager->AddProcess( new G4Transportation(), -1, 0, 0);82 pmanager->AddProcess( new G4mplIonisation(mpl->MagneticCharge()), -1, 1, 1);83 pmanager->AddProcess( new G4StepLimiter(), -1, -1, 3);84 if(mpl->GetPDGCharge() != 0.0) {85 pmanager->AddProcess(new G4hhIonisation(), -1, 2, 2);86 }87 88 }89 90 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......91 -
trunk/examples/extended/exoticphysics/monopole/src/PrimaryGeneratorAction.cc
r807 r1230 24 24 // ******************************************************************** 25 25 // 26 // $Id: PrimaryGeneratorAction.cc,v 1. 1 2007/08/16 10:32:04vnivanch Exp $27 // GEANT4 tag $Name: $26 // $Id: PrimaryGeneratorAction.cc,v 1.2 2009/07/15 10:19:47 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 44 44 45 45 PrimaryGeneratorAction::PrimaryGeneratorAction(DetectorConstruction* det) 46 :detector(det) 46 :detector(det) 47 47 { 48 48 particleGun = new G4ParticleGun(1); 49 G4ParticleDefinition* particle = G4ParticleTable::GetParticleTable()->FindParticle("monopole"); 49 G4ParticleDefinition* particle = 50 G4ParticleTable::GetParticleTable()->FindParticle("monopole"); 50 51 particleGun->SetParticleDefinition(particle); 51 52 particleGun->SetParticleEnergy(100 * GeV); … … 59 60 } 60 61 61 62 62 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 63 63 PrimaryGeneratorAction::~PrimaryGeneratorAction() … … 67 67 } 68 68 69 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 69 70 70 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......71 71 void PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent) 72 72 { -
trunk/examples/extended/exoticphysics/monopole/src/PrimaryGeneratorMessenger.cc
r807 r1230 25 25 // 26 26 // $Id: PrimaryGeneratorMessenger.cc,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/src/RunAction.cc
r807 r1230 24 24 // ******************************************************************** 25 25 // 26 // $Id: RunAction.cc,v 1. 1 2007/08/16 10:32:04vnivanch Exp $27 // GEANT4 tag $Name: $26 // $Id: RunAction.cc,v 1.2 2008/06/11 14:34:19 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 84 84 if(!binLength) binLength = 5 * mm; 85 85 if(binLength > detector->GetMaxStepSize()) binLength = detector->GetMaxStepSize(); 86 G4int nbBins = (int)(0.5 + length / binLength);87 86 offsetX = 0.5 * length; 88 87 89 88 #ifdef G4ANALYSIS_USE 90 89 if(GetVerbose() > 0) G4cout << "\n----> Histogram Tree opened" << G4endl; 90 91 G4int nbBins = (int)(0.5 + length / binLength); 91 92 92 93 // Create the tree factory … … 143 144 void RunAction::FillHisto(G4int ih, G4double x, G4double weight) 144 145 { 146 if(GetVerbose() > 1) { 147 G4cout << "FillHisto " << ih << " x=" << x << " weight= " << weight 148 << G4endl; 149 } 145 150 #ifdef G4ANALYSIS_USE 146 151 if(histo[ih]) histo[ih]->fill(x, weight); -
trunk/examples/extended/exoticphysics/monopole/src/RunActionMessenger.cc
r807 r1230 25 25 // 26 26 // $Id: RunActionMessenger.cc,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/src/SteppingAction.cc
r807 r1230 25 25 // 26 26 // $Id: SteppingAction.cc,v 1.2 2007/12/10 16:28:17 gunter Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/exoticphysics/monopole/src/TrackingAction.cc
r807 r1230 25 25 // 26 26 // $Id: TrackingAction.cc,v 1.1 2007/08/16 10:32:04 vnivanch Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracChangeset
for help on using the changeset viewer.