Changeset 3785


Ignore:
Timestamp:
04/20/04 17:16:55 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamEventRot.cc

    r3784 r3785  
    6767//
    6868MHCamEventRot::MHCamEventRot(const char *name, const char *title)
    69     : fTime(0), fPointPos(0), fObservatory(0), fType(0)
     69    : fTime(0), fPointPos(0), fObservatory(0), fType(0), fNameTime("MTime")
    7070{
    7171    //
     
    100100    }
    101101
    102     MBinning binsa;
    103     binsa.SetEdges(18, 0, 90);
    104 
    105102    const MBinning *bins = (MBinning*)plist->FindObject("BinningCamEvent");
    106103    if (!bins)
    107104    {
    108         const Float_t r = (fGeom ? fGeom->GetMaxRadius()/3 : 200)*fGeom->GetConvMm2Deg();
     105        const Float_t r = fGeom->GetMaxRadius()*fGeom->GetConvMm2Deg();
    109106
    110107        MBinning b;
    111         b.SetEdges(20, -r, r);
     108        b.SetEdges(41, -r, r);
    112109        SetBinning(&fHist, &b, &b);
    113110    }
     
    119116        *fLog << warn << "MPointingPos not found... no derotation." << endl;
    120117
    121     fTime = (MTime*)plist->FindObject(AddSerialNumber("MTime"));
     118    fTime = (MTime*)plist->FindObject(AddSerialNumber(fNameTime));
    122119    if (!fTime)
    123120        *fLog << warn << "MTime not found... no derotation." << endl;
     
    130127    // for the current pointing position and add a offset in the
    131128    // Fill function!
    132     fRa  = fPointPos->GetRa();
    133     fDec = fPointPos->GetDec();
     129    if (fPointPos)
     130    {
     131        fRa  = fPointPos->GetRa();
     132        fDec = fPointPos->GetDec();
     133    }
    134134
    135135    return kTRUE;
  • trunk/MagicSoft/Mars/mhist/MHCamEventRot.h

    r3784 r3785  
    3333    Double_t fDec;
    3434
     35    TString fNameTime;
    3536    //Int_t DistancetoPrimitive(Int_t px, Int_t py);
    3637    //void Modified();
     
    4849
    4950    TH1 *GetHistByName(const TString name) { return &fHist; }
     51
     52    void SetNameTime(const char *name) { fNameTime=name; }
    5053
    5154    //void FitSignificance(Float_t sigint=15, Float_t sigmax=70, Float_t bgmin=40, Float_t bgmax=70, Byte_t polynom=1); //*MENU*
Note: See TracChangeset for help on using the changeset viewer.