Ignore:
Timestamp:
05/30/05 18:12:10 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhflux
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/FluxLinkDef.h

    r7038 r7109  
    77#pragma link C++ class MAlphaFitter+;
    88
     9#pragma link C++ class MHDisp+;
    910#pragma link C++ class MHAlpha+;
    1011#pragma link C++ class MHThetaSq+;
     
    1314#pragma link C++ class MHEffectiveOnTime+;
    1415#pragma link C++ class MHCollectionArea+;
     16#pragma link C++ class MMcSpectrumWeight+;
     17
     18//#pragma link C++ class MMatrixHist+;
     19//#pragma link C++ class MMatrixUnfold+;
     20//#pragma link C++ class MUnfoldBert+;
    1521
    1622#endif
  • trunk/MagicSoft/Mars/mhflux/MHFalseSource.cc

    r6892 r7109  
    246246    fMm2Deg = geom->GetConvMm2Deg();
    247247
    248     if (fName!=(TString)"MHFalseSourceOff" && fHistOff==NULL)
    249     {
    250         MHFalseSource *hoff = (MHFalseSource*)plist->FindObject("MHFalseSourceOff", "MHFalseSource");
     248    const TString off(Form("%sOff", fName.Data()));
     249    if (fName!=off && fHistOff==NULL)
     250    {
     251        const TString desc(Form("%s [%s] found... using ", off.Data(), ClassName()));
     252        MHFalseSource *hoff = (MHFalseSource*)plist->FindObject(off, ClassName());
    251253        if (!hoff)
    252             *fLog << inf << "No MHFalseSourceOff [MHFalseSource] found... using current data only!" << endl;
     254            *fLog << inf << "No " << desc << "current data only!" << endl;
    253255        else
    254256        {
    255             *fLog << inf << "MHFalseSource [MHFalseSource] found... using on-off mode!" << endl;
     257            *fLog << inf << desc << "on-off mode!" << endl;
    256258            SetOffData(*hoff);
    257259        }
     
    294296        *fLog << warn << "MObservatory not found... no derotation." << endl;
    295297
     298    MPointingPos *point = (MPointingPos*)plist->FindObject("MSourcePos", "MPointingPos");
     299    if (!point)
     300        point = fPointPos;
     301
    296302    // FIXME: Because the pointing position could change we must check
    297303    // for the current pointing position and add a offset in the
    298304    // Fill function!
    299     fRa  = fPointPos ? fPointPos->GetRa()  :  0;
    300     fDec = fPointPos ? fPointPos->GetDec() : 90;
     305    fRa  = point ? point->GetRa()  :  0;
     306    fDec = point ? point->GetDec() : 90;
    301307
    302308    return kTRUE;
     
    615621                const Int_t l = h0->GetXaxis()->FindFixBin(fAlphaCut*3)+f-1;
    616622                h0->Scale(h1->Integral(f, l)/h0->Integral(f, l));
     623
     624
    617625                //h0->Scale(h1->GetEntries()/h0->GetEntries());
    618626
     
    854862}
    855863
    856 Double_t FcnGauss2d(Double_t *x, Double_t *par)
     864static Double_t FcnGauss2d(Double_t *x, Double_t *par)
    857865{
    858866    TVector2 v = TVector2(x[0], x[1]).Rotate(par[5]*TMath::DegToRad());
  • trunk/MagicSoft/Mars/mhflux/MHFalseSource.h

    r6978 r7109  
    2020class MHFalseSource : public MH
    2121{
    22 private:
     22protected:
    2323    MTime         *fTime;        //! container to take the event time from
    2424    MPointingPos  *fPointPos;    //! container to take pointing position from
     
    2828    Float_t fMm2Deg;             // conversion factor for display in degrees
    2929
     30private:
    3031    Float_t fAlphaCut;           // Alpha cut
    3132    Float_t fBgMean;             // Background mean
     
    3738    Float_t fMaxDW;              // Maximum distance in percent of dist
    3839
     40protected:
    3941    TH3D    fHist;               // Alpha vs. x and y
    4042
     
    4446    Double_t fDec;
    4547
     48private:
    4649    Int_t DistancetoPrimitive(Int_t px, Int_t py);
    4750    void Modified();
Note: See TracChangeset for help on using the changeset viewer.