Import Geant4 1.0.0 source tree
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// 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.cc,v 1.3 1999/12/02 16:10:20 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
|
||||
#include "G4PDCofThisEvent.hh"
|
||||
|
||||
G4PDCofThisEvent::G4PDCofThisEvent()
|
||||
{
|
||||
DC.resize(10);
|
||||
}
|
||||
|
||||
G4PDCofThisEvent::~G4PDCofThisEvent()
|
||||
{;}
|
||||
|
||||
void G4PDCofThisEvent::AddDigitsCollection(G4int DCID,
|
||||
HepRef(G4PVDigitsCollection) aDC)
|
||||
{
|
||||
if(DCID>=0)
|
||||
{
|
||||
if(DCID>=DC.size()) DC.resize(DCID+1);
|
||||
DC[DCID] = aDC;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
// 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.cc,v 1.2 1999/11/24 20:28:07 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
|
||||
#include "G4PVDigit.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
G4PVDigit::G4PVDigit()
|
||||
{;}
|
||||
|
||||
G4PVDigit::~G4PVDigit()
|
||||
{;}
|
||||
|
||||
int G4PVDigit::operator==(const G4PVDigit &right) const
|
||||
{ return false; }
|
||||
|
||||
void G4PVDigit::Draw()
|
||||
{;}
|
||||
|
||||
void G4PVDigit::Print()
|
||||
{;}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
// 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.cc,v 1.3 1999/11/29 20:11:17 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
|
||||
// G4PVDigitsCollection
|
||||
|
||||
#include <assert.h>
|
||||
#include "G4PVDigitsCollection.hh"
|
||||
#include "G4PersistentDigitMan.hh"
|
||||
#include "G4PDCofThisEvent.hh"
|
||||
|
||||
G4PVDigitsCollection::G4PVDigitsCollection(G4String detName,G4String colNam)
|
||||
: pcollectionName(colNam), pDMname(detName)
|
||||
{;}
|
||||
|
||||
G4PVDigitsCollection::~G4PVDigitsCollection()
|
||||
{;}
|
||||
|
||||
int G4PVDigitsCollection::operator==(const G4PVDigitsCollection &right) const
|
||||
{
|
||||
return ((pcollectionName==right.pcollectionName)
|
||||
&&(pDMname==right.pDMname));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
// 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.cc,v 1.4 1999/11/28 21:54:14 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
// class G4PersistentDigitMan
|
||||
//
|
||||
// History:
|
||||
// 99.11.22 Y.Morita Initial version
|
||||
|
||||
#include "G4PersistentDigitMan.hh"
|
||||
|
||||
|
||||
G4PersistentDigitMan* G4PersistentDigitMan::f_PersistentDigitMan = NULL;
|
||||
|
||||
G4PersistentDigitMan* G4PersistentDigitMan::GetPersistentDigitMan()
|
||||
{
|
||||
if(!f_PersistentDigitMan)
|
||||
{
|
||||
f_PersistentDigitMan = new G4PersistentDigitMan;
|
||||
}
|
||||
return f_PersistentDigitMan;
|
||||
}
|
||||
|
||||
G4PersistentDigitMan* G4PersistentDigitMan::get_PersistentDigitManIfExist()
|
||||
{ return f_PersistentDigitMan; }
|
||||
|
||||
G4PersistentDigitMan::G4PersistentDigitMan()
|
||||
: f_CurrentPDCofThisEvent(NULL)
|
||||
{;}
|
||||
|
||||
G4PersistentDigitMan::~G4PersistentDigitMan()
|
||||
{;}
|
||||
|
||||
Reference in New Issue
Block a user