Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
// 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: G4VDigitizerModule.cc,v 2.1 1998/07/12 03:08:28 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
|
||||
#include "G4VDigitizerModule.hh"
|
||||
#include "G4VDigiCollection.hh"
|
||||
#include "G4DigiManager.hh"
|
||||
|
||||
G4VDigitizerModule::G4VDigitizerModule(G4String modName)
|
||||
:verboseLevel(0)
|
||||
{
|
||||
moduleName = modName;
|
||||
DigiManager = G4DigiManager::GetDMpointer();
|
||||
}
|
||||
|
||||
G4VDigitizerModule::~G4VDigitizerModule()
|
||||
{;}
|
||||
|
||||
int G4VDigitizerModule::operator==(const G4VDigitizerModule &right) const
|
||||
{ return (moduleName==right.moduleName); }
|
||||
|
||||
int G4VDigitizerModule::operator!=(const G4VDigitizerModule &right) const
|
||||
{ return (moduleName!=right.moduleName); }
|
||||
|
||||
void G4VDigitizerModule::StoreDigiCollection(G4VDigiCollection* aDC)
|
||||
{
|
||||
G4String DCnam = moduleName;
|
||||
DCnam += "/";
|
||||
DCnam += aDC->GetName();
|
||||
G4int DCID = DigiManager->GetDigiCollectionID(DCnam);
|
||||
if(DCID>=0) StoreDigiCollection(DCID,aDC);
|
||||
}
|
||||
|
||||
void G4VDigitizerModule::StoreDigiCollection(G4int DCID,G4VDigiCollection* aDC)
|
||||
{
|
||||
DigiManager->SetDigiCollection(DCID,aDC);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user