Changeset 1809 for trunk/MagicSoft/Mars/mfilter
- Timestamp:
- 03/08/03 14:00:30 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mfilter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfilter/MFEventSelector.cc
r1762 r1809 118 118 Bool_t MFEventSelector::PreProcess(MParList *plist) 119 119 { 120 memset(fErrors, 0, sizeof(fErrors)); 121 120 122 fNumSelectedEvts = 0; 121 123 if (fSelRatio>0) … … 153 155 Bool_t MFEventSelector::Process() 154 156 { 157 Int_t rc; 158 155 159 const Float_t evt = gRandom->Uniform(); 156 160 … … 161 165 162 166 if (fResult) 167 { 163 168 fNumSelectedEvts++; 164 169 170 rc = 0; 171 fErrors[rc]++; 172 return kTRUE; 173 } 174 175 rc = 1; 176 fErrors[rc]++; 177 165 178 return kTRUE; 166 179 } … … 172 185 Bool_t MFEventSelector::PostProcess() 173 186 { 187 //--------------------------------- 188 if (GetNumExecutions() != 0) 189 { 190 *fLog << inf << endl; 191 *fLog << GetDescriptor() << " execution statistics:" << endl; 192 *fLog << dec << setfill(' '); 193 *fLog << " " << setw(7) << fErrors[1] << " (" << setw(3) 194 << (int)(fErrors[1]*100/GetNumExecutions()) 195 << "%) Events not selected" << endl; 196 197 *fLog << " " << fErrors[0] << " (" 198 << (int)(fErrors[0]*100/GetNumExecutions()) 199 << "%) Events selected!" << endl; 200 *fLog << endl; 201 } 202 203 //--------------------------------- 174 204 if (TestBit(kNumTotalFromFile)) 175 205 fNumTotalEvts = -1; … … 199 229 200 230 } 201 -
trunk/MagicSoft/Mars/mfilter/MFEventSelector.h
r1762 r1809 37 37 */ 38 38 39 Int_t fErrors[2]; 40 39 41 public: 40 42 // MFEventSelector();
Note:
See TracChangeset
for help on using the changeset viewer.