#include <Doxymodules_biasing.h>
Definition at line 39 of file Doxymodules_biasing.h.
◆ B02Run()
B02Run::B02Run |
( |
const std::vector< G4String > |
mfdName | ) |
|
Definition at line 69 of file B02Run.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< G4THitsMap< G4double > * > fRunMap
std::vector< G4int > fCollID
std::vector< G4String > fCollName
◆ ~B02Run()
Definition at line 117 of file B02Run.cc.
118{
119
121 for ( G4int i = 0; i < Nmap; i++){
123 }
127}
◆ RecordEvent()
void B02Run::RecordEvent |
( |
const G4Event * |
aEvent | ) |
|
|
virtual |
Definition at line 134 of file B02Run.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}
◆ GetNumberOfHitsMap()
G4int B02Run::GetNumberOfHitsMap |
( |
| ) |
const |
|
inline |
◆ GetHitsMap() [1/3]
G4THitsMap< G4double > * B02Run::GetHitsMap |
( |
G4int |
i | ) |
|
|
inline |
◆ GetHitsMap() [2/3]
Definition at line 171 of file B02Run.cc.
172 {
173 G4String fullName = detName+
"/"+colName;
175}
G4THitsMap< G4double > * GetHitsMap(G4int i)
◆ GetHitsMap() [3/3]
Definition at line 181 of file B02Run.cc.
181 {
183 for ( G4int i = 0; i < Ncol; i++){
186 }
187 }
188 return NULL;
189}
◆ DumpAllScorer()
void B02Run::DumpAllScorer |
( |
| ) |
|
Definition at line 195 of file B02Run.cc.
195 {
196
197
199
200 for ( G4int i = 0; i < n ; i++ ){
202 if ( RunMap ) {
203 G4cout << " PrimitiveScorer RUN "
204 << RunMap->GetSDname() <<","<< RunMap->GetName() << G4endl;
205 G4cout << " Number of entries " << RunMap->entries() << G4endl;
206 std::map<G4int,G4double*>::iterator itr = RunMap->GetMap()->begin();
207 for(; itr != RunMap->GetMap()->end(); itr++) {
208 G4cout << " copy no.: " << itr->first
209 << " Run Value : " << *(itr->second)
210 << G4endl;
211 }
212 }
213 }
214}
G4int GetNumberOfHitsMap() const
◆ Merge()
void B02Run::Merge |
( |
const G4Run * |
aRun | ) |
|
|
virtual |
Definition at line 218 of file B02Run.cc.
219{
220 const B02Run * localRun =
static_cast<const B02Run *
>(aRun);
221
222
223
224 G4int nCol = localRun->
fCollID.size();
225 for ( G4int i = 0; i < nCol ; i++ ){
226 if ( localRun->
fCollID[i] >= 0 ){
228 }
229 }
230
231 G4Run::Merge(aRun);
232}
◆ fCollName
◆ fCollID
std::vector<G4int> B02Run::fCollID |
|
private |
◆ fRunMap
std::vector<G4THitsMap<G4double>*> B02Run::fRunMap |
|
private |
The documentation for this class was generated from the following files: