Changeset 2448


Ignore:
Timestamp:
10/31/03 18:32:36 (21 years ago)
Author:
marcos
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2447 r2448  
    11                                                 -*-*- END OF LINE -*-*-
     2 2003/10/31: Marcos Lopez
     3
     4   * mhist/MFill.cc:
     5     - Fixed a bug in function PreProcess(MParList *pList). Inside the
     6       conditional sentence "if (!fWeight && !fWeightName.IsNull())", 
     7       fWeight never pointed to the object MWeight recoverd from the
     8       parameter list.
     9 
     10    * mhistmc/MHMcEnergyImpact.cc 
     11      - In the Fill function, pass the weight to the histogram fHist.
     12
     13   * mmontecarlo/MMcWeightEnergySpecCalc.[h,cc]
     14      - Added new class for changing the energy spectrum of the showers
     15        simulated with Corsika to a different one, be using weights   
     16                       
     17   * mmontecarlo/Makefile, MonteCarloLinkDef.h
     18      - Added the new class.
     19 
     20   * macros/weights.C
     21      - Added macro showing how to transform the spectrum of the MC showers.
     22
     23
     24
    225  2003/10/31: Thomas Bretz
    326
  • trunk/MagicSoft/Mars/mhist/MFillH.cc

    r2416 r2448  
    383383    {
    384384        fWeight = (MWeight*)pList->FindObject(fWeightName, "MWeight");
    385         *fLog << err << fWeightName << " [MWeight] not found... aborting." << endl;
    386         return kFALSE;
     385
     386        if (!fWeight)
     387          {
     388            *fLog << err << fWeightName << " [MWeight] not found... aborting." << endl;
     389            return kFALSE;
     390          }
    387391    }
    388392
  • trunk/MagicSoft/Mars/mmontecarlo/Makefile

    r1986 r2448  
    3232           MMcTimeGenerate.cc \
    3333           MMcTriggerRateCalc.cc \
    34            MMcEnergyEst.cc
     34           MMcEnergyEst.cc \
     35           MMcWeightEnergySpecCalc.cc
    3536
    3637SRCS    = $(SRCFILES)
  • trunk/MagicSoft/Mars/mmontecarlo/MonteCarloLinkDef.h

    r1986 r2448  
    1010#pragma link C++ class MMcTriggerRateCalc+;
    1111#pragma link C++ class MMcEnergyEst+;
     12#pragma link C++ class MMcWeightEnergySpecCalc+;
     13
    1214#endif
Note: See TracChangeset for help on using the changeset viewer.