#include <G4DigiManager.hh>
Definition at line 54 of file G4DigiManager.hh.
G4DigiManager::G4DigiManager |
( |
| ) |
|
|
protected |
Definition at line 55 of file G4DigiManager.cc.
static G4RunManager * GetRunManager()
static G4SDManager * GetSDMpointer()
G4DigiManager::~G4DigiManager |
( |
| ) |
|
Definition at line 63 of file G4DigiManager.cc.
66 for(
G4int i=0;i<
int(DMtable.size());i++)
67 {
delete DMtable[i]; }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
Definition at line 73 of file G4DigiManager.cc.
76 for(
int j=0;j<
int(DMtable.size());j++)
80 G4cout <<
"<" << DMname <<
"> has already been registored." <<
G4endl;
84 if( verboseLevel > 0 )
86 G4cout <<
"New DigitizerModule <" << DMname
87 <<
"> is registored." <<
G4endl;
89 DMtable.push_back(DM);
92 for(
int i=0;i<numberOfCollections;i++)
95 if( DCtable->
Registor(DMname,DCname) < 0 )
97 G4cout <<
"DigiCollection <" << DCname
98 <<
"> has already been registored with "
99 << DMname <<
" DigitizerModule." <<
G4endl;
101 else if( verboseLevel > 0 )
103 G4cout <<
"DigiCollection " << DCname
104 <<
" is registored. " <<
G4endl;
G4int GetNumberOfCollections() const
G4GLOB_DLL std::ostream G4cout
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
G4int Registor(G4String SDname, G4String DCname)
void SetDCtable(G4DCtable *DCtbl)
G4String GetCollectionName(G4int i) const
Definition at line 111 of file G4DigiManager.cc.
117 {
G4cout <<
"Unknown digitizer module <" << mName <<
">. Digitize() ignored." <<
G4endl; }
virtual void Digitize()=0
G4GLOB_DLL std::ostream G4cout
G4VDigitizerModule * FindDigitizerModule(G4String mName)
Definition at line 120 of file G4DigiManager.cc.
122 for(
G4int i=0;i<
int(DMtable.size());i++)
124 if(DMtable[i]->GetName() == mName)
return DMtable[i];
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
G4int G4DigiManager::GetCollectionCapacity |
( |
| ) |
const |
|
inline |
G4DCtable* G4DigiManager::GetDCtable |
( |
| ) |
const |
|
inline |
Definition at line 144 of file G4DigiManager.cc.
151 if(evt==NULL)
return NULL;
154 if(DCE==NULL)
return NULL;
156 return DCE->
GetDC(DCID);
const G4Event * GetPreviousEvent(G4int i) const
G4VDigiCollection * GetDC(G4int i) const
G4DCofThisEvent * GetDCofThisEvent() const
const G4Event * GetCurrentEvent() const
Definition at line 164 of file G4DigiManager.cc.
168 {
G4cout <<
"< " << DCname <<
"> is ambegious." <<
G4endl; }
G4GLOB_DLL std::ostream G4cout
G4int GetCollectionID(G4String DCname) const
Definition at line 129 of file G4DigiManager.cc.
136 if(evt==NULL)
return NULL;
139 if(HCE==NULL)
return NULL;
141 return HCE->
GetHC(HCID);
G4VHitsCollection * GetHC(G4int i)
const G4Event * GetPreviousEvent(G4int i) const
G4HCofThisEvent * GetHCofThisEvent() const
const G4Event * GetCurrentEvent() const
G4int G4DigiManager::GetModuleCapacity |
( |
| ) |
const |
|
inline |
G4int G4DigiManager::GetVerboseLevel |
( |
| ) |
const |
|
inline |
void G4DigiManager::List |
( |
| ) |
const |
Definition at line 208 of file G4DigiManager.cc.
210 for(
G4int i=0;i<
int(DMtable.size());i++)
211 {
G4cout <<
" " << i <<
" : " << DMtable[i]->GetName() <<
G4endl; }
G4GLOB_DLL std::ostream G4cout
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
Definition at line 172 of file G4DigiManager.cc.
177 G4cout <<
"G4DigiManager::SetDigiCollection --- "
178 <<
"Event object is not available." <<
G4endl;
189 {
G4cout <<
"DCofThisEvent object is added to current G4Event." <<
G4endl; }
197 <<
"-th slot of G4DCofThisEvent." <<
G4endl;
G4GLOB_DLL std::ostream G4cout
void SetDCofThisEvent(G4DCofThisEvent *value)
void AddDigiCollection(G4int DCID, G4VDigiCollection *aDC)
G4DCofThisEvent * GetDCofThisEvent() const
const G4Event * GetCurrentEvent() const
void G4DigiManager::SetVerboseLevel |
( |
G4int |
vl | ) |
|
Definition at line 201 of file G4DigiManager.cc.
204 for(
G4int i=0;i<
int(DMtable.size());i++)
205 { DMtable[i]->SetVerboseLevel(val); }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
The documentation for this class was generated from the following files: