Changeset 4707
- Timestamp:
- 08/23/04 13:44:36 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/findTelAxisFromStars.C
r4560 r4707 25 25 MGeomCamMagic geomcam; 26 26 MCameraDC dccam; 27 MStarLocalCam starcam; 28 29 //$$$$$$$$$$$$$$$$ ww 27 MStarCam starcam; 28 29 //$$$$$$$$$$$$$$$$ ww 30 MStarCam sourcecam; 31 sourcecam.SetName("MSourceCam"); 32 30 33 MHTelAxisFromStars htelaxis; 31 34 plist.AddToList(&htelaxis); … … 36 39 plist.AddToList(&dccam); 37 40 plist.AddToList(&starcam); 41 plist.AddToList(&sourcecam); 38 42 39 43 // Reads the trees of the root file and the analysed branches … … 82 86 MSourceDirections sdirs; 83 87 sdirs.SetGeometryFile(geometryfile); 84 const Double_t ra = MAstro::Hms2Rad(11, 4, 26); 88 89 const Double_t ra = MAstro::Hms2Rad(11, 4, 26); 85 90 const Double_t dec = MAstro::Dms2Rad(38, 12, 36); 86 91 sdirs.SetRaDec(ra,dec); 87 92 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); 89 99 const Double_t dec = MAstro::Dms2Rad(38, 14, 29); 90 100 sdirs.AddDirection(ra,dec,1,"My_UMa 51"); 101 102 91 103 sdirs.SetRadiusFOV(3); 92 104 //$$$$$$$$$$$$$$$$ ww … … 109 121 110 122 //$$$$$$$$$$$$$$$$ ww 111 //Int_t InputType = 0;123 Int_t InputType = 1; 112 124 //findstars.SetUseCorrelatedGauss(kFALSE); 113 125 … … 115 127 //telaxis.FixRotationAngleAt(-1.0); 116 128 //telaxis.FixScaleFactorAt(-1.0); 117 //telaxis.SetInputType(InputType);129 telaxis.SetInputType(InputType); 118 130 119 131 MFillH fillhisto("MHTelAxisFromStars[MHTelAxisFromStars]",""); 120 //htelaxis.SetInputType(InputType);132 htelaxis.SetInputType(InputType); 121 133 //$$$$$$$$$$$$$$$$ ww 122 134 … … 167 179 while (tlist.Process()) 168 180 { 181 gLog << "---------------------------------------------" << endl; 182 gLog << "Macro : MStarPos content = " << endl; 169 183 starcam.Print("namepossizchierr"); 184 gLog << "---------------------------------------------" << endl; 185 gLog << "Macro : MSourcePos content = " << endl; 186 sourcecam.Print("namepossizchierr"); 187 gLog << "---------------------------------------------" << endl; 170 188 171 189 numevents++; … … 182 200 // This is how to iterate over stars found: 183 201 // TIter Next(starlist); 184 // MStar LocalPos* star;202 // MStarPos* star; 185 203 // UInt_t starnum = 0; 186 204 // cout << filename << " "; 187 205 // cout << "Iterating over list" << endl; 188 // while ((star=(MStar LocalPos*)Next()))206 // while ((star=(MStarPos*)Next())) 189 207 // { 190 208 // cout << "star[" << starnum << "] "; … … 217 235 tlist.PrintStatistics(); 218 236 237 plist.Print(); 238 219 239 //$$$$$$$$$$$$$$$$ ww 220 240 221 241 gLog << "Event loop finished; call DrawClone of MHTelAxisFromStars" << endl; 242 TObject *srccam = plist.FindObject("MSourceCam"); 243 244 gLog << "srccam = " << srccam << endl; 245 222 246 TObject *obj = plist.FindObject("MHTelAxisFromStars"); 223 247 if (obj)
Note:
See TracChangeset
for help on using the changeset viewer.