G4VDigitizerModule Class Reference

#include <G4VDigitizerModule.hh>


Public Member Functions

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

Protected Member Functions

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

Protected Attributes

G4DigiManagerDigiManager
G4String moduleName
std::vector< G4StringcollectionName
G4int verboseLevel


Detailed Description

Definition at line 48 of file G4VDigitizerModule.hh.


Constructor & Destructor Documentation

G4VDigitizerModule::G4VDigitizerModule ( G4String  modName  ) 

Definition at line 34 of file G4VDigitizerModule.cc.

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

00035 :verboseLevel(0)
00036 {
00037   moduleName = modName;
00038   DigiManager = G4DigiManager::GetDMpointer();
00039 }

G4VDigitizerModule::~G4VDigitizerModule (  )  [virtual]

Definition at line 41 of file G4VDigitizerModule.cc.

00042 {;}


Member Function Documentation

virtual void G4VDigitizerModule::Digitize (  )  [pure virtual]

Referenced by G4DigiManager::Digitize().

G4String G4VDigitizerModule::GetCollectionName ( G4int  i  )  const [inline]

Definition at line 80 of file G4VDigitizerModule.hh.

References collectionName.

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

00081     { return collectionName[i]; }

G4String G4VDigitizerModule::GetName (  )  const [inline]

Definition at line 82 of file G4VDigitizerModule.hh.

References moduleName.

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

00083     { return moduleName; }

G4int G4VDigitizerModule::GetNumberOfCollections (  )  const [inline]

Definition at line 78 of file G4VDigitizerModule.hh.

References collectionName.

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

00079     { return collectionName.size(); }

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

Definition at line 47 of file G4VDigitizerModule.cc.

References moduleName.

00048 { return (moduleName!=right.moduleName); }

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

Definition at line 44 of file G4VDigitizerModule.cc.

References moduleName.

00045 { return (moduleName==right.moduleName); }

void G4VDigitizerModule::SetVerboseLevel ( G4int  val  )  [inline]

Definition at line 84 of file G4VDigitizerModule.hh.

References verboseLevel.

00085     { verboseLevel = val; }

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

Definition at line 59 of file G4VDigitizerModule.cc.

References DigiManager, and G4DigiManager::SetDigiCollection().

00060 {
00061   DigiManager->SetDigiCollection(DCID,aDC);
00062 }

void G4VDigitizerModule::StoreDigiCollection ( G4VDigiCollection aDC  )  [protected]

Definition at line 50 of file G4VDigitizerModule.cc.

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

00051 {
00052   G4String DCnam = moduleName;
00053   DCnam += "/";
00054   DCnam += aDC->GetName();
00055   G4int DCID = DigiManager->GetDigiCollectionID(DCnam);
00056   if(DCID>=0) StoreDigiCollection(DCID,aDC);
00057 }


Field Documentation

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

Definition at line 74 of file G4VDigitizerModule.hh.

Referenced by GetCollectionName(), and GetNumberOfCollections().

G4DigiManager* G4VDigitizerModule::DigiManager [protected]

Definition at line 72 of file G4VDigitizerModule.hh.

Referenced by G4VDigitizerModule(), and StoreDigiCollection().

G4String G4VDigitizerModule::moduleName [protected]

Definition at line 73 of file G4VDigitizerModule.hh.

Referenced by G4VDigitizerModule(), GetName(), operator!=(), operator==(), and StoreDigiCollection().

G4int G4VDigitizerModule::verboseLevel [protected]

Definition at line 75 of file G4VDigitizerModule.hh.

Referenced by SetVerboseLevel().


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:40 2013 for Geant4 by  doxygen 1.4.7