Changeset 1789 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/24/03 12:26:32 (22 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1787 r1789  
    66      - Fixed mistake when analysing camera files containing all events
    77        (including non-triggers): fShowers was always zero.
     8      - Added reading of MMcTrigHeaders in ReInit
    89
    910    * macros/trigrate.C
    1011      - Added some explanations. Style improvements in function GetNSBEvents.
     12
     13    * mhist/MHMcRate.[h,cc]
     14      - Added GetTriggerRate() and GetTriggerRateError()
     15      - Added members fMultiplicity and fMeanThreshold, with their
     16        corresponding Set and Get functions
     17      - Added info on discriminator threshold and L1 trigger multiplicity
     18        on the printout.
     19
     20    * mmc/MMcTrigHeader.hxx
     21      - Added GetMultiplicity() and GetMeanThreshold()
    1122
    1223 2003/02/22: Wolfgang Wittek
  • trunk/MagicSoft/Mars/mhist/MHMcRate.cc

    r1783 r1789  
    6161    fTriggerRate= -1.0;      // Trigger rate in Hz
    6262    fTriggerRateError= -1.0; // Estimated error for the trigger rate in Hz
     63
     64    fMultiplicity = -1;
     65    fMeanThreshold = -1.;
     66
    6367}
    6468
     
    233237{
    234238    *fLog << all << "Incident rate " << fShowerRate << " Hz " << endl;
     239    *fLog << "Multiplicity: " << fMultiplicity << ",  Discr. threshold: " << fMeanThreshold << endl;
    235240    *fLog << "Trigger Rate " << fTriggerRate << " +- " << fTriggerRateError << " Hz" << endl;
    236241}
  • trunk/MagicSoft/Mars/mhist/MHMcRate.h

    r1783 r1789  
    3838    Float_t fTriggerRateError;  // Estimated error for the trigger rate in Hz
    3939
     40    Float_t fMeanThreshold;     // Mean discriminator threshold (mV) of trigger
     41                                // pixels.
     42
     43    Short_t fMultiplicity;      // L1 trigger multiplicity.
     44
     45
    4046    void Init(const char *name, const char *title);
    4147
     
    6571    void SetEnergyMin(Float_t Energy) {fEnergyMin=Energy;}
    6672
     73    void SetMultiplicity(Short_t nMul) {fMultiplicity = nMul;}
     74    void SetMeanThreshold(Float_t thresh) {fMeanThreshold = thresh;}
     75
    6776    void UpdateBoundaries(Float_t energy, Float_t theta, Float_t phi, Float_t impact);
     77
     78    Float_t GetTriggerRate() {return fTriggerRate;}
     79    Float_t GetTriggerRateError() {return fTriggerRateError;}
     80
     81    Short_t GetMultiplicity() {return fMultiplicity;}
     82    Float_t  GetMeanThreshold() {return fMeanThreshold;}
    6883
    6984    void CalcRate(Float_t trig, Float_t anal, Float_t simu);
     
    7893
    7994#endif
     95
     96
     97
  • trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc

    r1786 r1789  
    3939#include "MMcTrig.hxx"
    4040#include "MMcRunHeader.hxx"
     41#include "MMcTrigHeader.hxx"
    4142#include "MMcCorsikaRunHeader.h"
    4243
     
    122123      "(5 degrees) for the original showers" << endl;
    123124
     125
    124126    for (UInt_t i=0; i<fNum; i++)
    125127      {
     
    136138        GetRate(i)->SetEnergyMin(fMcCorRunHeader->GetELowLim()/1000.);
    137139        GetRate(i)->SetEnergyMax(fMcCorRunHeader->GetEUppLim()/1000.);
     140
     141        TString th("MMcTrigHeader;");
     142        th += i+1;
     143
     144        MMcTrigHeader* trighead = (MMcTrigHeader*) pList->FindObject(th);
     145        GetRate(i)->SetMeanThreshold(trighead->GetMeanThreshold());
     146        GetRate(i)->SetMultiplicity(trighead->GetMultiplicity());
    138147
    139148      }
Note: See TracChangeset for help on using the changeset viewer.