#include <G4DigiManager.hh>
Definition at line 52 of file G4DigiManager.hh.
◆ ~G4DigiManager()
G4DigiManager::~G4DigiManager |
( |
| ) |
|
Definition at line 62 of file G4DigiManager.cc.
63{
64
65 for(
G4int i=0;i<int(DMtable.size());i++)
66 { delete DMtable[i]; }
67 DMtable.clear();
68 delete DCtable;
69 delete theMessenger;
70}
◆ G4DigiManager() [1/2]
◆ G4DigiManager() [2/2]
G4DigiManager::G4DigiManager |
( |
| ) |
|
|
protected |
Definition at line 54 of file G4DigiManager.cc.
54 :verboseLevel(0)
55{
60}
static G4RunManager * GetRunManager()
static G4SDManager * GetSDMpointer()
Referenced by GetDMpointer().
◆ AddNewModule()
Definition at line 72 of file G4DigiManager.cc.
73{
75 for(int j=0;j<int(DMtable.size());j++)
76 {
77 if(DMtable[j]==DM)
78 {
79 G4cout <<
"<" << DMname <<
"> has already been registered." <<
G4endl;
80 return;
81 }
82 }
83 if( verboseLevel > 0 )
84 {
85 G4cout <<
"New DigitizerModule <" << DMname
86 <<
"> is registered." <<
G4endl;
87 }
88 DMtable.push_back(DM);
89
91 for(int i=0;i<numberOfCollections;i++)
92 {
94 if( DCtable->
Registor(DMname,DCname) < 0 )
95 {
96 G4cout <<
"DigiCollection <" << DCname
97 << "> has already been registered with "
98 << DMname <<
" DigitizerModule." <<
G4endl;
99 }
100 else if( verboseLevel > 0 )
101 {
102 G4cout <<
"DigiCollection " << DCname
103 <<
" is registered. " <<
G4endl;
104 }
105 }
106
108}
G4GLOB_DLL std::ostream G4cout
G4int Registor(G4String SDname, G4String DCname)
void SetDCtable(G4DCtable *DCtbl)
G4int GetNumberOfCollections() const
G4String GetCollectionName(G4int i) const
◆ Digitize()
void G4DigiManager::Digitize |
( |
G4String | mName | ) |
|
Definition at line 110 of file G4DigiManager.cc.
111{
113 if(aDM)
115 else
116 {
G4cout <<
"Unknown digitizer module <" << mName <<
">. Digitize() ignored." <<
G4endl; }
117}
G4VDigitizerModule * FindDigitizerModule(G4String mName)
virtual void Digitize()=0
Referenced by G4DMmessenger::SetNewValue().
◆ FindDigitizerModule()
Definition at line 119 of file G4DigiManager.cc.
120{
121 for(
G4int i=0;i<int(DMtable.size());i++)
122 {
123 if(DMtable[i]->GetName() == mName) return DMtable[i];
124 }
125 return NULL;
126}
Referenced by Digitize().
◆ GetCollectionCapacity()
G4int G4DigiManager::GetCollectionCapacity |
( |
| ) |
const |
|
inline |
◆ GetDCtable()
G4DCtable * G4DigiManager::GetDCtable |
( |
| ) |
const |
|
inline |
◆ GetDigiCollection()
Definition at line 143 of file G4DigiManager.cc.
144{
146 if(eventID==0)
148 else
150 if(evt==NULL) return NULL;
151
153 if(DCE==NULL) return NULL;
154
155 return DCE->
GetDC(DCID);
156}
G4VDigiCollection * GetDC(G4int i) const
G4DCofThisEvent * GetDCofThisEvent() const
const G4Event * GetPreviousEvent(G4int i) const
const G4Event * GetCurrentEvent() const
◆ GetDigiCollectionID()
◆ GetDMpointer()
◆ GetDMpointerIfExist()
◆ GetHitsCollection()
Definition at line 128 of file G4DigiManager.cc.
129{
131 if(eventID==0)
133 else
135 if(evt==NULL) return NULL;
136
138 if(HCE==NULL) return NULL;
139
140 return HCE->
GetHC(HCID);
141}
G4HCofThisEvent * GetHCofThisEvent() const
G4VHitsCollection * GetHC(G4int i)
◆ GetHitsCollectionID()
Definition at line 158 of file G4DigiManager.cc.
159{
161}
G4int GetCollectionID(G4String colName)
◆ GetModuleCapacity()
G4int G4DigiManager::GetModuleCapacity |
( |
| ) |
const |
|
inline |
◆ GetVerboseLevel()
G4int G4DigiManager::GetVerboseLevel |
( |
| ) |
const |
|
inline |
◆ List()
void G4DigiManager::List |
( |
| ) |
const |
◆ operator=()
◆ RestoreDCtable()
void G4DigiManager::RestoreDCtable |
( |
G4DCtable * | dc | ) |
|
|
inline |
Definition at line 112 of file G4DigiManager.hh.
113 {
114 if(DCtable) delete DCtable;
115 DCtable = dc;
116 }
◆ SetDigiCollection()
Definition at line 171 of file G4DigiManager.cc.
172{
174 if(consEvt==NULL)
175 {
176 G4cout <<
"G4DigiManager::SetDigiCollection --- "
177 <<
"Event object is not available." <<
G4endl;
178 return;
179 }
180
183 if(DCE==NULL)
184 {
187 if(verboseLevel>0)
188 {
G4cout <<
"DCofThisEvent object is added to current G4Event." <<
G4endl; }
189 }
190
192
193 if(verboseLevel>0)
194 {
196 <<
"-th slot of G4DCofThisEvent." <<
G4endl;
197 }
198}
void AddDigiCollection(G4int DCID, G4VDigiCollection *aDC)
void SetDCofThisEvent(G4DCofThisEvent *value)
const G4String & GetName() const
Referenced by G4VDigitizerModule::StoreDigiCollection().
◆ SetVerboseLevel()
void G4DigiManager::SetVerboseLevel |
( |
G4int | vl | ) |
|
The documentation for this class was generated from the following files: