Changeset 7643 for trunk/MagicSoft
- Timestamp:
- 04/21/06 17:28:45 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7642 r7643 27 27 * mtools/MTFillMatrix.cc: 28 28 - added accelerator for executing the tasklist as in MJCut 29 30 * mfilter/MFEnergySlope.cc: 31 - small update to output 32 33 * mfbase/MFilterList.[h,cc]: 34 - fixed a really old problem that the contents of the list never 35 got ReInit. Hopefully this never had bad sideeffects. 29 36 30 37 -
trunk/MagicSoft/Mars/NEWS
r7642 r7643 6 6 and optimization macros) by skipping some obsolete calles in the 7 7 eventloop the first and second loop could be accelerated by ~20% 8 9 - general: Fixed a missing feature in the MFilterLIst class which 10 prevented MFEnergySlope from working correctly in trainenergy.C 8 11 9 12 - merpp: Adapted to new raw data file format version 6 -
trunk/MagicSoft/Mars/mfbase/MFilterList.cc
r7601 r7643 297 297 // -------------------------------------------------------------------------- 298 298 // 299 // ReInit all filters in the list 300 // 301 Bool_t MFilterList::ReInit(MParList *pList) 302 { 303 TIter Next(&fFilters); 304 305 MFilter *filter=NULL; 306 307 // 308 // loop over all filters 309 // 310 while ((filter=(MFilter*)Next())) 311 { 312 if (!filter->ReInit(pList)) 313 { 314 *fLog << err << "Error - ReInit Filter "; 315 *fLog << filter->GetName() << " in " << fName << endl; 316 return kFALSE; 317 } 318 } 319 320 return kTRUE; 321 } 322 323 // -------------------------------------------------------------------------- 324 // 299 325 // Processes (updates) all filters in the list. 300 326 // -
trunk/MagicSoft/Mars/mfbase/MFilterList.h
r7601 r7643 55 55 TString GetDataMember() const; 56 56 57 Int_t PreProcess(MParList *pList); 58 Int_t Process(); 59 Int_t PostProcess(); 57 Bool_t ReInit(MParList *plist); 58 Int_t PreProcess(MParList *pList); 59 Int_t Process(); 60 Int_t PostProcess(); 60 61 61 62 void SetAccelerator(Byte_t acc=kAccStandard); -
trunk/MagicSoft/Mars/mfilter/MFEnergySlope.cc
r7409 r7643 127 127 128 128 // 129 // Read info from the MC sample (it must be generated with129 // Read info from0 the MC sample (it must be generated with 130 130 // reflector ver.0.6 and camera ver. 0.6) 131 131 // … … 148 148 *fLog << inf; 149 149 *fLog << "Fetched MC info:" << endl; 150 *fLog << " Change E Slope " <<fMcSlope << " (" << fMcMinEnergy << " < E < ";151 *fLog << fMcMaxEnergy << ") to " << fNewSlope << endl;150 *fLog << " Change E Slope from " << -fMcSlope << " (" << fMcMinEnergy << " < E < "; 151 *fLog << fMcMaxEnergy << ") to " << -fNewSlope << endl; 152 152 *fLog << " Norm factor: " << fN0 << endl; 153 153 … … 191 191 */ 192 192 193 const Float_t Nexp = fN0 * pow(energy, fMcSlope-fNewSlope);193 const Float_t Nexp = fN0 * pow(energy, fMcSlope-fNewSlope); 194 194 const Float_t Nrnd = gRandom->Uniform(); 195 195 196 196 fResult = Nexp > Nrnd; 197 198 //if (fResult)199 // fNumSelectedEvts++;200 197 201 198 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.