Changeset 8702 for trunk/MagicSoft


Ignore:
Timestamp:
08/23/07 17:12:52 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r8701 r8702  
    7373// Tasks/Filter
    7474#include "MReadMarsFile.h"
    75 #include "MReadMarsFile.h"
    76 #include "MFEventSelector2.h"
    77 #include "MFDataMember.h"
    7875#include "MEnergyEstimate.h"
    7976#include "MTaskEnv.h"
    8077#include "MFillH.h"
    81 #include "MHillasCalc.h"
     78#include "MFDataPhrase.h"
     79#include "MFDataMember.h"
    8280#include "MContinue.h"
    8381
     
    738736}
    739737
     738/*
    740739Bool_t MJSpectrum::IntermediateLoop(MParList &plist, MH3 &mh1, TH1D &temp1, const MDataSet &set, MMcSpectrumWeight &weight) const
    741740{
     
    811810    return kTRUE;
    812811}
     812*/
    813813
    814814TString MJSpectrum::FormString(const TF1 &f, Byte_t type)
     
    12521252void MJSpectrum::SetupHistEnergyEst(MHn &hist) const
    12531253{
    1254     hist.AddHist("MHillas.fSize", "log10(MEnergyEst.fVal)-log10(MMcEvt.fEnergy)");
     1254    const char *res = "log10(MEnergyEst.fVal)-log10(MMcEvt.fEnergy)";
     1255
     1256    hist.AddHist("MHillas.fSize", res);
    12551257    hist.InitName("ResSize;Size;EnergyResidual");
    12561258    hist.InitTitle(";S [phe];\\Delta lg E;");
    12571259    hist.SetDrawOption("colz profx");
    12581260
    1259     hist.AddHist("MPointingPos.fZd", "log10(MEnergyEst.fVal)-log10(MMcEvt.fEnergy)");
     1261    hist.AddHist("MPointingPos.fZd", res);
    12601262    hist.InitName("ResTheta;Theta;EnergyResidual");
    12611263    hist.InitTitle(";Zd [\\circ];\\Delta lg E;");
    12621264    hist.SetDrawOption("colz profx");
    12631265
    1264     hist.AddHist("MNewImagePar.fLeakage1", "log10(MEnergyEst.fVal)-log10(MMcEvt.fEnergy)");
     1266    hist.AddHist("MNewImagePar.fLeakage1", res);
    12651267    hist.InitName("ResLeak;Leakage;EnergyResidual");
    12661268    hist.InitTitle(";Leak;\\Delta lg E;");
    12671269    hist.SetDrawOption("colz profx");
    12681270
    1269     hist.AddHist("MHillasSrc.fDist*3.37e-3", "log10(MEnergyEst.fVal)-log10(MMcEvt.fEnergy)");
     1271    hist.AddHist("MHillasSrc.fDist*3.37e-3", res);
    12701272    hist.InitName("ResDist;Dist;EnergyResidual");
    12711273    hist.InitTitle(";D [\\circ];\\Delta lg E;");
     
    12751277void MJSpectrum::SetupHistDisp(MHn &hist) const
    12761278{
    1277     hist.AddHist("MHillas.fSize", "MHillasSrc.fDist*3.37e-3/Disp.fVal");
    1278     hist.InitName("ResSize;Size;Xi");
    1279     hist.InitTitle(";S [phe];\\Delta Xi;");
     1279    const char *res = "-Disp.fVal*sign(MHillasSrc.fCosDeltaAlpha)-MHillasSrc.fDist*3.37e-3";
     1280
     1281    hist.AddHist("MHillas.fSize", res);
     1282    hist.InitName("ResSize;Size;ResidualDist");
     1283    hist.InitTitle(";S [phe];Disp-Dist [\\circ];");
    12801284    hist.SetDrawOption("colz profx");
    12811285
    1282     hist.AddHist("MPointingPos.fZd", "MHillasSrc.fDist*3.37e-3/Disp.fVal");
    1283     hist.InitName("ResTheta;Theta;Xi");
    1284     hist.InitTitle(";Zd [\\circ];\\Delta Xi;");
     1286    hist.AddHist("MPointingPos.fZd", res);
     1287    hist.InitName("ResTheta;Theta;ResidualDist");
     1288    hist.InitTitle(";Zd [\\circ];Disp-Dist [\\circ];");
    12851289    hist.SetDrawOption("colz profx");
    12861290
    1287     hist.AddHist("MNewImagePar.fLeakage1", "MHillasSrc.fDist*3.37e-3/Disp.fVal");
    1288     hist.InitName("ResLeak;Leakage;Xi");
    1289     hist.InitTitle(";Leak;\\Delta Xi;");
     1291    hist.AddHist("MNewImagePar.fLeakage1", res);
     1292    hist.InitName("ResLeak;Leakage;ResidualDist");
     1293    hist.InitTitle(";Leak;Disp-Dist [\\circ];");
    12901294    hist.SetDrawOption("colz profx");
    12911295
    1292     hist.AddHist("MHillasExt.fSlopeLong*sign(MHillasSrc.fCosDeltaAlpha)/3.37e-3", "MHillasSrc.fDist*3.37e-3/Disp.fVal");
    1293     hist.InitName("ResSlope;Slope;Xi");
    1294     hist.InitTitle(";Slope;\\Delta Xi;");
     1296    hist.AddHist("MHillasExt.fSlopeLong*sign(MHillasSrc.fCosDeltaAlpha)/3.37e-3", res);
     1297    hist.InitName("ResSlope;Slope;ResidualDist");
     1298    hist.InitTitle(";Slope;Disp-Dist [\\circ];");
    12951299    hist.SetDrawOption("colz profx");
    12961300}
     
    14901494
    14911495    MBinning binsA(50, 10, 100000, "BinningSize",           "log");
    1492     MBinning binsB(50, -1, 1,      "BinningEnergyResidual", "lin");
    14931496    MBinning binsC(50,  0, 0.3,    "BinningLeakage",        "lin");
    1494     MBinning binsD(50,  0, 3,      "BinningXi",             "lin");
     1497    MBinning binsB(51, -1, 1,      "BinningEnergyResidual", "lin");
     1498    MBinning binsD(51, -3, 1,      "BinningResidualDist",   "lin");
    14951499
    14961500    plist.AddToList(&binsA);
     
    15021506    SetupHistEnergyEst(heest);
    15031507
    1504     MHn hdisp("Disp", "Xi (Dist/Disp)");
     1508    MHn hdisp("Disp", "Dist residual (Disp-Dist)");
    15051509    SetupHistDisp(hdisp);
    15061510
Note: See TracChangeset for help on using the changeset viewer.