65 for(
G4int i=0;i<int(DMtable.size());i++)
66 {
delete DMtable[i]; }
75 for(
int j=0;j<int(DMtable.size());j++)
79 G4cout <<
"<" << DMname <<
"> has already been registered." <<
G4endl;
83 if( verboseLevel > 0 )
85 G4cout <<
"New DigitizerModule <" << DMname
86 <<
"> is registered." <<
G4endl;
88 DMtable.push_back(DM);
91 for(
int i=0;i<numberOfCollections;i++)
94 if( DCtable->
Registor(DMname,DCname) < 0 )
96 G4cout <<
"DigiCollection <" << DCname
97 <<
"> has already been registered with "
98 << DMname <<
" DigitizerModule." <<
G4endl;
100 else if( verboseLevel > 0 )
102 G4cout <<
"DigiCollection " << DCname
103 <<
" is registered. " <<
G4endl;
116 {
G4cout <<
"Unknown digitizer module <" << mName <<
">. Digitize() ignored." <<
G4endl; }
121 for(
G4int i=0;i<int(DMtable.size());i++)
123 if(DMtable[i]->GetName() == mName)
return DMtable[i];
135 if(evt==NULL)
return NULL;
138 if(HCE==NULL)
return NULL;
140 return HCE->
GetHC(HCID);
150 if(evt==NULL)
return NULL;
153 if(DCE==NULL)
return NULL;
155 return DCE->
GetDC(DCID);
167 {
G4cout <<
"< " << DCname <<
"> is ambegious." <<
G4endl; }
176 G4cout <<
"G4DigiManager::SetDigiCollection --- "
177 <<
"Event object is not available." <<
G4endl;
188 {
G4cout <<
"DCofThisEvent object is added to current G4Event." <<
G4endl; }
196 <<
"-th slot of G4DCofThisEvent." <<
G4endl;
203 for(
G4int i=0;i<int(DMtable.size());i++)
204 { DMtable[i]->SetVerboseLevel(val); }
209 for(
G4int i=0;i<int(DMtable.size());i++)
210 {
G4cout <<
" " << i <<
" : " << DMtable[i]->GetName() <<
G4endl; }
G4GLOB_DLL std::ostream G4cout
G4VDigiCollection * GetDC(G4int i) const
void AddDigiCollection(G4int DCID, G4VDigiCollection *aDC)
G4int Registor(G4String SDname, G4String DCname)
G4int GetCollectionID(G4String DCname) const
void AddNewModule(G4VDigitizerModule *DM)
G4int GetDigiCollectionID(G4String DCname)
const G4VHitsCollection * GetHitsCollection(G4int HCID, G4int eventID=0)
G4int GetHitsCollectionID(G4String HCname)
G4VDigitizerModule * FindDigitizerModule(G4String mName)
static G4DigiManager * GetDMpointer()
void SetVerboseLevel(G4int vl)
void Digitize(G4String mName)
void SetDigiCollection(G4int DCID, G4VDigiCollection *aDC)
const G4VDigiCollection * GetDigiCollection(G4int DCID, G4int eventID=0)
static G4DigiManager * GetDMpointerIfExist()
G4HCofThisEvent * GetHCofThisEvent() const
void SetDCofThisEvent(G4DCofThisEvent *value)
G4DCofThisEvent * GetDCofThisEvent() const
G4VHitsCollection * GetHC(G4int i)
const G4Event * GetPreviousEvent(G4int i) const
static G4RunManager * GetRunManager()
void SetDCtable(G4DCtable *DCtbl)
const G4Event * GetCurrentEvent() const
static G4SDManager * GetSDMpointer()
G4int GetCollectionID(G4String colName)
const G4String & GetName() const
G4int GetNumberOfCollections() const
virtual void Digitize()=0
G4String GetCollectionName(G4int i) const