Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: PersistentEx01.cc,v 1.4.2.1 1999/12/07 20:47:20 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
LD_LIBRARY_PATH = /usr/local/libexec/jdk/1.1.6/lib:/opt/SUNWspro/lib:/usr/openwin/lib:/usr/dt/lib:/usr/local/lib:/afs/cern.ch/sw/lhcxx/specific/sun/Objectivity/5.1/lib:/afs/cern.ch/sw/lhcxx/specific/@sys/HepODBMS/0.3.0.1/lib
|
||||
|
||||
Copying G4EXAMPLE_BOOT into runtime federated database...
|
||||
Creating new runtime federated database /afs/cern.ch/sw/geant4/stt/dev/SUN-CC/debug/exampleSchema/SUN-CC/PersistentEx01 for FDID 207
|
||||
Run with active lockserver
|
||||
Schema import from PersistentEx01 to PersistentEx01
|
||||
|
||||
Updating Name Service values...
|
||||
Now updating System Name Space (catalog) values...
|
||||
Now updating Database File locations...
|
||||
|
||||
Federated Database Installation complete.
|
||||
OO_FD_BOOT is set to /afs/cern.ch/sw/geant4/stt/dev/SUN-CC/debug/exampleFD/SUN-CC/PersistentEx01
|
||||
|
||||
Opening federated database OO_FD_BOOT.
|
||||
WARNING: g4example: Could not find naming root directory: Naming will be disabled.
|
||||
**********************************************
|
||||
Geant4 version $Name: geant4-01-01 $
|
||||
(07-Dec-99)
|
||||
Copyright : Geant4 Collaboration
|
||||
**********************************************
|
||||
#
|
||||
# PersistentEx01.in
|
||||
#
|
||||
@@ -78,36 +96,36 @@ Transaction is committed on /Geometry/GeomContainer/
|
||||
>>> Event 0
|
||||
Event : 0
|
||||
mySD/EvenCollection Number of hits 9
|
||||
Edep of the first Hit 34.3698
|
||||
Edep of the first Hit 34.3763
|
||||
mySD/OddCollection Number of hits 39
|
||||
Edep of the first Hit 18.4405
|
||||
Edep of the first Hit 18.4413
|
||||
Transaction started for /Events/EventContainer/ with non-sustained mode.
|
||||
-- G4PEvent 0 stored in /Events/EventContainer/
|
||||
Transaction is committed on /Events/EventContainer/
|
||||
>>> Event 1
|
||||
Event : 1
|
||||
mySD/EvenCollection Number of hits 22
|
||||
Edep of the first Hit 99.9396
|
||||
Edep of the first Hit 99.9458
|
||||
mySD/OddCollection Number of hits 20
|
||||
Edep of the first Hit 25.443
|
||||
Edep of the first Hit 25.4437
|
||||
Transaction started for /Events/EventContainer/ with non-sustained mode.
|
||||
-- G4PEvent 1 stored in /Events/EventContainer/
|
||||
Transaction is committed on /Events/EventContainer/
|
||||
>>> Event 2
|
||||
Event : 2
|
||||
mySD/EvenCollection Number of hits 22
|
||||
Edep of the first Hit 6.23362
|
||||
Edep of the first Hit 6.24018
|
||||
mySD/OddCollection Number of hits 19
|
||||
Edep of the first Hit 64.6385
|
||||
Edep of the first Hit 64.64
|
||||
Transaction started for /Events/EventContainer/ with non-sustained mode.
|
||||
-- G4PEvent 2 stored in /Events/EventContainer/
|
||||
Transaction is committed on /Events/EventContainer/
|
||||
>>> Event 3
|
||||
Event : 3
|
||||
mySD/EvenCollection Number of hits 13
|
||||
Edep of the first Hit 48.4612
|
||||
Edep of the first Hit 48.4619
|
||||
mySD/OddCollection Number of hits 39
|
||||
Edep of the first Hit 14.5902
|
||||
Edep of the first Hit 14.5986
|
||||
Transaction started for /Events/EventContainer/ with non-sustained mode.
|
||||
-- G4PEvent 3 stored in /Events/EventContainer/
|
||||
Transaction is committed on /Events/EventContainer/
|
||||
@@ -116,16 +134,16 @@ Event : 4
|
||||
mySD/EvenCollection Number of hits 32
|
||||
Edep of the first Hit 50.5145
|
||||
mySD/OddCollection Number of hits 16
|
||||
Edep of the first Hit 57.8215
|
||||
Edep of the first Hit 57.8223
|
||||
Transaction started for /Events/EventContainer/ with non-sustained mode.
|
||||
-- G4PEvent 4 stored in /Events/EventContainer/
|
||||
Transaction is committed on /Events/EventContainer/
|
||||
>>> Event 5
|
||||
Event : 5
|
||||
mySD/EvenCollection Number of hits 6
|
||||
Edep of the first Hit 139.802
|
||||
Edep of the first Hit 139.808
|
||||
mySD/OddCollection Number of hits 35
|
||||
Edep of the first Hit 109.904
|
||||
Edep of the first Hit 109.911
|
||||
Transaction started for /Events/EventContainer/ with non-sustained mode.
|
||||
-- G4PEvent 5 stored in /Events/EventContainer/
|
||||
Transaction is committed on /Events/EventContainer/
|
||||
@@ -134,7 +152,7 @@ Event : 6
|
||||
mySD/EvenCollection Number of hits 10
|
||||
Edep of the first Hit 21.8663
|
||||
mySD/OddCollection Number of hits 28
|
||||
Edep of the first Hit 14.2566
|
||||
Edep of the first Hit 14.2581
|
||||
Transaction started for /Events/EventContainer/ with non-sustained mode.
|
||||
-- G4PEvent 6 stored in /Events/EventContainer/
|
||||
Transaction is committed on /Events/EventContainer/
|
||||
@@ -143,25 +161,25 @@ Event : 7
|
||||
mySD/EvenCollection Number of hits 12
|
||||
Edep of the first Hit 2.93176
|
||||
mySD/OddCollection Number of hits 43
|
||||
Edep of the first Hit 3.13845
|
||||
Edep of the first Hit 3.1392
|
||||
Transaction started for /Events/EventContainer/ with non-sustained mode.
|
||||
-- G4PEvent 7 stored in /Events/EventContainer/
|
||||
Transaction is committed on /Events/EventContainer/
|
||||
>>> Event 8
|
||||
Event : 8
|
||||
mySD/EvenCollection Number of hits 18
|
||||
Edep of the first Hit 13.787
|
||||
mySD/OddCollection Number of hits 35
|
||||
Edep of the first Hit 13.6233
|
||||
Edep of the first Hit 13.794
|
||||
mySD/OddCollection Number of hits 34
|
||||
Edep of the first Hit 13.6248
|
||||
Transaction started for /Events/EventContainer/ with non-sustained mode.
|
||||
-- G4PEvent 8 stored in /Events/EventContainer/
|
||||
Transaction is committed on /Events/EventContainer/
|
||||
>>> Event 9
|
||||
Event : 9
|
||||
mySD/EvenCollection Number of hits 7
|
||||
Edep of the first Hit 42.2712
|
||||
mySD/OddCollection Number of hits 41
|
||||
Edep of the first Hit 21.0987
|
||||
mySD/EvenCollection Number of hits 14
|
||||
Edep of the first Hit 4.16745
|
||||
mySD/OddCollection Number of hits 35
|
||||
Edep of the first Hit 43.0885
|
||||
Transaction started for /Events/EventContainer/ with non-sustained mode.
|
||||
-- G4PEvent 9 stored in /Events/EventContainer/
|
||||
Transaction is committed on /Events/EventContainer/
|
||||
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
// remove an existing tag collection with the name <tagName>
|
||||
HepExplorable *cd = HepExplorable::findExplorable(tagName);
|
||||
if (cd) {
|
||||
cout << "removing old tag:" << tagName << endl;
|
||||
cout << "removing old tag:" << tagName << G4endl;
|
||||
cd->removeDescription();
|
||||
delete cd;
|
||||
}
|
||||
|
||||
@@ -46,8 +46,8 @@ public:
|
||||
int evt_id = pevent_iterator->GetEventID();
|
||||
int n_pvertex = pevent_iterator->GetNumberOfPrimaryVertex();
|
||||
|
||||
cout << endl << "Reading event #" << evt_id << ":" << endl;
|
||||
cout << " No. of primary vertex: " << n_pvertex << endl;
|
||||
cout << G4endl << "Reading event #" << evt_id << ":" << G4endl;
|
||||
cout << " No. of primary vertex: " << n_pvertex << G4endl;
|
||||
|
||||
// Loop for all primary vertex in this event
|
||||
for ( int i = 0; i < n_pvertex; i++ )
|
||||
@@ -55,9 +55,9 @@ public:
|
||||
HepRef(G4PPrimaryVertex) pvertex =
|
||||
pevent_iterator->GetPrimaryVertex(i);
|
||||
cout << " ObjectID of the primary vertex: "
|
||||
<< pvertex.sprint() << endl;
|
||||
<< pvertex.sprint() << G4endl;
|
||||
cout << " No. of particle in the primary vertex: "
|
||||
<< pvertex->GetNumberOfParticle() << endl;
|
||||
<< pvertex->GetNumberOfParticle() << G4endl;
|
||||
|
||||
for ( int j = 0; j < pvertex->GetNumberOfParticle() ; j++ )
|
||||
{
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
cout << " PDGcode: " << particle->GetPDGcode()
|
||||
<< " Px = " << particle->GetPx()
|
||||
<< " Py = " << particle->GetPy()
|
||||
<< " Pz = " << particle->GetPz() << endl;
|
||||
<< " Pz = " << particle->GetPz() << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
const HepRef(G4PHCofThisEvent) hcte = pevent_iterator->GetHCofThisEvent();
|
||||
if( hcte != 0 )
|
||||
{
|
||||
cout << " ObjectID of the Hit Collections: " << hcte.sprint() << endl;
|
||||
cout << " ObjectID of the Hit Collections: " << hcte.sprint() << G4endl;
|
||||
|
||||
// Capacity of the Hit Collections VArray
|
||||
// G4int numHC = hcte->GetCapacity();
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
// Actual number of Hit Collections in this event
|
||||
G4int numHCact = hcte->GetNumberOfCollections();
|
||||
|
||||
cout << " No. of the Hit Collections: " << numHCact << endl;
|
||||
cout << " No. of the Hit Collections: " << numHCact << G4endl;
|
||||
for( G4int i = 0; i<numHCact; i++)
|
||||
{
|
||||
const HepRef(G4PVHitsCollection) aHC = hcte->GetHC(i);
|
||||
@@ -89,12 +89,12 @@ public:
|
||||
{
|
||||
cout << " Hit Collection[" << i << "]: Name: "
|
||||
<< aHC->GetName();
|
||||
cout << " Sensitive Detector: " << aHC->GetSDname() << endl;
|
||||
cout << " Sensitive Detector: " << aHC->GetSDname() << G4endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{ cout << " No Hit Collections for this event." << endl; }
|
||||
{ cout << " No Hit Collections for this event." << G4endl; }
|
||||
}
|
||||
|
||||
message("End of loop over events.");
|
||||
|
||||
@@ -39,8 +39,8 @@ public:
|
||||
for(events->start(); events->next() != 0; )
|
||||
{
|
||||
// use a tag attribute directly in a print statment
|
||||
cout << "Reading event #" << event_id << ":" << endl;
|
||||
cout << " number of primary vertex: " << n_pvertex << endl;
|
||||
cout << "Reading event #" << event_id << ":" << G4endl;
|
||||
cout << " number of primary vertex: " << n_pvertex << G4endl;
|
||||
|
||||
//
|
||||
// [ could do some selection based on tag attributes here ... ]
|
||||
@@ -57,20 +57,20 @@ public:
|
||||
|
||||
if (getEvent(g4evt, events) )
|
||||
{
|
||||
cout << " ObjectID of event: " << g4evt.sprint() << endl;
|
||||
cout << " ObjectID of event: " << g4evt.sprint() << G4endl;
|
||||
cout << " No. of the primary vertex (from G4PEvent): "
|
||||
<< g4evt->GetNumberOfPrimaryVertex() << endl;
|
||||
<< g4evt->GetNumberOfPrimaryVertex() << G4endl;
|
||||
|
||||
for ( int i = 0; i < n_pvertex; i++ )
|
||||
{
|
||||
HepRef(G4PPrimaryVertex) pvertex = g4evt->GetPrimaryVertex(i);
|
||||
cout << " ObjectID of primary vertex: " << pvertex.sprint() << endl;
|
||||
cout << " ObjectID of primary vertex: " << pvertex.sprint() << G4endl;
|
||||
cout << " No. of particle in the primary vertex: "
|
||||
<< pvertex->GetNumberOfParticle() << endl;
|
||||
<< pvertex->GetNumberOfParticle() << G4endl;
|
||||
}
|
||||
}
|
||||
else
|
||||
{ cout << " No event object found." << endl; }
|
||||
{ cout << " No event object found." << G4endl; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ PersEx01DetectorConstruction::~PersEx01DetectorConstruction()
|
||||
|
||||
G4VPhysicalVolume* PersEx01DetectorConstruction::Construct()
|
||||
{
|
||||
G4cout << " -- Tracker type sensitive detector" << endl;
|
||||
G4cout << " -- Tracker type sensitive detector" << G4endl;
|
||||
|
||||
//--------- Material definition ---------
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ void PersEx01EventAction::BeginOfEventAction(const G4Event* )
|
||||
|
||||
void PersEx01EventAction::EndOfEventAction(const G4Event* evt)
|
||||
{
|
||||
G4cout << ">>> Event " << evt->GetEventID() << endl;
|
||||
G4cout << ">>> Event " << evt->GetEventID() << G4endl;
|
||||
|
||||
G4HCofThisEvent * HCE = evt->GetHCofThisEvent();
|
||||
PersEx01TrackerHitsCollection * pTHC1
|
||||
@@ -40,14 +40,14 @@ void PersEx01EventAction::EndOfEventAction(const G4Event* evt)
|
||||
PersEx01TrackerHitsCollection * pTHC2
|
||||
= (PersEx01TrackerHitsCollection*)(HCE->GetHC(colID2));
|
||||
|
||||
G4cout << "Event : " << evt->GetEventID() << endl
|
||||
G4cout << "Event : " << evt->GetEventID() << G4endl
|
||||
<< pTHC1->GetSDname() << "/" << pTHC1->GetName() << " "
|
||||
<< "Number of hits " << pTHC1->entries() << endl;
|
||||
<< "Number of hits " << pTHC1->entries() << G4endl;
|
||||
if( pTHC1->entries() > 0 )
|
||||
G4cout << " Edep of the first Hit " << (*pTHC1)[0]->GetEdep() << endl;
|
||||
G4cout << " Edep of the first Hit " << (*pTHC1)[0]->GetEdep() << G4endl;
|
||||
G4cout << pTHC2->GetSDname() << "/" << pTHC2->GetName() << " "
|
||||
<< "Number of hits " << pTHC2->entries() << endl;
|
||||
<< "Number of hits " << pTHC2->entries() << G4endl;
|
||||
if( pTHC2->entries() > 0 )
|
||||
G4cout << " Edep of the first Hit " << (*pTHC2)[0]->GetEdep() << endl;
|
||||
G4cout << " Edep of the first Hit " << (*pTHC2)[0]->GetEdep() << G4endl;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// $Id: PersEx01PhysicsList.cc,v 1.2 1999/11/04 12:55:02 morita Exp $
|
||||
// $Id: PersEx01PhysicsList.cc,v 1.2.6.3 1999/12/14 07:07:43 gunter Exp $
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "G4Material.hh"
|
||||
#include "G4MaterialTable.hh"
|
||||
#include "G4ios.hh"
|
||||
#include <iomanip.h>
|
||||
#include "g4std/iomanip"
|
||||
|
||||
|
||||
PersEx01PhysicsList::PersEx01PhysicsList(): G4VUserPhysicsList()
|
||||
@@ -185,7 +185,7 @@ void PersEx01PhysicsList::SetCuts()
|
||||
{
|
||||
if (verboseLevel >0){
|
||||
G4cout << "PersEx01PhysicsList::SetCuts:";
|
||||
G4cout << "CutLength : " << defaultCutValue/mm << " (mm)" << endl;
|
||||
G4cout << "CutLength : " << defaultCutValue/mm << " (mm)" << G4endl;
|
||||
}
|
||||
|
||||
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
||||
|
||||
Reference in New Issue
Block a user