Changeset 4073 for trunk/MagicSoft/Mars/mtemp/mifae/macros
- Timestamp:
- 05/14/04 16:45:04 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae/macros
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/macros/findstars.C
r4038 r4073 47 47 48 48 49 void findstars(const TString filename="dc_2004_03_1 8_20_37_19_20663_CrabNebula.root", const TString directory="/nfs/magic/CaCodata/rootdata/CrabNebula/Period015/2004_03_19/", const UInt_t numEvents = 11)49 void findstars(const TString filename="dc_2004_03_19_00_36_50_20781_Mrk421.root", const TString directory="/nfs/magic/CaCodata/rootdata/Mrk421/Period015/2004_03_19/", const UInt_t numEvents = 0) 50 50 { 51 51 … … 80 80 81 81 MGeomApply geomapl; 82 83 // const Int_t numrings = 3; 84 const Int_t numblind = 5; 85 const Short_t x[numblind] = { 8, 27, 224, 279, 339}; 82 TString continuoslightfile = 83 "/nfs/magic/CaCodata/rootdata/Miscellaneous/Period016/2004_04_16/dc_2004_04_16_04_46_18_22368_Off3c279-2CL100.root"; 84 MCalibrateDC dccal; 85 dccal.SetFileName(continuoslightfile); 86 87 const Int_t numblind = 12; 88 const Short_t x[numblind] = { 8, 27, 89 507, 508, 509, 510, 511, 90 543, 559, 560, 561, 567}; 86 91 const TArrayS blindpixels(numblind,(Short_t*)x); 87 92 MFindStars findstars; 88 // findstars.SetNumRings(numrings); 89 // findstars.SetBlindPixels(blindpixels); 93 findstars.SetBlindPixels(blindpixels); 94 Float_t ringinterest = 100; //[mm] 95 Float_t tailcut = 3.5; 96 UInt_t integratedevents = 10; 97 findstars.SetRingInterest(ringinterest); 98 findstars.SetDCTailCut(tailcut); 99 findstars.SetNumIntegratedEvents(integratedevents); 100 findstars.SetMinuitPrintOutLevel(0); 90 101 91 102 // prints … … 95 106 tlist.AddToList(&geomapl); 96 107 tlist.AddToList(&read); 108 tlist.AddToList(&dccal); 97 109 // tlist.AddToList(&pdc, "Currents"); 98 110 tlist.AddToList(&findstars, "Currents"); … … 119 131 return; 120 132 133 MHCamera display0(geomcam); 134 display0.SetPrettyPalette(); 135 display0.Draw(); 136 // display0.SetCamContent(dccal.GetDisplay()); 137 display0.SetCamContent(dccal.GetDCCalibrationFactor()); 138 gPad->Modified(); 139 gPad->Update(); 140 141 // Remove the comments if you want to go through the file 142 // event-by-event: 143 if (!HandleInput()) 144 break; 145 121 146 MHCamera display(geomcam); 122 147 display.SetPrettyPalette(); 123 148 display.Draw(); 124 149 gPad->cd(1); 125 // starscam.Draw();150 starcam.Draw(); 126 151 127 while (tlist.Process()) 128 { 129 display.SetCamContent(dccam); 130 gPad->Modified(); 131 gPad->Update(); 132 starcam.Print(); 133 // Remove the comments if you want to go through the file 134 // event-by-event: 135 if (!HandleInput()) 136 break; 152 UInt_t numevents=0; 153 154 while (tlist.Process()) 155 { 156 numevents++; 157 if (numevents%integratedevents==0) 158 { 159 // display.SetCamContent(dccam); 160 display.SetCamContent(findstars.GetDisplay()); 161 gPad->Modified(); 162 gPad->Update(); 163 starcam.Print("maxpossizechi"); 164 // Remove the comments if you want to go through the file 165 // event-by-event: 166 if (!HandleInput()) 167 break; 168 } 137 169 } 138 170 -
trunk/MagicSoft/Mars/mtemp/mifae/macros/psffit.C
r3947 r4073 47 47 48 48 49 void psffit(const TString filename="dc_2004_0 2_15_01_51_22_17286_Mrk421.root", const TString directory="/nfs/magic/CaCodata/2004_02_15/", const UInt_t numEvents = 100000)49 void psffit(const TString filename="dc_2004_03_19_00_36_50_20781_Mrk421.root", const TString directory="/nfs/magic/CaCodata/rootdata/Mrk421/Period015/2004_03_19/", const UInt_t numEvents = 0) 50 50 { 51 51 … … 130 130 gPad->Modified(); 131 131 gPad->Update(); 132 psffit.Print(); 132 133 // Remove the comments if you want to go through the file 133 134 // event-by-event:
Note:
See TracChangeset
for help on using the changeset viewer.