Changeset 2779


Ignore:
Timestamp:
01/13/04 09:33:30 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2778 r2779  
    1 Please  do  not write behind the end of line tag so that it is  possible
    2 to   send  a   Changelog   file  to  a  line  printer  directly.  Thanks.
    3 
    4 
    5                                                  -*-*- END OF LINE -*-*-
    6 
    71Please  do  not write behind the end of line tag so that it is  possible
    82to   send  a   Changelog   file  to  a  line  printer  directly.  Thanks.
     
    137 2004/01/13: Wolfgang Wittek
    148
    15    * macros/ONOFFAnalysis.C
    16             ONAnalysis.C
     9   * macros/ONOFFAnalysis.C, macros/ONAnalysis.C:
    1710     - change macro to handle also MC events with finite sigmabar
    1811
    19    * manalysis/MPadOn.[h,cc]
     12   * manalysis/MPadOn.[h,cc]:
    2013     - deleted, is replaced by MPad
    2114
    22    * manalysis/MPadOnOFF.[h,cc]
     15   * manalysis/MPadOnOFF.[h,cc]:
    2316     - deleted, is replaced by MPad
    2417
    25    * manalysis/MPad.[h,cc]
     18   * manalysis/MPad.[h,cc]:
    2619     - new class, replacing MPadON and MPadONOFF
    2720     - handle also MC events with finite sigmabar
    2821
    29    * manalysis/Makefile
    30                AnalysisLinkDef.h
     22   * manalysis/Makefile, manalysis/AnalysisLinkDef.h:
    3123     - replace MPadON and MPadONOFF by MPad
    32 
    33 
    34 
    35  2003/12/23: Wolfgang Wittek
    3624
    3725
     
    4735   * Changelog:
    4836     - removed entries of 2003
     37
     38   * mfilter/MFGeomag.cc:
     39     - simplified open/close of input files
     40
     41   * manalysis/MEventRate.[h,cc], manalysis/MEventRateCalc.cc:
     42     - added some comments
     43     - added new member function GetError
    4944
    5045
     
    168163     - added new fType in te enumeration to handle the arrival time
    169164       histos
    170 
    171 
    172 
    173 
    174 
    175 
    176 
    177 
    178 
    179 
    180 
    181 
    182 
    183 
    184 
    185 
    186 
    187 
    188 
    189 
    190 
    191 
    192 
    193 
    194 
    195 
    196 
    197 
    198 
  • trunk/MagicSoft/Mars/manalysis/MEventRate.cc

    r2590 r2779  
    2727// MEventRate
    2828//
    29 // Storage Container for the event rate
     29// Storage Container for the event rate.
     30//
     31//    rate = Number of events / time in which the events were recorded
     32//       r = N / t
     33//       s = t / N  = 1 / r    mean time interval between consecutive events
     34//
     35//    for an exponential distribution of the time differences d between
     36//    consecutive events:
     37//
     38//       s = <d>
     39//       sigma(d)     = <d> = s
     40//       delta(s)     = sigma(d) /sqrt(N) = s / sqrt(N)
     41//       delta(s) / s = 1 / sqrt(N)
     42//
     43//       delta(r) / r = delta(s) / s = 1 / sqrt(N)
    3044//
    3145/////////////////////////////////////////////////////////////////////////////
  • trunk/MagicSoft/Mars/manalysis/MEventRate.h

    r2626 r2779  
    1717    void SetRate(Double_t r, UInt_t n) { fRate = r; fNumEvents = n; }
    1818    Double_t GetRate() const { return fRate; }
     19    Double_t GetError() const { return TMath::Sqrt(1./fNumEvents); }
    1920    UInt_t GetNumEvents() const { return fNumEvents; }
    2021
  • trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc

    r2744 r2779  
    3030//
    3131//  The algorithm is explained in Process()
     32//
     33//
     34//    rate = Number of events / time in which the events were recorded
     35//       r = N / t
     36//       s = t / N  = 1 / r    mean time interval between consecutive events
     37//
     38//    for an exponential distribution of the time differences d between
     39//    consecutive events:
     40//
     41//       s = <d>
     42//       sigma(d)     = <d> = s
     43//       delta(s)     = sigma(d) /sqrt(N) = s / sqrt(N)
     44//       delta(s) / s = 1 / sqrt(N)
     45//
     46//       delta(r) / r = delta(s) / s = 1 / sqrt(N)
     47//
    3248//
    3349//  Input Containers:
  • trunk/MagicSoft/Mars/mfilter/MFGeomag.cc

    r2689 r2779  
    8686    Float_t thet  [2*1152];
    8787
    88     ifstream geomagp;
    89 
    9088    TString filename = gSystem->Getenv("MARSSYS");
    9189    filename += "/mfilter/gcplus.txt";
    9290
    93     geomagp.open(filename);
     91    ifstream geomagp(filename);
     92
    9493    if (!geomagp) {
    9594        *fLog << err <<" ERROR gcplus.txt file not found by Geomag"<<endl;
     
    105104    *fLog << Form ("FRigMin=%8f  fRigMax=%8f  fProb=%8f",
    106105                   fRigMin[0], fRigMax[0], fProb[0]) << endl;
    107     geomagp.close();
    108     geomagp.clear();
    109 
    110     ifstream geomagm;
    111106
    112107    filename = gSystem->Getenv("MARSSYS");
    113108    filename += "/mfilter/gcminus.txt";
    114109
    115     geomagm.open(filename);
     110    ifstream geomagm(filename);
    116111    if (!geomagm) {
    117112        *fLog << err <<" ERROR gcminus.txt file not found by Geomag"<<endl;
     
    126121    *fLog << Form ("fRigMin=%8f  fRigMax=%8f  fProb=%8f",
    127122                   fRigMin[1152], fRigMax[1152], fProb[1152]) << endl;
    128     geomagm.close();
    129     geomagm.clear();
     123
    130124    //
    131125    if (fMcEvt)
     
    133127
    134128    fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt");
    135     if (fMcEvt)
    136         return kTRUE;
    137 
    138     *fLog << err << dbginf << "  [MMcEvt] not found... aborting." << endl;
    139     return kFALSE;
     129    if (!fMcEvt)
     130    {
     131        *fLog << err << dbginf << "  [MMcEvt] not found... aborting." << endl;
     132        return kFALSE;
     133    }
     134
     135    return kTRUE;
    140136}
    141137// --------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.