Changeset 7388


Ignore:
Timestamp:
11/10/05 10:05:31 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/plotdb.C

    r7358 r7388  
    5959#include <TLine.h>
    6060#include <TText.h>
     61#include <TFrame.h>
    6162#include <TStyle.h>
    6263#include <TGraph.h>
     
    142143        TString title = fNameTab.IsNull() ? name(name.First('.')+2, name.Length()) : fNameTab;
    143144        TCanvas &c = fDisplay ? fDisplay->AddTab(title) : *new TCanvas;
     145        c.SetFillColor(kWhite);
     146        c.SetBorderMode(0);
    144147        c.Divide(1,2);
    145148
     
    218221
    219222        g2.DrawClone("AP");
    220 
    221223    }
    222224
     
    293295    plot.SetDescription("Mean Pedestal RMS inner Camera;\\sigma_{P,I} [phe]", "PedRmsI");
    294296    plot.Plot("Calibration.fMeanPedRmsInner",  0, 3.5, 0.05);
     297    plot.SetDescription("Mean Signal inner Camera;S_{I} [phe]", "SignalI");
     298    plot.Plot("Calibration.fMeanSignalInner",  0, 7.0, 0.05);
    295299    //from star*.root
    296300    //muon
     
    324328    plot.SetDescription("Mean Pedestal RMS outer Camera;\\sigma_{P,O} [phe]", "PedRmsO");
    325329    plot.Plot("Calibration.fMeanPedRmsOuter",  0, 4.0, 0.05);
     330    plot.SetDescription("Mean Signal outer Camera;S_{O} [phe]", "SignalO");
     331    plot.Plot("Calibration.fMeanSignalOuter",  0, 4.0, 0.05);
    326332}
    327333
     
    349355    plot.SetRequestRange(from, to);
    350356    plotall(plot);
     357    //d->SaveAsPS("plotdb.ps");
    351358}
    352359
     
    369376
    370377    MStatusDisplay *d = new MStatusDisplay;
    371 
    372378    MPlot plot(serv);
    373379    plot.SetDisplay(d);
    374380    plot.SetRequestPeriod(period);
    375381    plotall(plot);
     382    //d->SaveAsPS("plotdb.ps");
    376383}
  • trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc

    r7142 r7388  
    266266{
    267267    // Project into EnergyEst_ey
    268     TH1D *h1 = (TH1D*)fHEnergy.Project3D("rtlprmft_ex");
    269     TH1D *h2 = (TH1D*)fHEnergy.Project3D("rtlprmft_ey");
     268    TH1D *h1 = (TH1D*)fHEnergy.Project3D("rtlprmft_ex"); // E_Est
     269    TH1D *h2 = (TH1D*)fHEnergy.Project3D("rtlprmft_ey"); // E_mc
    270270
    271271    h2->Copy(hist);
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.cc

    r7214 r7388  
    5252MSrcPosCorrect::MSrcPosCorrect(const char *name, const char *title)
    5353    : fSrcPosCam(NULL), fSrcPosAnti(NULL), fAxis(NULL), fGeom(NULL)
     54     , fDx(-14.24) , fDy(-9.495)
     55
    5456{
    5557    fName  = name  ? name  : "MSrcPosCorrect";
     
    105107    {
    106108        *fLog << inf << "Run Number " << fRunNumber << " between 53832 and 56161." << endl;
    107         *fLog << "A missfocussing correction (-0.048deg/0.034deg) will be applied." << endl;
     109        *fLog << "A misfocussing correction (" << fDx << "mm/" << fDy << "mm) will be applied." << endl;
    108110    }
    109111
     
    160162    {
    161163        // dx=-0.048deg, dy=0.034deg, d=0.059deg
    162         static const TVector2 dxy(-14.24, -9.495);
     164        static const TVector2 dxy(fDx, fDy);
    163165
    164166        d -= dxy;
     
    175177    return kTRUE;
    176178}
     179
     180Int_t MSrcPosCorrect::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     181{
     182    Bool_t rc = kFALSE;
     183    if (IsEnvDefined(env, prefix, "Dx", print))
     184    {
     185        fDx = GetEnvValue(env, prefix, "Dx", fDx);
     186        rc = kTRUE;
     187    }
     188    if (IsEnvDefined(env, prefix, "Dy", print))
     189    {
     190        fDy = GetEnvValue(env, prefix, "Dy", fDy);
     191        rc = kTRUE;
     192    }
     193
     194    return rc;
     195}
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.h

    r7214 r7388  
    2323    UInt_t   fRunNumber;
    2424
     25    Float_t fDx;
     26    Float_t fDy;
     27
    2528    // MTask
    2629    Bool_t ReInit(MParList *pList);
    2730    Int_t  PreProcess(MParList *pList);
    2831    Int_t  Process();
     32
     33    Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
    2934
    3035public:
  • trunk/MagicSoft/Mars/mreport/MReportTrigger.cc

    r4971 r7388  
    469469      }
    470470
    471     n = sscanf(pos, " %f %f %n", &fL2BeforePrescaler, &fL2AfterPrescaler, &len);    if (n!=2)
     471    n = sscanf(pos, " %f %f %n", &fL2BeforePrescaler, &fL2AfterPrescaler, &len);
     472    if (n!=2)
    472473      {
    473474        *fLog << warn << "WARNING - Couldn't read Trigger rates." << endl;
  • trunk/MagicSoft/Mars/msql/MSQLServer.h

    r4877 r7388  
    5353    }
    5454
    55     const char *GetNameDataBase() const { return fDataBase; }
    5655    const char *GetNameTable()    const { return Form("%s/%s",    (const char*)fDataBase, (const char*)fTable); }
    5756    const char *GetNameColumn()   const { return Form("%s/%s/%s", (const char*)fDataBase, (const char*)fTable, (const char*)fColumn); }
     
    9392
    9493    const char *GetName() const;
     94    const char *GetNameDataBase() const { return fDataBase; }
    9595
    9696    void Print(Option_t *o) const;
Note: See TracChangeset for help on using the changeset viewer.