Changeset 1354 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
06/10/02 09:04:28 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1353 r1354  
    11                                                                  -*-*- END -*-*-
    22 2002/06/10: Thomas Bretz
     3
     4   * macros/plot.C:
     5     - added
     6
     7   * macros/plot2.C:
     8     - added
    39
    410   * manalysis/MHillas.cc:
  • trunk/MagicSoft/Mars/mhist/MHHadroness.cc

    r1353 r1354  
    266266    *fLog << "Hadroness histograms:" << endl;
    267267    *fLog << "---------------------" << endl;
     268    *fLog << "Used " << fGhness->GetEntries() << " Gammas and " << fPhness->GetEntries() << " Hadrons." << endl;
    268269    *fLog << "Acc Gammas at  1% Hadron-acc: " << Form("%3.0f", GetGammaAcceptance(0.01)*100) << "%" << endl;
    269270    *fLog << "Acc Gammas at  2% Hadron-acc: " << Form("%3.0f", GetGammaAcceptance(0.02)*100) << "%" << endl;
  • trunk/MagicSoft/Mars/mhist/MHMatrix.cc

    r1348 r1354  
    4545#include "MHMatrix.h"
    4646
    47 #include <math.h>     // fabs on Alpha
    48 
    4947#include <TList.h>
    5048#include <TArrayD.h>
     
    353351        d2 *= m;
    354352
    355         dists[i] = fabs(d2*d);
     353        dists[i] = d2*d; // square of distance
    356354    }
    357355
     
    365363        res += dists[idx[i]];
    366364
    367     return res/n;
     365    return sqrt(res)/n;
    368366}
    369367
Note: See TracChangeset for help on using the changeset viewer.