Changeset 1166 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/11/02 17:40:11 (23 years ago)
Author:
blanch
Message:
Now this task sets the parameters to know the incident particle
flux using MHMcRate:SetFlux. The value are decide by the task
itself depending on the fPartId.
File:
1 edited

Legend:

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

    r1108 r1166  
    5555    fPartId=part;
    5656
    57 
    5857    fFirst = dim>0 ?   1 : -dim;
    5958    fLast  = dim>0 ? dim : -dim;
     
    160159
    161160        rate.SetParticle(fPartId);
     161        if (fPartId ==14)
     162            rate.SetFlux(0.1091, 2.75);
     163        else if (fPartId == 402)
     164            rate.SetFlux(0.0660, 2.62);
     165        else {
     166            *fLog << err << dbginf << "Unknown incident flux parameters for ";
     167            *fLog << fPartId<< " particle Id ... aborting." << endl;
     168            return kFALSE;
     169        }
    162170        rate.SetBackground(fTrigger[i], fAnalShow);
    163171
     
    199207    for (UInt_t i=0; i<fNum; i++)
    200208    {
    201         fTrigger[i] += GetTrig(i)->GetFirstLevel();
     209        if (GetTrig(i)->GetFirstLevel())
     210            fTrigger[i] ++;
    202211
    203212        GetRate(i)->UpdateBoundaries(ener, theta, phi, param);
Note: See TracChangeset for help on using the changeset viewer.