Changeset 2405 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 10/20/03 15:09:44 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/status.C
r2377 r2405 31 31 ///////////////////////////////////////////////////////////////////////////// 32 32 33 void status( const char *fname="*1947*cosmic*.root")33 void status() 34 34 { 35 35 // … … 57 57 plist.AddToList(&tlist); 58 58 59 /* 60 MSrcPosCam src; 61 src.SetXY(1./geomcam.GetConvMm2Deg(), 0); 62 plist.AddToList(&src); 63 */ 59 // ------------- user change ----------------- 60 MDirIter files("~MAGIC/online_data/rootdata", "*Mkn501-I*.root", -1); 61 //files.Print("all"); 64 62 65 63 // … … 69 67 MReadMarsFile read("Events"); 70 68 read.DisableAutoScheme(); 71 72 // ------------- user change ----------------- 73 read.AddFile(fname); 69 read.AddFiles(files); 74 70 75 71 MGeomApply geomapl; … … 79 75 MCerPhotCalc ncalc; 80 76 81 TArrayS blinds(2); 82 blinds[0] = 271; 83 blinds[1] = 291; 77 TArrayS blinds(0); 84 78 85 79 MBlindPixelCalc blind; 86 //blind.SetPixelIndices(blinds);80 blind.SetPixelIndices(blinds); 87 81 blind.SetUseInterpolation(); 88 82 … … 91 85 MHillasCalc hcalc; 92 86 MHillasSrcCalc scalc; // !!Preliminary!! Will be removed later! 93 MCT1SupercutsCalc calc1;94 87 95 88 MHCamEvent hist("PedestalRms"); … … 98 91 99 92 // ------------------------------------------- 93 MHTriggerLvl0 trighi(254, "SaturationHi", "Saturation Rate of Hi Gains"); 94 trighi.SetType(1); 95 96 MFillH fillhi(&trighi, "MRawEvtData"); 100 97 MFillH hfill0("Uncleaned [MHCamEvent]", "MCerPhotEvt"); 101 98 MFillH hfill1("Pedestals [MHCamEvent]", "MPedestalCam"); … … 108 105 MFillH hfill8("MHStarMap", "MHillas"); 109 106 MFillH hfill9("Cleaned [MHCamEvent]", "MCerPhotEvt"); 110 MFillH hfill10("MHHadronness", "MHadronness"); 111 M FillH hfill11("MHSigmaTheta");107 108 MContinue cont1("MNewImagePar.fNumCorePixels<0"); 112 109 113 110 tlist.AddToList(&read); 114 111 tlist.AddToList(&geomapl); 112 tlist.AddToList(&fillhi); 115 113 tlist.AddToList(&pcopy); 116 114 tlist.AddToList(&pnsb); … … 121 119 tlist.AddToList(&clean); 122 120 tlist.AddToList(&hcalc); 121 tlist.AddToList(&cont1); 123 122 tlist.AddToList(&scalc); 124 //tlist.AddToList(&calc1);125 123 tlist.AddToList(&hfill1); 126 124 tlist.AddToList(&hfill2); … … 132 130 tlist.AddToList(&hfill8); 133 131 tlist.AddToList(&hfill9); 134 //tlist.AddToList(&hfill10);135 132 136 133 MEvtLoop evtloop; … … 146 143 tlist.PrintStatistics(); 147 144 148 MHCamera &uncl = *((MHCamEvent*)plist.FindObject("Uncleaned"))->GetHistByName(); 149 MHCamera &hped = *((MHCamEvent*)plist.FindObject("Pedestals"))->GetHistByName(); 150 MHCamera &hrms = *((MHCamEvent*)plist.FindObject("PedestalRms"))->GetHistByName(); 151 152 for (int i=0; i<577; i++) 153 { 154 if (uncl.IsUsed(i)) 155 { 156 if (uncl[i+1]>uncl.GetMean()+3*uncl.GetRMS()) 157 cout << "Mean Charge of Pixel-Index #" << i << ": " << uncl[i+1] << " > 3*rms" << endl; 158 if (uncl[i+1]==0) 159 cout << "Mean Charge of Pixel-Index #" << i << ": " << uncl[i+1] << " <= 0" << endl; 160 if (uncl[i+1]<uncl.GetMean()-3*uncl.GetRMS()) 161 cout << "Mean Charge of Pixel-Index #" << i << ": " << uncl[i+1] << " < 3*rms" << endl; 162 } 163 if (hped.IsUsed(i)) 164 { 165 if (hped[i+1]>hped.GetMean()+1.5*hped.GetRMS()) 166 cout << "Mean Pedestal of Pixel-Index #" << i << ": " << hped[i+1] << " > 1.5*rms" << endl; 167 if (hped[i+1]==0) 168 cout << "Mean Pedestal of Pixel-Index #" << i << ": " << hped[i+1] << " <= 0" << endl; 169 if (hped[i+1]<hped.GetMean()-1.5*hped.GetRMS()) 170 cout << "Mean Pedestal of Pixel-Index #" << i << ": " << hped[i+1] << " < 1.5*rms" << endl; 171 } 172 if (hrms.IsUsed(i)) 173 { 174 if (hrms[i+1]>hrms.GetMean()+4*hrms.GetRMS()) 175 cout << "Mean PedestalRMS of Pixel-Index #" << i << ": " << hrms[i+1] << " > 4*rms" << endl; 176 if (hrms[i+1]==0) 177 cout << "Mean PedestalRMS of Pixel-Index #" << i << ": " << hrms[i+1] << " <= 0" << endl; 178 if (hrms[i+1]<hrms.GetMean()-4*hrms.GetRMS()) 179 cout << "Mean PedestalRMS of Pixel-Index #" << i << ": " << hrms[i+1] << " < 4*rms" << endl; 180 } 181 } 145 MHCamEvent *uncl = (MHCamEvent*)plist.FindObject("Uncleaned"); 146 MHCamEvent *hped = (MHCamEvent*)plist.FindObject("Pedestals"); 147 MHCamEvent *hrms = (MHCamEvent*)plist.FindObject("PedestalRms"); 148 uncl->PrintOutliers(3); 149 hped->PrintOutliers(1.5); 150 hrms->PrintOutliers(4); 151 trighi.PrintOutliers(2.5); 182 152 183 153 //
Note:
See TracChangeset
for help on using the changeset viewer.