Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
@@ -0,0 +1,41 @@
// This code implementation is the intellectual property of
// the RD44 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: G4DCofThisEvent.cc,v 2.1 1998/07/12 02:53:39 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
//
#include "G4DCofThisEvent.hh"
G4Allocator<G4DCofThisEvent> anDCoTHAllocator;
G4DCofThisEvent::G4DCofThisEvent()
{
DC = new RWTPtrOrderedVector<G4VDigiCollection>;
}
G4DCofThisEvent::G4DCofThisEvent(G4int cap)
{
DC = new RWTPtrOrderedVector<G4VDigiCollection>;
for(int i=0;i<cap;i++)
{
DC->insert((G4VDigiCollection*)NULL);
}
}
G4DCofThisEvent::~G4DCofThisEvent()
{
DC->clearAndDestroy();
delete DC;
}
void G4DCofThisEvent::AddDigiCollection(G4int DCID,G4VDigiCollection * aDC)
{
if(DCID>=0 && DCID<DC->entries())
{ (*DC)[DCID] = aDC; }
}