Import Geant4 5.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:15:15 +02:00
parent 37fff30d2e
commit fbd4999cf7
4396 changed files with 56662 additions and 52446 deletions
+13 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.65 2002/12/06 19:02:55 gcosmo Exp $
$Id: History,v 1.68 2003/04/30 13:57:45 gcosmo Exp $
-------------------------------------------------------------------
=========================================================
@@ -17,6 +17,18 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
30th April 2003 Gabriele Cosmo (examples-V05-00-02)
- Includes fixes/improvements part of release 5.1.
- Updated reference outputs.
28th March 2003 Gabriele Cosmo (examples-V05-00-01)
- Improvements/fixes, see release notes for ref-03 for details
- Updated reference outputs
27th February 2003 Gabriele Cosmo (examples-V05-00-00)
- Updated reference outputs
- Updated README
6th December 2002 Gabriele Cosmo (examples-V04-01-04)
- Merged with recent development
+27 -2
View File
@@ -1,4 +1,4 @@
$Id: README,v 1.3 2001/10/23 15:24:08 gcosmo Exp $
$Id: README,v 1.4 2003/02/27 19:30:05 gcosmo Exp $
-------------------------------------------------------------------
=========================================================
@@ -52,19 +52,44 @@ Novice level examples
Extended level examples
analysis
- Histogramming through the AIDA interface
biasing
- Examples of event biasing and scoring
electromagnetic
- Specific EM physics simulation with histogramming
eventgenerator
- Applications using interface to primary event generators
like HepMC
field
- Specific simulation setups in magnetic field
g3tog3
- Examples of usage of the g3tog4 converter tool
gdml
- Example of detector persistency through the Geometry
Description Markup Language (GDML)
geometry
- Specific geometry examples and tools: binding to CAD systems,
OLAP tool for detection of overlapping geometries
parallel
- Examples of event-level parallelism in Geant4 using the
TOP-C distribution
persistency
- Persistency through the HepODBMS interface
- Persistency through generic interface
Advanced level examples
brachytherapy
- Setup for brachytherapy Ir-192 HDR source
composite_calorimeter
- Test-beam simulation used in CMS against real data taken
in 1996 in a CMS Hadron calorimeter test-beam at LHC.
gammaray_telescope
- Simulation of a typical telescope for gamma ray analysis
lAr_calorimeter
- Simulation of the Liquid Argon Calorimeter of the ATLAS
Detector at LHC.
underground_physics
- Setup of an underground dark matter experiment.
xray_fluorescence
- Test beam to characterize the response function of an
HPGe detector used to measure fluorescence emissions.
xray_telescope
- Realistic simulation of an X-ray Telescope
+1 -1
View File
@@ -22,7 +22,7 @@
// ********************************************************************
//
// $Id: Brachy.cc
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// --------------------------------------------------------------
// GEANT 4 - Brachytherapy example
@@ -26,7 +26,7 @@
//
//
// $Id: BrachyAnalysisManager.hh,v 1.6 2002/11/27 11:11:22 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// **********************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyDetectorConstruction.hh,v 1.13 2002/11/18 15:18:35 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// ****************************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyDetectorConstructionI.hh,v 1.2 2002/11/18 15:18:35 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// ****************************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyDetectorConstructionIr.hh,v 1.2 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// ****************************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyDetectorConstructionLeipzig.hh,v 1.2 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
// ************************************************
@@ -28,7 +28,7 @@
// *****************************************
//
// $Id: BrachyDetectorMessenger.hh,v 1.4 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyEventAction.hh,v 1.11 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// Code developed by:
// S.Guatelli
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyFactory.hh,v 1.2 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// **********************************
// * *
@@ -21,7 +21,7 @@
// ********************************************************************
//
// $Id: BrachyFactoryI.hh,v 1.3 2002/12/13 09:25:32 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
// --------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyFactoryIr.hh,v 1.2 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// **********************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyFactoryLeipzig.hh,v 1.2 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// **********************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyMaterial.hh,v 1.2 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// **********************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyPhantomHit.hh,v 1.4 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
// ********************************
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyPhantomROGeometry.hh,v 1.3 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// ************************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyPhantomSD.hh,v 1.3 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// ********************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyPhysicsList.hh,v 1.6 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// **********************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyPrimaryGeneratorAction.hh,v 1.8 2002/11/18 15:18:36 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// ********************************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyPrimaryGeneratorActionI.hh,v 1.2 2002/11/18 15:18:37 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyPrimaryGeneratorActionIr.hh,v 1.2 2002/11/18 15:18:37 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// *************************************************
// * *
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyRunAction.hh,v 1.6 2002/11/18 15:18:37 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyRunMessenger.hh,v 1.2 2002/11/18 15:18:37 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: BrachyVisManager.hh,v 1.4 2002/11/18 15:18:37 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
//
@@ -30,7 +30,7 @@
// *******************************
//
// $Id: BrachyAnalysisManager.cc,v 1.9 2002/12/12 19:16:18 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#ifdef G4ANALYSIS_USE
#include <stdlib.h>
@@ -37,7 +37,7 @@
// ****************************************
//
// $Id: BrachyDetectorConstruction.cc,v 1.13 2002/12/12 19:16:18 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyPhantomROGeometry.hh"
#include "BrachyPhantomSD.hh"
@@ -34,7 +34,7 @@
// ****************************************
//
// $Id: BrachyDetectorConstructionI.cc,v 1.2 2002/11/18 15:18:37 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyDetectorConstructionI.hh"
#include "G4CSGSolid.hh"
@@ -36,7 +36,7 @@
// ****************************************
//
// $Id: BrachyDetectorConstructionIr.cc,v 1.3 2002/12/12 19:16:18 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyDetectorConstructionIr.hh"
#include "G4CSGSolid.hh"
@@ -37,7 +37,7 @@
//
//
// $Id: BrachyDetectorConstructionLeipzig.cc,v 1.3 2002/12/12 19:16:18 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyDetectorConstructionLeipzig.hh"
#include "G4CSGSolid.hh"
@@ -32,7 +32,7 @@
//
//
// $Id: BrachyDetectorMessenger.cc,v 1.5 2002/12/06 16:32:03 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
@@ -30,7 +30,7 @@
// *******************************
//
// $Id: BrachyEventAction.cc,v 1.13 2002/11/27 11:11:22 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyPrimaryGeneratorActionI.hh"
#include "BrachyEventAction.hh"
@@ -32,7 +32,7 @@
// *******************************
//
// $Id: BrachyFactory.cc,v 1.3 2002/12/12 19:16:18 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include"BrachyFactory.hh"
@@ -30,7 +30,7 @@
// *******************************
//
// $Id: BrachyFactoryI.cc,v 1.2 2002/11/18 15:18:38 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyFactoryI.hh"
#include"BrachyPrimaryGeneratorActionI.hh"
@@ -30,7 +30,7 @@
// *******************************
//
// $Id: BrachyFactoryIr.cc,v 1.2 2002/11/18 15:18:38 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyFactoryIr.hh"
#include"BrachyPrimaryGeneratorActionIr.hh"
@@ -30,7 +30,7 @@
// *******************************
//
// $Id: BrachyFactoryLeipzig.cc,v 1.2 2002/11/18 15:18:38 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
@@ -30,7 +30,7 @@
// *******************************
//
// $Id: BrachyMaterial.cc,v 1.2 2002/11/18 15:18:38 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "G4MaterialPropertiesTable.hh"
@@ -31,7 +31,7 @@
// ********************************
//
// $Id: BrachyPhantomHit.cc,v 1.3 2002/11/18 15:18:38 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyPhantomHit.hh"
#include "G4ios.hh"
@@ -31,7 +31,7 @@
// ************************************
//
// $Id: BrachyPhantomROGeometry.cc,v 1.3 2002/11/18 15:18:38 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyPhantomROGeometry.hh"
#include "BrachyDummySD.hh"
@@ -31,7 +31,7 @@
// ********************************
//
// $Id: BrachyPhantomSD.cc,v 1.3 2002/11/18 15:18:38 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyPhantomSD.hh"
#include "BrachyPhantomHit.hh"
@@ -31,7 +31,7 @@
// **********************************
//
// $Id: BrachyPhysicsList.cc,v 1.6 2002/11/18 15:18:38 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyPhysicsList.hh"
@@ -36,7 +36,7 @@
// ********************************************
//
// $Id: BrachyPrimaryGeneratorAction.cc,v 1.12 2002/12/12 19:16:19 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyPrimaryGeneratorAction.hh"
#include "BrachyAnalysisManager.hh"
@@ -36,7 +36,7 @@
// ********************************************
//
// $Id: BrachyPrimaryGeneratorActionI.cc,v 1.4 2002/12/12 19:16:19 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyPrimaryGeneratorActionI.hh"
@@ -36,7 +36,7 @@
// ********************************************
//
// $Id: BrachyPrimaryGeneratorActionIr.cc,v 1.4 2002/12/12 19:16:19 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyPrimaryGeneratorActionIr.hh"
@@ -37,7 +37,7 @@
// *******************************
//
// $Id: BrachyRunAction.cc,v 1.10 2002/12/12 19:16:19 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
#include "BrachyRunAction.hh"
@@ -24,7 +24,7 @@
// S.Guatelli
//
// $Id: BrachyRunMessenger.cc,v 1.3 2002/12/08 22:40:55 stesting Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
//
@@ -29,7 +29,7 @@
// *******************************
//
// $Id: BrachyVisManager.cc,v 1.5 2002/11/18 15:18:39 guatelli Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
@@ -1,5 +1,5 @@
-------------------------------------------------------------------
$Id: History,v 1.8 2002/12/11 14:32:29 ribon Exp $
$Id: History,v 1.10 2003/04/25 11:43:59 ribon Exp $
-------------------------------------------------------------------
=========================================================
@@ -9,6 +9,14 @@ $Id: History,v 1.8 2002/12/11 14:32:29 ribon Exp $
Example History file
---------------------
25.04.2003 - A.Ribon (ccal-V05-01-00)
- Replaced cout with G4cout and endl with G4endl, and removed some
compilation warning about unused variables.
19.02.2003 - G.Cosmo (ccal-V05-00-00)
- Removed redundant inclusion of PhysicalConstants.h and SystemOfUnits.h.
Now using CLHEP headers.
11.12.2002 - A.Ribon (ccal-V04-01-04)
- Some clean up and fixes, but unfortunately not yet fixed
the problem of reading the material in the Sun platform
@@ -1,5 +1,5 @@
-------------------------------------------------------------------
$Id: README,v 1.6 2002/12/05 18:09:07 ribon Exp $
$Id: README,v 1.7 2003/04/25 11:43:59 ribon Exp $
-------------------------------------------------------------------
=========================================================
@@ -35,7 +35,7 @@ $Id: README,v 1.6 2002/12/05 18:09:07 ribon Exp $
Although the details of how this is done vary from experiment to
experiment (it is worth, for instance, to compare with the Atlas-based
advanced example lAr_calorimeter), the main driving needs and goals
are quite general: to have consistency, but avoiding duplication
are quite general: to have consistency, but avoiding duplications
and couplings as much as possibile, between Simulation, Reconstruction,
and Visualization. Notice that the solution offered in this example
by CMS could appear "overdone" for the sake of simulating only a
@@ -57,7 +57,7 @@ $Id: README,v 1.6 2002/12/05 18:09:07 ribon Exp $
> . envExample.sh in the case of bash-shell
The analysis part is based on:
*** AIDA version 3.0 & Anaphe version 5.0.1 ***
*** AIDA version 3.0 & Anaphe version 5.0.2 ***
NB) Be careful that if you want to have this analysis part,
you have not only to set the variable G4ANALYSIS_USE but
@@ -358,7 +358,7 @@ No Noise and Digitization
The analysis part of CompositeCalorimeter is kept in class CCalAnalysis,
and is based on the AIDA interfaces and their implementation in Anaphe:
*** AIDA version 3.0 & Anaphe version 5.0.1 ***
*** AIDA version 3.0 & Anaphe version 5.0.2 ***
please look at their documentation for more details:
http://anaphe.web.cern.ch/anaphe
Both the histograms and the ntuple are saved at the end of the run in the
@@ -14,9 +14,9 @@
### setenv PLATF redhat72/gcc-2.95.2/
### source $LHCXXTOP/share/LHCXX/$LHCXXVERS/install/sharedstart.csh
#
# --- Aida 3.0 , Anaphe 5.0.1 ---
#source /afs/cern.ch/sw/lhcxx/share/LHCXX/5.0.1/scripts/setupAnaphe.csh
#setenv PATH ${PATH}:/afs/cern.ch/sw/lhcxx/share/LHCXX/5.0.1/scripts/
# --- Aida 3.0 , Anaphe 5.0.2 ---
#source /afs/cern.ch/sw/lhcxx/share/LHCXX/5.0.2/scripts/setupAnaphe.csh
#setenv PATH ${PATH}:/afs/cern.ch/sw/lhcxx/share/LHCXX/5.0.2/scripts/
#
# --- Specific setup for this test-beam example ---
setenv CCAL_CONFPATH ./dataconf
@@ -14,9 +14,9 @@
### export PLATF=redhat72/gcc-2.95.2/
### . $LHCXXTOP/share/LHCXX/$LHCXXVERS/install/sharedstart.sh
#
# --- Aida 3.0 , Anaphe 5.0.1 ---
#. /afs/cern.ch/sw/lhcxx/share/LHCXX/5.0.1/scripts/setupAnaphe
#export PATH=$PATH:/afs/cern.ch/sw/lhcxx/share/LHCXX/5.0.1/scripts/
# --- Aida 3.0 , Anaphe 5.0.2 ---
#. /afs/cern.ch/sw/lhcxx/share/LHCXX/5.0.2/scripts/setupAnaphe
#export PATH=$PATH:/afs/cern.ch/sw/lhcxx/share/LHCXX/5.0.2/scripts/
#
# --- Specific setup for this test-beam example ---
export CCAL_CONFPATH=./dataconf
@@ -60,9 +60,9 @@ CCalAnalysis::CCalAnalysis() :analysisFactory(0), tree(0), tuple(0), energy(0) {
const char* opFileptr = getenv("CCAL_FILENAME");
G4String opFilestr = "ccal.his";
if (opFileptr) opFilestr = opFileptr;
cout << "********************************************" << endl
<< "* o/p file on " << opFilestr << endl
<< "********************************************" << endl << endl;
G4cout << "********************************************" << G4endl
<< "* o/p file on " << opFilestr << G4endl
<< "********************************************" << G4endl << G4endl;
bool readOnly = false; // we want to write.
bool createNew = true; // create file if it doesn't exist.
tree = treeFactory->create(opFilestr, "hbook", readOnly,createNew);
@@ -165,57 +165,63 @@ CCalAnalysis* CCalAnalysis::getInstance() {
// This function fill the 1d histogram of the energies in HCal layers
void CCalAnalysis::InsertEnergyHcal(float* v) {
#ifdef debug
double totalFilledEnergyHcal = 0.0;
#endif
for (int i=0; i<28; i++) {
if (hcalE[i]) {
double x = v[i];
hcalE[i]->fill(x);
#ifdef debug
cout << "Fill Hcal histo " << i << " with " << x << endl;
G4cout << "Fill Hcal histo " << i << " with " << x << G4endl;
totalFilledEnergyHcal += x;
#endif
}
}
#ifdef debug
cout << "\t total filled Energy Hcal histo " << totalFilledEnergyHcal << endl;
G4cout << "\t total filled Energy Hcal histo " << totalFilledEnergyHcal << G4endl;
#endif
}
// This function fill the 1d histogram of the energies in ECal layers
void CCalAnalysis::InsertEnergyEcal(float* v) {
#ifdef debug
double totalFilledEnergyEcal = 0.0;
#endif
for (int i=0; i<49; i++) {
if (ecalE[i]) {
double x = v[i];
ecalE[i]->fill(x);
#ifdef debug
cout << "Fill Ecal histo " << i << " with " << x << endl;
G4cout << "Fill Ecal histo " << i << " with " << x << G4endl;
totalFilledEnergyEcal += x;
#endif
}
}
#ifdef debug
cout << "\t total filled Energy Ecal histo " << totalFilledEnergyEcal << endl;
G4cout << "\t total filled Energy Ecal histo " << totalFilledEnergyEcal << G4endl;
#endif
}
// This function fill the 1d histogram of the lateral profile
void CCalAnalysis::InsertLateralProfile(float* v) {
#ifdef debug
double totalFilledProfileHcal = 0.0;
#endif
for (int i=0; i<70; i++) {
if (lateralProfile[i]) {
double x = v[i];
lateralProfile[i]->fill(x);
#ifdef debug
cout << "Fill Profile Hcal histo " << i << " with " << x << endl;
G4cout << "Fill Profile Hcal histo " << i << " with " << x << G4endl;
totalFilledProfileHcal += x;
#endif
}
}
#ifdef debug
cout << "\t total filled Profile Hcal histo " << totalFilledProfileHcal << endl;
G4cout << "\t total filled Profile Hcal histo " << totalFilledProfileHcal << G4endl;
#endif
}
@@ -226,7 +232,7 @@ void CCalAnalysis::InsertEnergy(float v) {
double x = v;
energy->fill(x);
#ifdef debug
cout << "Fill Total energy Hcal histo with " << x << endl;
G4cout << "Fill Total energy Hcal histo with " << x << G4endl;
#endif
}
}
@@ -234,19 +240,21 @@ void CCalAnalysis::InsertEnergy(float v) {
// This function fill the 1d histograms of time profiles
void CCalAnalysis::InsertTime(float* v) {
#ifdef debug
double totalFilledTimeProfile = 0.0;
#endif
for (int j=0; j<numberOfTimeSlices; j++) {
if (timeHist[j]) {
double x = v[j];
timeHist[j]->fill(x);
#ifdef debug
cout << "Fill Time profile histo " << j << " with " << x << endl;
G4cout << "Fill Time profile histo " << j << " with " << x << G4endl;
totalFilledTimeProfile += x;
#endif
}
}
#ifdef debug
cout << "\t total filled Time profile histo " << totalFilledTimeProfile << endl;
G4cout << "\t total filled Time profile histo " << totalFilledTimeProfile << G4endl;
#endif
}
@@ -321,60 +329,60 @@ void CCalAnalysis::EndOfRun(G4int n) {
void CCalAnalysis::EndOfEvent(G4int flag) {
#ifdef debug
cout << " Check if empty histograms " << endl;
G4cout << " Check if empty histograms " << G4endl;
int i=0;
if ( energy ) {
if ( energy->allEntries() == 0 ) {
cout << "EMPTY HISTO energy " << endl;
G4cout << "EMPTY HISTO energy " << G4endl;
} else if ( energy->allEntries() == energy->extraEntries() ) {
cout << "EXTRA entries only HISTO energy " << endl;
G4cout << "EXTRA entries only HISTO energy " << G4endl;
}
} else {
cout << "UNDEFINED HISTO energy " << endl;
G4cout << "UNDEFINED HISTO energy " << G4endl;
}
for (i=0; i<28; i++) {
if ( hcalE[i] ) {
if ( hcalE[i]->allEntries() == 0 ) {
cout << "EMPTY HISTO hcal " << i << endl;
G4cout << "EMPTY HISTO hcal " << i << G4endl;
} else if ( hcalE[i]->allEntries() == hcalE[i]->extraEntries() ) {
cout << "EXTRA entries only HISTO hcal " << i << endl;
G4cout << "EXTRA entries only HISTO hcal " << i << G4endl;
}
} else {
cout << "UNDEFINED HISTO hcal " << i << endl;
G4cout << "UNDEFINED HISTO hcal " << i << G4endl;
}
}
for (i=0; i<70; i++) {
if ( lateralProfile[i] ) {
if ( lateralProfile[i]->allEntries() == 0 ) {
cout << "EMPTY HISTO lateralProfile " << i << endl;
G4cout << "EMPTY HISTO lateralProfile " << i << G4endl;
} else if ( lateralProfile[i]->allEntries() ==
lateralProfile[i]->extraEntries() ) {
cout << "EXTRA entries only HISTO lateralProfile " << i << endl;
G4cout << "EXTRA entries only HISTO lateralProfile " << i << G4endl;
}
} else {
cout << "UNDEFINED HISTO lateralProfile " << i << endl;
G4cout << "UNDEFINED HISTO lateralProfile " << i << G4endl;
}
}
for (i=0; i<49; i++) {
if ( ecalE[i] ) {
if ( ecalE[i]->allEntries() == 0 ) {
cout << "EMPTY HISTO ecalE " << i << endl;
G4cout << "EMPTY HISTO ecalE " << i << G4endl;
} else if ( ecalE[i]->allEntries() == ecalE[i]->extraEntries() ) {
cout << "EXTRA entries only HISTO ecal " << i << endl;
G4cout << "EXTRA entries only HISTO ecal " << i << G4endl;
}
} else {
cout << "UNDEFINED HISTO hcal " << i << endl;
G4cout << "UNDEFINED HISTO hcal " << i << G4endl;
}
}
for (i=0; i<numberOfTimeSlices; i++) {
if ( timeHist[i] ) {
if ( timeHist[i]->allEntries() == 0 ) {
cout << "EMPTY HISTO timeHist " << i << endl;
G4cout << "EMPTY HISTO timeHist " << i << G4endl;
} else if ( timeHist[i]->allEntries() == timeHist[i]->extraEntries() ) {
cout << "EXTRA entries only HISTO timeHist " << i << endl;
G4cout << "EXTRA entries only HISTO timeHist " << i << G4endl;
}
} else {
cout << "UNDEFINED HISTO timeHist " << i << endl;
G4cout << "UNDEFINED HISTO timeHist " << i << G4endl;
}
}
#endif
@@ -28,7 +28,6 @@
#include "G4VPhysicalVolume.hh"
#include "G4Step.hh"
#include "G4StepPoint.hh"
#include "SystemOfUnits.h"
CCalEcalOrganization::~CCalEcalOrganization(){
G4cout << " Deleting CCalEcalOrganization" << G4endl;
@@ -29,7 +29,6 @@
#include "G4VPhysicalVolume.hh"
#include "G4Step.hh"
#include "G4StepPoint.hh"
#include "SystemOfUnits.h"
CCalHcalOrganization::~CCalHcalOrganization() {
G4cout << " Deleting CCalHcalOrganization" << G4endl;
@@ -36,7 +36,6 @@
#include "CLHEP/Random/RandFlat.h"
#include "G4HEPEvtInterface.hh"
#include "G4RunManager.hh"
#include "SystemOfUnits.h"
#define debug
@@ -36,8 +36,6 @@
#include "G4UIcmdWithAnInteger.hh"
#include "globals.hh"
#include "PhysicalConstants.h"
CCalPrimaryGeneratorMessenger::CCalPrimaryGeneratorMessenger(CCalPrimaryGeneratorAction* myGun) : myAction(myGun) {
verboseCmd = new G4UIcmdWithAnInteger("/CCal/generator/verbose",this);
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTel.cc,v 1.9 2002/06/18 18:45:39 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
// ------------------------------------------------------------
@@ -1,5 +1,5 @@
**********************************************
Geant4 version $Name: geant4-05-00 $
Geant4 version $Name: geant4-05-01 $
(28-Feb-2002)
Copyright : Geant4 Collaboration
**********************************************
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelAnalysis.hh,v 1.12 2002/11/08 14:18:52 pfeiffer Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelAnalysisMessenger.hh,v 1.3 2001/11/23 17:44:54 santin Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelAnticoincidenceHit.hh,v 1.2 2001/07/11 09:56:56 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelAnticoincidenceSD.hh,v 1.3 2001/11/29 11:19:17 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelCalorimeterHit.hh,v 1.2 2001/07/11 09:56:56 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelCalorimeterSD.hh,v 1.4 2001/11/29 11:19:17 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelDetectorConstruction.hh,v 1.6 2001/07/11 09:56:56 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelDetectorMessenger.hh,v 1.3 2001/07/11 09:56:56 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelDigi.hh,v 1.1 2001/10/24 13:11:54 flongo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelDigitizer.hh,v 1.2 2001/11/29 09:34:17 flongo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelDigitizerMessenger.hh,v 1.1 2001/11/29 09:34:17 flongo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
// ------------------------------------------------------------
@@ -23,7 +23,7 @@
//
// $Id: GammaRayTelDummySD.hh,v 1.4 2001/11/28 10:07:01 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelEventAction.hh,v 1.9 2001/12/04 11:40:28 flongo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelPhysicsList.hh,v 1.3 2001/07/11 09:56:57 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelPrimaryGeneratorAction.hh,v 1.6 2001/11/29 11:19:17 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelPrimaryGeneratorMessenger.hh,v 1.3 2001/07/11 09:56:57 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
// ------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelRunAction.hh,v 1.5 2001/11/23 17:44:54 santin Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelTrackerHit.hh,v 1.2 2001/07/11 09:56:57 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelTrackerROGeometry.hh,v 1.3 2001/11/29 11:19:17 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelTrackerSD.hh,v 1.4 2001/11/29 11:19:17 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelVisManager.hh,v 1.3 2001/07/11 09:56:57 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelAnalysis.cc,v 1.15 2002/11/08 14:18:53 pfeiffer Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelAnalysisMessenger.cc,v 1.8 2002/12/11 17:13:38 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// ------------------------------------------------------------
// GEANT 4 class implementation file
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelAnticoincidenceHit.cc,v 1.2 2001/07/11 09:56:57 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelAnticoincidenceSD.cc,v 1.4 2001/11/29 11:19:18 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelCalorimeterHit.cc,v 1.2 2001/07/11 09:56:57 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelCalorimeterSD.cc,v 1.4 2001/11/29 11:19:18 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelDetectorConstruction.cc,v 1.9 2001/11/29 11:19:18 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelDetectorMessenger.cc,v 1.7 2002/12/11 17:13:38 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
// ------------------------------------------------------------
// GEANT 4 class implementation file
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelDigi.cc,v 1.2 2001/12/13 13:44:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelDigitizer.cc,v 1.3 2001/12/04 11:40:28 flongo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelDigitizerMessenger.cc,v 1.4 2002/12/11 17:13:38 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelEventAction.cc,v 1.15 2002/11/14 10:55:28 flongo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelPhysicsList.cc,v 1.3 2001/07/11 09:56:58 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelPrimaryGeneratorAction.cc,v 1.6 2001/11/29 11:19:18 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelPrimaryGeneratorMessenger.cc,v 1.6 2002/12/11 17:13:38 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelRunAction.cc,v 1.8 2002/11/14 10:55:17 flongo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelTrackerHit.cc,v 1.2 2001/07/11 09:56:58 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelTrackerROGeometry.cc,v 1.5 2001/11/29 11:19:18 griccard Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
// ------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: GammaRayTelTrackerSD.cc,v 1.6 2001/12/04 11:40:28 flongo Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -23,7 +23,7 @@
//
// $Id: GammaRayTelVisManager.cc,v 1.7 2002/11/13 19:17:13 duns Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
// ------------------------------------------------------------
// GEANT 4 class implementation file
// CERN Geneva Switzerland
@@ -0,0 +1,20 @@
0 0 0
0
0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0
0
0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0
0
0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0
0
0
0 0 0 0 0 0 0
0 0 0 0 0 0

Some files were not shown because too many files have changed in this diff Show More