Changeset 4707 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
08/23/04 13:44:36 (20 years ago)
Author:
wittek
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/findTelAxisFromStars.C

    r4560 r4707  
    2525  MGeomCamMagic geomcam;
    2626  MCameraDC     dccam;
    27   MStarLocalCam starcam;
    28 
    29   //$$$$$$$$$$$$$$$$ ww
     27  MStarCam      starcam;
     28
     29  //$$$$$$$$$$$$$$$$ ww
     30  MStarCam      sourcecam;
     31  sourcecam.SetName("MSourceCam");
     32
    3033  MHTelAxisFromStars htelaxis;
    3134  plist.AddToList(&htelaxis);
     
    3639  plist.AddToList(&dccam);
    3740  plist.AddToList(&starcam);
     41  plist.AddToList(&sourcecam);
    3842
    3943  // Reads the trees of the root file and the analysed branches
     
    8286  MSourceDirections sdirs;
    8387  sdirs.SetGeometryFile(geometryfile);
    84   const Double_t ra  = MAstro::Hms2Rad(11, 4, 26);
     88
     89  const Double_t ra  = MAstro::Hms2Rad(11,  4, 26);
    8590  const Double_t dec = MAstro::Dms2Rad(38, 12, 36);
    8691  sdirs.SetRaDec(ra,dec);
    8792  sdirs.AddDirection(ra,dec,1,"Mkn 421");
    88   const Double_t ra  = MAstro::Hms2Rad(11, 4, 31);
     93
     94  const Double_t ra  = MAstro::Hms2Rad(11,  0, 50);
     95  const Double_t dec = MAstro::Dms2Rad(39, 12, 44);
     96  sdirs.AddDirection(ra,dec,1,"My_UMa 49");
     97
     98  const Double_t ra  = MAstro::Hms2Rad(11,  4, 31);
    8999  const Double_t dec = MAstro::Dms2Rad(38, 14, 29);
    90100  sdirs.AddDirection(ra,dec,1,"My_UMa 51");
     101
     102
    91103  sdirs.SetRadiusFOV(3);
    92104  //$$$$$$$$$$$$$$$$ ww
     
    109121
    110122  //$$$$$$$$$$$$$$$$ ww
    111   //Int_t InputType = 0;
     123  Int_t InputType = 1;
    112124  //findstars.SetUseCorrelatedGauss(kFALSE);
    113125
     
    115127  //telaxis.FixRotationAngleAt(-1.0);
    116128  //telaxis.FixScaleFactorAt(-1.0);
    117   //telaxis.SetInputType(InputType);
     129  telaxis.SetInputType(InputType);
    118130
    119131  MFillH fillhisto("MHTelAxisFromStars[MHTelAxisFromStars]","");
    120   //htelaxis.SetInputType(InputType);
     132  htelaxis.SetInputType(InputType);
    121133  //$$$$$$$$$$$$$$$$ ww
    122134
     
    167179  while (tlist.Process())
    168180    {
     181      gLog << "---------------------------------------------" << endl;
     182      gLog << "Macro : MStarPos content = " << endl;
    169183      starcam.Print("namepossizchierr");
     184      gLog << "---------------------------------------------" << endl;
     185      gLog << "Macro : MSourcePos content = " << endl;
     186      sourcecam.Print("namepossizchierr");
     187      gLog << "---------------------------------------------" << endl;
    170188
    171189      numevents++;
     
    182200        // This is how to iterate over stars found:
    183201        //        TIter Next(starlist);
    184         //        MStarLocalPos* star;
     202        //        MStarPos* star;
    185203        //        UInt_t starnum = 0;
    186204        //        cout << filename << " ";
    187205        //        cout << "Iterating over list" << endl;
    188         //        while ((star=(MStarLocalPos*)Next()))
     206        //        while ((star=(MStarPos*)Next()))
    189207        //          {
    190208        //            cout << "star[" << starnum << "] ";
     
    217235  tlist.PrintStatistics();
    218236   
     237  plist.Print();
     238
    219239  //$$$$$$$$$$$$$$$$ ww
    220240 
    221241  gLog << "Event loop finished; call DrawClone of MHTelAxisFromStars" << endl;
     242  TObject *srccam = plist.FindObject("MSourceCam");
     243
     244  gLog << "srccam = " << srccam << endl;
     245
    222246  TObject *obj = plist.FindObject("MHTelAxisFromStars");
    223247  if (obj)
Note: See TracChangeset for help on using the changeset viewer.