Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
// 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: G4DCtable.hh,v 2.1 1998/07/12 03:08:23 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
|
||||
#ifndef G4DCtable_H
|
||||
#define G4DCtable_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include <rw/tvordvec.h>
|
||||
|
||||
class G4DCtable
|
||||
{
|
||||
public:
|
||||
G4DCtable();
|
||||
~G4DCtable();
|
||||
|
||||
public:
|
||||
G4int Registor(G4String SDname,G4String DCname);
|
||||
G4int GetCollectionID(G4String DCname);
|
||||
|
||||
private:
|
||||
RWTValOrderedVector<G4String> DMlist;
|
||||
RWTValOrderedVector<G4String> DClist;
|
||||
|
||||
public:
|
||||
inline G4int entries() const
|
||||
{ return DClist.entries(); }
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
// 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: G4DMmessenger.hh,v 2.1 1998/07/12 03:08:24 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
|
||||
#ifndef G4DMmessenger_h
|
||||
#define G4DMmessenger_h 1
|
||||
|
||||
#include "G4UImessenger.hh"
|
||||
|
||||
class G4DigiManager;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithAnInteger;
|
||||
class G4UIcmdWithoutParameter;
|
||||
class G4UIcmdWithAString;
|
||||
|
||||
class G4DMmessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
G4DMmessenger(G4DigiManager * DigiManager);
|
||||
~G4DMmessenger();
|
||||
void SetNewValue(G4UIcommand * command,G4String newValues);
|
||||
|
||||
private:
|
||||
G4DigiManager * fDMan;
|
||||
G4UIdirectory* digiDir;
|
||||
G4UIcmdWithoutParameter* listCmd;
|
||||
G4UIcmdWithAString* digiCmd;
|
||||
G4UIcmdWithAnInteger* verboseCmd;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
// 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: G4DigiManager.hh,v 2.1 1998/07/12 03:08:25 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
|
||||
#ifndef G4DigiManager_h
|
||||
#define G4DigiManager_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
class G4Event;
|
||||
#include "G4VDigitizerModule.hh"
|
||||
class G4VHitsCollection;
|
||||
class G4VDigiCollection;
|
||||
class G4DMmessenger;
|
||||
#include "G4DCtable.hh"
|
||||
class G4RunManager;
|
||||
class G4SDManager;
|
||||
#include <rw/tpordvec.h>
|
||||
|
||||
class G4DigiManager
|
||||
{
|
||||
public:
|
||||
static G4DigiManager* GetDMpointer();
|
||||
static G4DigiManager* GetDMpointerIfExist();
|
||||
|
||||
protected:
|
||||
G4DigiManager();
|
||||
|
||||
public:
|
||||
~G4DigiManager();
|
||||
void AddNewModule(G4VDigitizerModule* DM);
|
||||
void Digitize(G4String mName);
|
||||
G4VDigitizerModule* FindDigitizerModule(G4String mName);
|
||||
const G4VHitsCollection* GetHitsCollection(G4int HCID, G4int eventID = 0);
|
||||
const G4VDigiCollection* GetDigiCollection(G4int DCID, G4int eventID = 0);
|
||||
G4int GetHitsCollectionID(G4String HCname);
|
||||
G4int GetDigiCollectionID(G4String DCname);
|
||||
void SetDigiCollection(G4int DCID, G4VDigiCollection* aDC);
|
||||
void SetVerboseLevel(G4int vl);
|
||||
void List() const;
|
||||
|
||||
private:
|
||||
static G4DigiManager * fDManager;
|
||||
G4int verboseLevel;
|
||||
RWTPtrOrderedVector<G4VDigitizerModule> DMtable;
|
||||
G4DCtable* DCtable;
|
||||
G4DMmessenger* theMessenger;
|
||||
G4RunManager* runManager;
|
||||
G4SDManager* SDManager;
|
||||
|
||||
public:
|
||||
inline G4int GetVerboseLevel() const
|
||||
{ return verboseLevel; }
|
||||
inline G4int GetCollectionCapacity() const
|
||||
{ return DCtable->entries(); }
|
||||
inline G4int GetModuleCapacity() const
|
||||
{ return DMtable.entries(); }
|
||||
inline G4DCtable* GetDCtable() const
|
||||
{ return DCtable; }
|
||||
inline void RestoreDCtable(G4DCtable* dc)
|
||||
{
|
||||
if(DCtable) delete DCtable;
|
||||
DCtable = dc;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
// 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.hh,v 2.1 1998/07/12 03:08:26 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
|
||||
#ifndef G4VDigitizerModule_H
|
||||
#define G4VDigitizerModule_H 1
|
||||
|
||||
class G4DigiManager;
|
||||
class G4VDigiCollection;
|
||||
#include "globals.hh"
|
||||
#include <rw/tvordvec.h>
|
||||
|
||||
class G4VDigitizerModule
|
||||
{
|
||||
public:
|
||||
G4VDigitizerModule(G4String modName);
|
||||
virtual ~G4VDigitizerModule();
|
||||
int operator==(const G4VDigitizerModule &right) const;
|
||||
int operator!=(const G4VDigitizerModule &right) const;
|
||||
|
||||
public:
|
||||
virtual void Digitize() = 0;
|
||||
|
||||
protected:
|
||||
void StoreDigiCollection(G4VDigiCollection* aDC);
|
||||
void StoreDigiCollection(G4int DCID,G4VDigiCollection* aDC);
|
||||
|
||||
protected:
|
||||
G4DigiManager* DigiManager;
|
||||
G4String moduleName;
|
||||
RWTValOrderedVector<G4String> collectionName;
|
||||
G4int verboseLevel;
|
||||
|
||||
public:
|
||||
inline G4int GetNumberOfCollections() const
|
||||
{ return collectionName.entries(); }
|
||||
inline G4String GetCollectionName(G4int i) const
|
||||
{ return collectionName[i]; }
|
||||
inline G4String GetName() const
|
||||
{ return moduleName; }
|
||||
inline void SetVerboseLevel(G4int val)
|
||||
{ verboseLevel = val; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user