Geant4-11
Public Member Functions | Protected Member Functions | Protected Attributes
G4VDigitizerModule Class Referenceabstract

#include <G4VDigitizerModule.hh>

Public Member Functions

virtual void Digitize ()=0
 
 G4VDigitizerModule (const G4String &modName)
 
G4String GetCollectionName (G4int i) const
 
G4String GetName () const
 
G4int GetNumberOfCollections () const
 
G4bool operator!= (const G4VDigitizerModule &right) const
 
G4bool operator== (const G4VDigitizerModule &right) const
 
void SetVerboseLevel (G4int val)
 
virtual ~G4VDigitizerModule ()
 

Protected Member Functions

void StoreDigiCollection (G4int DCID, G4VDigiCollection *aDC)
 
void StoreDigiCollection (G4VDigiCollection *aDC)
 

Protected Attributes

std::vector< G4StringcollectionName
 
G4DigiManagerDigiManager
 
G4String moduleName
 
G4int verboseLevel
 

Detailed Description

Definition at line 48 of file G4VDigitizerModule.hh.

Constructor & Destructor Documentation

◆ G4VDigitizerModule()

G4VDigitizerModule::G4VDigitizerModule ( const G4String modName)

Definition at line 35 of file G4VDigitizerModule.cc.

36 : verboseLevel(0)
37{
38 moduleName = modName;
40}
static G4DigiManager * GetDMpointer()
G4DigiManager * DigiManager

References DigiManager, G4DigiManager::GetDMpointer(), and moduleName.

◆ ~G4VDigitizerModule()

G4VDigitizerModule::~G4VDigitizerModule ( )
virtual

Definition at line 42 of file G4VDigitizerModule.cc.

43{;}

Member Function Documentation

◆ Digitize()

virtual void G4VDigitizerModule::Digitize ( )
pure virtual

Referenced by G4DigiManager::Digitize().

◆ GetCollectionName()

G4String G4VDigitizerModule::GetCollectionName ( G4int  i) const
inline

Definition at line 71 of file G4VDigitizerModule.hh.

72 { return collectionName[i]; }
std::vector< G4String > collectionName

References collectionName.

Referenced by G4DigiManager::AddNewModule(), and G4DCtable::GetCollectionID().

◆ GetName()

G4String G4VDigitizerModule::GetName ( ) const
inline

Definition at line 73 of file G4VDigitizerModule.hh.

74 { return moduleName; }

References moduleName.

Referenced by G4DigiManager::AddNewModule(), and G4DCtable::GetCollectionID().

◆ GetNumberOfCollections()

G4int G4VDigitizerModule::GetNumberOfCollections ( ) const
inline

Definition at line 69 of file G4VDigitizerModule.hh.

70 { return G4int(collectionName.size()); }
int G4int
Definition: G4Types.hh:85

References collectionName.

Referenced by G4DigiManager::AddNewModule(), and G4DCtable::GetCollectionID().

◆ operator!=()

G4bool G4VDigitizerModule::operator!= ( const G4VDigitizerModule right) const

Definition at line 50 of file G4VDigitizerModule.cc.

51{
52 return (moduleName!=right.moduleName);
53}

References moduleName.

◆ operator==()

G4bool G4VDigitizerModule::operator== ( const G4VDigitizerModule right) const

Definition at line 45 of file G4VDigitizerModule.cc.

46{
47 return (moduleName==right.moduleName);
48}

References moduleName.

◆ SetVerboseLevel()

void G4VDigitizerModule::SetVerboseLevel ( G4int  val)
inline

Definition at line 75 of file G4VDigitizerModule.hh.

76 { verboseLevel = val; }

References verboseLevel.

◆ StoreDigiCollection() [1/2]

void G4VDigitizerModule::StoreDigiCollection ( G4int  DCID,
G4VDigiCollection aDC 
)
protected

Definition at line 64 of file G4VDigitizerModule.cc.

65{
67}
void SetDigiCollection(G4int DCID, G4VDigiCollection *aDC)

References DigiManager, and G4DigiManager::SetDigiCollection().

◆ StoreDigiCollection() [2/2]

void G4VDigitizerModule::StoreDigiCollection ( G4VDigiCollection aDC)
protected

Definition at line 55 of file G4VDigitizerModule.cc.

56{
57 G4String DCnam = moduleName;
58 DCnam += "/";
59 DCnam += aDC->GetName();
61 if(DCID>=0) StoreDigiCollection(DCID,aDC);
62}
G4int GetDigiCollectionID(G4String DCname)
const G4String & GetName() const
void StoreDigiCollection(G4VDigiCollection *aDC)

References DigiManager, G4DigiManager::GetDigiCollectionID(), G4VDigiCollection::GetName(), moduleName, and StoreDigiCollection().

Referenced by StoreDigiCollection().

Field Documentation

◆ collectionName

std::vector<G4String> G4VDigitizerModule::collectionName
protected

Definition at line 87 of file G4VDigitizerModule.hh.

Referenced by GetCollectionName(), and GetNumberOfCollections().

◆ DigiManager

G4DigiManager* G4VDigitizerModule::DigiManager
protected

Definition at line 85 of file G4VDigitizerModule.hh.

Referenced by G4VDigitizerModule(), and StoreDigiCollection().

◆ moduleName

G4String G4VDigitizerModule::moduleName
protected

◆ verboseLevel

G4int G4VDigitizerModule::verboseLevel
protected

Definition at line 88 of file G4VDigitizerModule.hh.

Referenced by SetVerboseLevel().


The documentation for this class was generated from the following files: