#include <Doxymodules_biasing.h>
Definition at line 22 of file Doxymodules_biasing.h.
◆ B01Run()
B01Run::B01Run |
( |
const std::vector< G4String > |
mfdName | ) |
|
Definition at line 69 of file B01Run.cc.
70{
72
73
74
75
76 G4int Nmfd = mfdName.size();
77 for ( G4int idet = 0; idet < Nmfd ; idet++){
79
82
83 if ( mfd ){
84
85 for (G4int icol = 0; icol < mfd->GetNumberOfPrimitives(); icol++){
86
88
89
90
91 G4String collectionName = scorer->GetName();
92 G4String fullCollectionName = detName+
"/"+collectionName;
93 G4int collectionID = SDman->GetCollectionID(fullCollectionName);
94
95 if ( collectionID >= 0 ){
96 G4cout << "++ "<<fullCollectionName<< " id " << collectionID
97 << G4endl;
98
99
101 fCollID.push_back(collectionID);
103 ,collectionName));
104 }else{
105 G4cout << "** collection " << fullCollectionName
106 << " not found. "<<G4endl;
107 }
108 }
109 }
110 }
111}
std::vector< G4int > fCollID
std::vector< G4THitsMap< G4double > * > fRunMap
std::vector< G4String > fCollName
◆ ~B01Run()
Definition at line 117 of file B01Run.cc.
118{
119
121 for ( G4int i = 0; i < Nmap; i++){
123 }
127}
◆ RecordEvent()
void B01Run::RecordEvent |
( |
const G4Event * |
aEvent | ) |
|
|
virtual |
Definition at line 134 of file B01Run.cc.
135{
136 numberOfEvent++;
137
138
139
140
142 if (!HCE) return;
143
144
145
146
148 for ( G4int i = 0; i < Ncol ; i++ ){
152 }else{
153 G4cout <<" Error EvtMap Not Found "<< i << G4endl;
154 }
155 if ( EvtMap ) {
156
158
159 }
160 }
161
162
163}
◆ GetNumberOfHitsMap()
G4int B01Run::GetNumberOfHitsMap |
( |
| ) |
const |
|
inline |
◆ GetHitsMap() [1/3]
G4THitsMap< G4double > * B01Run::GetHitsMap |
( |
G4int |
i | ) |
|
|
inline |
◆ GetHitsMap() [2/3]
Definition at line 172 of file B01Run.cc.
173 {
174 G4String fullName = detName+
"/"+colName;
176}
G4THitsMap< G4double > * GetHitsMap(G4int i)
◆ GetHitsMap() [3/3]
Definition at line 182 of file B01Run.cc.
182 {
184 for ( G4int i = 0; i < Ncol; i++){
187 }
188 }
189 return NULL;
190}
◆ DumpAllScorer()
void B01Run::DumpAllScorer |
( |
| ) |
|
Definition at line 196 of file B01Run.cc.
196 {
197
198
200
201 for ( G4int i = 0; i < n ; i++ ){
203 if ( RunMap ) {
204 G4cout << " PrimitiveScorer RUN "
205 << RunMap->GetSDname() <<","<< RunMap->GetName() << G4endl;
206 G4cout << " Number of entries " << RunMap->entries() << G4endl;
207 std::map<G4int,G4double*>::iterator itr = RunMap->GetMap()->begin();
208 for(; itr != RunMap->GetMap()->end(); itr++) {
209 G4cout << " copy no.: " << itr->first
210 << " Run Value : " << *(itr->second)
211 << G4endl;
212 }
213 }
214 }
215}
G4int GetNumberOfHitsMap() const
◆ Merge()
void B01Run::Merge |
( |
const G4Run * |
aRun | ) |
|
|
virtual |
Definition at line 219 of file B01Run.cc.
220{
221 const B01Run * localRun =
static_cast<const B01Run *
>(aRun);
222
223
224
225 G4int nCol = localRun->
fCollID.size();
226 for ( G4int i = 0; i < nCol ; i++ ){
227 if ( localRun->
fCollID[i] >= 0 ){
229 }
230 }
231
232 G4Run::Merge(aRun);
233}
◆ fCollName
◆ fCollID
std::vector<G4int> B01Run::fCollID |
|
private |
◆ fRunMap
std::vector<G4THitsMap<G4double>*> B01Run::fRunMap |
|
private |
The documentation for this class was generated from the following files: