Ignore:
Timestamp:
07/12/05 14:31:02 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpointing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc

    r7179 r7181  
    9393MSrcPosCalc::MSrcPosCalc(const char *name, const char *title)
    9494    : fObservatory(NULL), fPointPos(NULL), fSourcePos(NULL), fSrcPosCam(NULL),
    95     fSrcPosAnti(NULL), fGeom(NULL), fTime(NULL), fIsWobbleMode(kFALSE)
     95    fSrcPosAnti(NULL), fGeom(NULL), fTime(NULL), fMode(kDefault)
    9696{
    9797    fName  = name  ? name  : "MSrcPosCalc";
     
    209209void MSrcPosCalc::SetSrcPos(TVector2 v) const
    210210{
    211     if (fIsWobbleMode)
     211    if (fMode==kWobble)
    212212    {
    213213        fSrcPosAnti->SetXY(v);
     
    230230Bool_t MSrcPosCalc::ReInit(MParList *plist)
    231231{
     232    if (fMode==kOffData)
     233    {
     234        SetSrcPos(TVector2());
     235        return kTRUE;
     236    }
     237
    232238    MRawRunHeader *run = (MRawRunHeader*)plist->FindObject("MRawRunHeader");
    233239    if (!run)
     
    328334Int_t MSrcPosCalc::Process()
    329335{
    330     if (fRunType==MRawRunHeader::kRTMonteCarlo || !fSourcePos || !fTime || !fObservatory)
     336    if (fRunType==MRawRunHeader::kRTMonteCarlo || !fSourcePos || !fTime || !fObservatory || fMode==kOffData)
    331337        return kTRUE;
    332338
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.h

    r6912 r7181  
    1919class MSrcPosCalc : public MTask
    2020{
     21public:
     22    enum Mode_t {
     23        kDefault = 0,
     24        kOffData = 1,
     25        kWobble  = 2
     26    };
    2127private:
    2228    enum {
     
    3440    UShort_t fRunType;            //! Run Type to decide where to get pointing position from
    3541
    36     Bool_t fIsWobbleMode;
     42    Int_t fMode;
    3743
    3844    // MSrcPosCalc
     
    5965    void SetSourcePos(Double_t ra, Double_t dec);
    6066    void SetOwner(Bool_t b=kTRUE) { b ? SetBit(kIsOwner) : ResetBit(kIsOwner); } // Make MSrcPosCalc owner of fSourcePos
    61     void SetWobbleMode(Bool_t b=kTRUE) { fIsWobbleMode = b; }
     67    void SetMode(Mode_t m=kDefault) { fMode = m; }
    6268
    6369    ClassDef(MSrcPosCalc, 0) // Calculates the source position in the camera
Note: See TracChangeset for help on using the changeset viewer.