Import Geant4 3.1.0 source tree
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4CollectionNameVector.hh,v 1.1 2001/02/08 06:08:53 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
|
||||
#ifndef G4CollectionNameVector_H
|
||||
#define G4CollectionNameVector_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "g4std/vector"
|
||||
|
||||
class G4CollectionNameVector : public G4std::vector<G4String>
|
||||
{
|
||||
public:
|
||||
G4CollectionNameVector() {;}
|
||||
virtual ~G4CollectionNameVector() {;}
|
||||
|
||||
void insert(G4String s) { push_back(s); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,15 +5,16 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4HCtable.hh,v 1.2.2.1.2.1 1999/12/07 20:47:41 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4HCtable.hh,v 1.5 2001/02/08 06:07:10 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
|
||||
#ifndef G4HCtable_H
|
||||
#define G4HCtable_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
//#include "g4rw/tvordvec.h"
|
||||
#include "g4std/vector"
|
||||
|
||||
// class description:
|
||||
//
|
||||
@@ -38,12 +39,12 @@ class G4HCtable
|
||||
G4int GetCollectionID(G4String HCname);
|
||||
|
||||
private:
|
||||
G4RWTValOrderedVector<G4String> SDlist;
|
||||
G4RWTValOrderedVector<G4String> HClist;
|
||||
G4std::vector<G4String> SDlist;
|
||||
G4std::vector<G4String> HClist;
|
||||
|
||||
public:
|
||||
inline G4int entries() const
|
||||
{ return HClist.entries(); }
|
||||
{ return HClist.size(); }
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SDManager.hh,v 1.2.4.1 1999/12/07 20:47:41 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4SDManager.hh,v 1.3 1999/12/15 14:49:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
|
||||
#ifndef G4SDManager_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SDStructure.hh,v 1.2.2.1.2.1 1999/12/07 20:47:41 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4SDStructure.hh,v 1.5 2001/02/08 06:07:11 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
|
||||
#ifndef G4SDStructure_h
|
||||
@@ -17,7 +17,8 @@
|
||||
// G4VSensitiveDetector
|
||||
#include "G4VSensitiveDetector.hh"
|
||||
// G4RWTPtrOrderedVector
|
||||
#include "g4rw/tpordvec.h"
|
||||
//#include "g4rw/tpordvec.h"
|
||||
#include "g4std/vector"
|
||||
|
||||
class G4HCofThisEvent;
|
||||
|
||||
@@ -48,8 +49,8 @@ class G4SDStructure
|
||||
G4String ExtractDirName(G4String aPath);
|
||||
|
||||
private:
|
||||
G4RWTPtrOrderedVector<G4SDStructure> structure;
|
||||
G4RWTPtrOrderedVector<G4VSensitiveDetector> detector;
|
||||
G4std::vector<G4SDStructure*> structure;
|
||||
G4std::vector<G4VSensitiveDetector*> detector;
|
||||
G4String pathName;
|
||||
G4String dirName;
|
||||
G4int verboseLevel;
|
||||
@@ -58,10 +59,10 @@ class G4SDStructure
|
||||
inline void SetVerboseLevel(G4int vl)
|
||||
{
|
||||
verboseLevel = vl;
|
||||
for(int i=0; i<structure.entries(); i++)
|
||||
{ structure(i)->SetVerboseLevel(vl); }
|
||||
for(int j=0; j<detector.entries(); j++)
|
||||
{ detector(j)->SetVerboseLevel(vl); }
|
||||
for(int i=0; i<structure.size(); i++)
|
||||
{ structure[i]->SetVerboseLevel(vl); }
|
||||
for(int j=0; j<detector.size(); j++)
|
||||
{ detector[j]->SetVerboseLevel(vl); }
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SDmessenger.hh,v 1.2.4.1 1999/12/07 20:47:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4SDmessenger.hh,v 1.3 1999/12/15 14:49:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
|
||||
#ifndef G4SDmessenger_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SensitiveVolumeList.hh,v 1.2.2.1.2.1 1999/12/07 20:47:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4SensitiveVolumeList.hh,v 1.5 2001/02/08 06:07:11 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file --- Copyright CERN 1996
|
||||
@@ -22,8 +22,9 @@
|
||||
#ifndef G4SensitiveVolumeList_h
|
||||
#define G4SensitiveVolumeList_h 1
|
||||
|
||||
#include "g4rw/tpordvec.h"
|
||||
#include "g4rw/tvordvec.h"
|
||||
//#include "g4rw/tpordvec.h"
|
||||
//#include "g4rw/tvordvec.h"
|
||||
#include "g4std/vector"
|
||||
#include "G4LogicalVolume.hh"
|
||||
#include "G4VPhysicalVolume.hh"
|
||||
|
||||
@@ -60,11 +61,11 @@ class G4SensitiveVolumeList
|
||||
G4bool CheckLV(const G4LogicalVolume *lvp) const;
|
||||
|
||||
//Get and Set Operations for Has Relationships
|
||||
const G4RWTPtrOrderedVector<G4VPhysicalVolume>& GetThePhysicalVolumeList() const;
|
||||
void SetThePhysicalVolumeList(const G4RWTPtrOrderedVector<G4VPhysicalVolume> value);
|
||||
const G4std::vector<G4VPhysicalVolume*>& GetThePhysicalVolumeList() const;
|
||||
void SetThePhysicalVolumeList(const G4std::vector<G4VPhysicalVolume*> value);
|
||||
|
||||
const G4RWTPtrOrderedVector<G4LogicalVolume>& GetTheLogicalVolumeList() const;
|
||||
void SetTheLogicalVolumeList(const G4RWTPtrOrderedVector<G4LogicalVolume> value);
|
||||
const G4std::vector<G4LogicalVolume*>& GetTheLogicalVolumeList() const;
|
||||
void SetTheLogicalVolumeList(const G4std::vector<G4LogicalVolume*> value);
|
||||
|
||||
|
||||
|
||||
@@ -72,8 +73,8 @@ class G4SensitiveVolumeList
|
||||
|
||||
//Data Members for Has Relationships
|
||||
|
||||
G4RWTPtrOrderedVector<G4VPhysicalVolume> thePhysicalVolumeList;
|
||||
G4RWTPtrOrderedVector<G4LogicalVolume> theLogicalVolumeList;
|
||||
G4std::vector<G4VPhysicalVolume*> thePhysicalVolumeList;
|
||||
G4std::vector<G4LogicalVolume*> theLogicalVolumeList;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SensitiveVolumeList.icc,v 1.1.8.1.2.1 1999/12/07 20:47:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4SensitiveVolumeList.icc,v 1.4 2001/02/08 06:07:11 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
// -----------------------------------------------------------
|
||||
// Inline functions of GEANT 4 class header file.
|
||||
@@ -22,14 +22,14 @@
|
||||
|
||||
//Get and Set Operations for Has Relationships
|
||||
|
||||
inline const G4RWTPtrOrderedVector<G4VPhysicalVolume>& G4SensitiveVolumeList::get_the_G4VPhysicalVolume_list() const { return the_G4VPhysicalVolume_list; }
|
||||
inline const G4std::vector<G4VPhysicalVolume*>& G4SensitiveVolumeList::get_the_G4VPhysicalVolume_list() const { return the_G4VPhysicalVolume_list; }
|
||||
|
||||
inline void G4SensitiveVolumeList::set_the_G4VPhysicalVolume_list(const G4RWTPtrOrderedVector<G4VPhysicalVolume> value) { the_G4VPhysicalVolume_list = value; }
|
||||
inline void G4SensitiveVolumeList::set_the_G4VPhysicalVolume_list(const G4std::vector<G4VPhysicalVolume*> value) { the_G4VPhysicalVolume_list = value; }
|
||||
|
||||
|
||||
inline const G4RWTPtrOrderedVector<G4LogicalVolume>& G4SensitiveVolumeList::get_the_G4LogicalVolume() const { return the_G4LogicalVolume_list; }
|
||||
inline const G4std::vector<G4LogicalVolume*>& G4SensitiveVolumeList::get_the_G4LogicalVolume() const { return the_G4LogicalVolume_list; }
|
||||
|
||||
inline void G4SensitiveVolumeList::set_the_G4LogicalVolume(const G4RWTPtrOrderedVector<G4LogicalVolume> value) { the_G4LogicalVolume_list = value; }
|
||||
inline void G4SensitiveVolumeList::set_the_G4LogicalVolume(const G4std::vector<G4LogicalVolume*> value) { the_G4LogicalVolume_list = value; }
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VReadOutGeometry.hh,v 1.1.10.1 1999/12/07 20:47:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4VReadOutGeometry.hh,v 1.2 1999/12/15 14:49:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VSensitiveDetector.hh,v 1.2.2.1.2.1 1999/12/07 20:47:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4VSensitiveDetector.hh,v 1.5 2001/02/08 06:07:11 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
|
||||
#ifndef G4VSensitiveDetector_h
|
||||
@@ -17,7 +17,8 @@
|
||||
#include "G4HCofThisEvent.hh"
|
||||
#include "G4VReadOutGeometry.hh"
|
||||
#include "G4TouchableHistory.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
//#include "g4rw/tvordvec.h"
|
||||
#include "G4CollectionNameVector.hh"
|
||||
|
||||
// class description:
|
||||
//
|
||||
@@ -77,7 +78,7 @@ class G4VSensitiveDetector
|
||||
// This is a utility method which returns the hits collection ID of the
|
||||
// "i"-th collection. "i" is the order (starting with zero) of the collection
|
||||
// whose name is stored to the collectionName protected vector.
|
||||
G4RWTValOrderedVector<G4String> collectionName;
|
||||
G4CollectionNameVector collectionName;
|
||||
// This protected name vector must be filled at the constructor of the user's
|
||||
// concrete class for registering the name(s) of hits collection(s) being
|
||||
// created by this particular sensitive detector.
|
||||
@@ -115,7 +116,7 @@ class G4VSensitiveDetector
|
||||
|
||||
public:
|
||||
inline G4int GetNumberOfCollections()
|
||||
{ return collectionName.entries(); }
|
||||
{ return collectionName.size(); }
|
||||
inline G4String GetCollectionName(G4int id)
|
||||
{ return collectionName[id]; }
|
||||
inline void SetVerboseLevel(G4int vl)
|
||||
|
||||
Reference in New Issue
Block a user