Import Geant4 9.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 17:01:34 +02:00
parent b1eb5424d2
commit e2d2f9810a
10384 changed files with 698580 additions and 628834 deletions
@@ -24,7 +24,7 @@
// ********************************************************************
//
// -------------------------------------------------------------------
// $Id: DetectorConstruction.hh,v 1.3 2010/06/12 09:38:06 vnivanch Exp $
// $Id$
// -------------------------------------------------------------------
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -46,6 +46,7 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class G4Region;
class DetectorMessenger;
class DetectorConstruction : public G4VUserDetectorConstruction
{
@@ -56,6 +57,9 @@ public:
~DetectorConstruction();
G4VPhysicalVolume* Construct();
void SetMaterial (G4String);
void UpdateGeometry();
private:
@@ -72,5 +76,7 @@ private:
void DefineMaterials();
G4VPhysicalVolume* ConstructDetector();
DetectorMessenger* fDetectorMessenger;
};
#endif
@@ -0,0 +1,60 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
#ifndef DetectorMessenger_h
#define DetectorMessenger_h 1
#include "globals.hh"
#include "G4UImessenger.hh"
class DetectorConstruction;
class G4UIdirectory;
class G4UIcommand;
class G4UIcmdWithAString;
class G4UIcmdWithoutParameter;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class DetectorMessenger: public G4UImessenger
{
public:
DetectorMessenger(DetectorConstruction* );
~DetectorMessenger();
void SetNewValue(G4UIcommand*, G4String);
private:
DetectorConstruction* fDetector;
G4UIcmdWithAString* fMaterCmd;
G4UIcmdWithoutParameter* fUpdateCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -22,26 +22,12 @@
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: HistoManager.hh,v 1.1 2010/10/06 14:39:41 sincerti Exp $
// GEANT4 tag $Name: $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef HistoManager_h
#define HistoManager_h 1
#include "globals.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
namespace AIDA {
class IAnalysisFactory;
class ITree;
class ITuple;
}
const G4int MaxNtupl = 1;
#include "g4root.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -52,22 +38,19 @@ class HistoManager
HistoManager();
~HistoManager();
void SetFileName (const G4String& name) { fileName[0] = name;};
void book();
void save();
void FillNtuple(G4int id, G4int column, G4double value);
void AddRowNtuple(G4int id);
void save();
void FillNtuple(G4int id, G4int col, G4double e, G4double weight = 1.0);
void FillNtupleIColumn(G4int icol, G4int ival);
void FillNtupleFColumn(G4int icol, G4float ival);
void FillNtupleDColumn(G4int icol, G4double ival);
void AddNtupleRow();
private:
G4String fileName[2];
G4String fileType;
G4String fileOption;
AIDA::IAnalysisFactory* af;
AIDA::ITree* tree;
AIDA::ITuple* ntupl0;
G4bool factoryOn;
G4String fileName[2];
G4bool factoryOn;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -24,7 +24,7 @@
// ********************************************************************
//
// -------------------------------------------------------------------
// $Id: PrimaryGeneratorAction.hh,v 1.1 2008/06/04 12:58:24 sincerti Exp $
// $Id$
// -------------------------------------------------------------------
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -24,7 +24,7 @@
// ********************************************************************
//
// -------------------------------------------------------------------
// $Id: RunAction.hh,v 1.2 2010/10/06 14:39:41 sincerti Exp $
// $Id$
// -------------------------------------------------------------------
#ifndef RunAction_h
@@ -24,7 +24,7 @@
// ********************************************************************
//
// -------------------------------------------------------------------
// $Id: SteppingAction.hh,v 1.2 2010/10/06 14:39:41 sincerti Exp $
// $Id$
// -------------------------------------------------------------------
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -24,7 +24,7 @@
// ********************************************************************
//
// -------------------------------------------------------------------
// $Id: SteppingVerbose.hh,v 1.1 2008/06/04 12:58:24 sincerti Exp $
// $Id$
// -------------------------------------------------------------------
class SteppingVerbose;