Ignore:
Timestamp:
07/04/02 18:40:55 (22 years ago)
Author:
bigongia
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmontecarlo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc

    r1342 r1376  
    2121!   Copyright: MAGIC Software Development, 2000-2001
    2222!
     23!   Modified 4/7/2002 Abelardo Moralejo: now the dimension of fTrigger is
     24!    set dinamically, to allow an arbitrary large number of trigger
     25!    conditions to be processed.
     26!
    2327!
    2428\* ======================================================================== */
     
    4751    fMcRate = NULL;
    4852
    49     for (int i=0;i<10;i++)
    50         fTrigger[i] = dim&&trigbg ? trigbg[i] : 0;
    51 
    5253    fShowers = 0;
    5354    fAnalShow = simbg;
     
    5960
    6061    fNum = fLast-fFirst+1;
     62
     63    fTrigger = new float[fNum];
     64
     65    for (UInt_t i=0;i<fNum;i++)
     66        fTrigger[i] = dim&&trigbg ? trigbg[i] : 0;
    6167
    6268    AddToBranchList("MMcEvt.fImpact");
  • trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.h

    r1205 r1376  
    2626    UInt_t     fLast;
    2727
    28     Float_t    fTrigger[10];   // Number of triggered showers
     28    Float_t*    fTrigger;   // Number of triggered showers
     29
    2930    Float_t    fShowers;       // Number of simulated showers
    3031    Float_t    fAnalShow;      // Number of analysed showers
Note: See TracChangeset for help on using the changeset viewer.