Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user