Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
@@ -0,0 +1,50 @@
// 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: G4PDCofThisEvent.ddl,v 1.3 1999/12/02 16:10:19 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef G4PDCofThisEvent_h
#define G4PDCofThisEvent_h 1
#include "G4PersistentSchema.hh"
#include "G4PVDigitsCollection.hh"
#include "HepODBMS/odbms/HepODBMS.h"
class G4PDCofThisEvent
: public HepPersObj
{
public:
G4PDCofThisEvent();
~G4PDCofThisEvent();
void AddDigitsCollection(G4int DCID, HepRef(G4PVDigitsCollection) aDC);
private:
d_Varray< d_Ref<G4PVDigitsCollection> > DC;
public:
inline HepRef(G4PVDigitsCollection) GetDC(G4int i)
{ return DC[i]; }
inline G4int GetCapacity()
{ return DC.size(); }
inline G4int GetNumberOfCollections()
{
G4int n = 0;
for(int i=0;i<DC.size();i++)
{
if(! DC[i] ) n++;
}
return n;
}
};
#endif
@@ -0,0 +1,34 @@
// 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: G4PVDigit.ddl,v 1.2 1999/11/24 20:28:06 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef G4PVDigit_h
#define G4PVDigit_h 1
#include "G4PersistentSchema.hh"
#include "G4VDigi.hh"
#include "HepODBMS/odbms/HepODBMS.h"
class G4PVDigit
: public HepPersObj, public G4VDigi
{
public:
G4PVDigit();
virtual ~G4PVDigit();
int operator==(const G4PVDigit &right) const;
virtual void Draw();
virtual void Print();
};
#endif
@@ -0,0 +1,44 @@
// 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: G4PVDigitsCollection.ddl,v 1.4 1999/12/01 14:45:10 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef G4PVDigitsCollection_h
#define G4PVDigitsCollection_h 1
#include "globals.hh"
#include "G4PersistentTypes.hh"
#include "G4PersistentSchema.hh"
#include "HepODBMS/odbms/HepODBMS.h"
class G4PVDigitsCollection
: public HepPersObj
{
public:
G4PVDigitsCollection(G4String detName,G4String colNam);
~G4PVDigitsCollection();
int operator==(const G4PVDigitsCollection &right) const;
protected:
// Persistent Collection name
G4PString pcollectionName;
G4PString pDMname;
public:
inline G4String GetName()
{ return (G4String) pcollectionName; }
inline G4String GetDMname()
{ return (G4String) pDMname; }
};
#endif
@@ -0,0 +1,71 @@
// 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: G4PersistentDigitMan.hh,v 1.6 1999/11/29 20:11:16 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// class G4PersistentDigitMan
//
// A Class responsible for registring DigitsCollection
// during event tracking.
//
// The class is `singleton', with access via
// G4PersistentDigitMan::GetPersistentDigitMan.
//
// This class itself is not persistent-capable.
//
// Member functions:
// =================
// static G4PersistentDigitMan* GetPersistentDigitMan();
// static G4PersistentDigitMan* get_PersistentDigitManIfExist();
// Return ptr to singleton instance of the class.
//
// G4PersistentDigitMan();
// ~G4PersistentDigitMan();
//
// Member data:
// ============
// static G4PersistentDigitMan* fPersistentDigitMan
// Ptr to the unique instance of class
//
// History:
// 99.11.22 Y.Morita Initial version
#ifndef G4PersistentDigitMan_DDL
#define G4PersistentDigitMan_DDL 1
#include "HepODBMS/odbms/HepODBMS.h"
#include "G4VPersistentSubMan.hh"
#include "G4VPersistentSubDbMan.hh"
#include "G4PDCofThisEvent.hh"
class G4PersistentDigitMan
: public G4VPersistentSubMan, public G4VPersistentSubDbMan
{
public:
static G4PersistentDigitMan* GetPersistentDigitMan();
static G4PersistentDigitMan* get_PersistentDigitManIfExist();
G4PersistentDigitMan();
~G4PersistentDigitMan();
private:
static G4PersistentDigitMan * f_PersistentDigitMan;
HepRef(G4PDCofThisEvent) f_CurrentPDCofThisEvent;
public:
inline void SetCurrentPDCofThisEvent( HepRef(G4PDCofThisEvent) aPDC)
{ f_CurrentPDCofThisEvent = aPDC; };
inline HepRef(G4PDCofThisEvent) GetCurrentPDCofThisEvent()
{ return f_CurrentPDCofThisEvent; };
};
#endif