Changeset 4560 for trunk/MagicSoft


Ignore:
Timestamp:
08/10/04 13:34:13 (20 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/MHTelAxisFromStars.cc

    r4545 r4560  
    450450// --------------------------------------------------------------------------
    451451//
    452 // Setup an inversed deep blue sea palette.
    453 //
    454 void MHTelAxisFromStars::SetColors() const
    455 {
    456     gStyle->SetPalette(51, NULL);
    457     Int_t c[50];
    458     for (int i=0; i<50; i++)
    459         c[49-i] = gStyle->GetColorPalette(i);
    460     gStyle->SetPalette(50, c);
     452// Finalize :
     453//
     454//    it is called in the postprocessing
     455//    reset pointers in order to allow cloning of the object
     456//
     457Bool_t MHTelAxisFromStars::Finalize()
     458{
     459
     460  return kTRUE;
    461461}
    462462
     
    552552}
    553553
     554// --------------------------------------------------------------------------
     555//
     556// Setup an inversed deep blue sea palette.
     557//
     558
     559void MHTelAxisFromStars::SetColors() const
     560{
     561    gStyle->SetPalette(51, NULL);
     562    Int_t c[50];
     563    for (int i=0; i<50; i++)
     564        c[49-i] = gStyle->GetColorPalette(i);
     565    gStyle->SetPalette(50, c);
     566}
     567
     568
    554569//---------------------------------------------------------------------
    555570//
  • trunk/MagicSoft/Mars/mtemp/MHTelAxisFromStars.h

    r4545 r4560  
    2828    TH2D *fEstPos2;    //-> Estimated position 2
    2929
    30     MStarLocalCam   *fStarLocalCam;
    31     MStarLocalCam   *fSourceLocalCam;
    32     MSrcPosCam      *fSrcPos;
    33     MSkyCamTrans    *fSkyCamTrans;
     30    MStarLocalCam   *fStarLocalCam;     //!
     31    MStarLocalCam   *fSourceLocalCam;   //!
     32    MSrcPosCam      *fSrcPos;           //!
     33    MSkyCamTrans    *fSkyCamTrans;      //!
     34
     35
     36
     37    Float_t fMm2Deg;                    //!
     38    Bool_t  fUseMmScale;                //!
     39    Int_t   fInputType;                 //!
    3440
    3541    void SetColors() const;
    36 
    37     Float_t fMm2Deg;
    38     Bool_t  fUseMmScale;
    39     Int_t   fInputType;
    40 
    4142    void Paint(Option_t *opt="");
    4243
     
    5152    Bool_t SetupFill(const MParList *pList);
    5253    Bool_t Fill(const MParContainer *par, const Stat_t w=1);
     54    Bool_t Finalize();
    5355
    5456    TH1 *GetHistByName(const TString name);
  • trunk/MagicSoft/Mars/mtemp/findTelAxisFromStars.C

    r4545 r4560  
    218218   
    219219  //$$$$$$$$$$$$$$$$ ww
    220   /*
     220 
    221221  gLog << "Event loop finished; call DrawClone of MHTelAxisFromStars" << endl;
    222222  TObject *obj = plist.FindObject("MHTelAxisFromStars");
    223223  if (obj)
    224224  {
    225     obj->Print();
    226     obj->Dump();
     225    //obj->Print();
     226    //obj->Dump();
    227227    obj->DrawClone();
    228 
    229     gLog << "Draw a clone of the histogram" << endl;
    230     TObject *o = obj->Clone();
    231     o->SetBit(kCanDelete);
    232     o->Draw();
    233228  }
    234229  else
    235230    gLog << "address of MHTelAxisFromStars container is zero" << endl;
    236   */
     231 
    237232  //$$$$$$$$$$$$$$$$ ww
    238233
Note: See TracChangeset for help on using the changeset viewer.