Changeset 2405
- Timestamp:
- 10/20/03 15:09:44 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2404 r2405 16 16 - MHMcTriggerLvl2::GetHistByName removed const-qualifier and 17 17 changed return type to TH1 according to definition in MH. 18 19 * macros/status.C: 20 - use MDirIter instead of a single file name 21 - adde MHTriggerLvl0 22 - Simplified macro by using PrintOutliers 23 24 * mhist/MHCamEvent.[h,cc]: 25 - renamed PrintOutlayers to PrintOutliers 26 - Divide pad only into two subpads 18 27 19 28 -
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 // -
trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
r2312 r2405 136 136 } 137 137 138 void MHCamEvent::PrintOutlayers(Float_t s) const 138 // -------------------------------------------------------------------------- 139 // 140 // Print pixel indices which value is higher than mean+sigma*rms 141 // 142 void MHCamEvent::PrintOutliers(Float_t sigma) const 139 143 { 140 144 const Double_t mean = fSum->GetMean(); … … 148 152 continue; 149 153 150 if ((*fSum)[i+1]>mean+s *rms)151 *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " > " << s << "*rms" << endl;154 if ((*fSum)[i+1]>mean+sigma*rms) 155 *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " > " << sigma << "*rms" << endl; 152 156 // if ((*fSum)[i+1]==0) 153 157 // *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " == 0" << endl; … … 171 175 pad->SetBorderMode(0); 172 176 173 pad->Divide( 2,2);177 pad->Divide(1,2); 174 178 175 179 pad->cd(1); … … 180 184 fSum->Draw(); 181 185 182 pad->cd( 3);186 pad->cd(2); 183 187 gPad->SetBorderMode(0); 184 188 fSum->Draw("EPhist"); -
trunk/MagicSoft/Mars/mhist/MHCamEvent.h
r2312 r2405 34 34 void Draw(Option_t *o=""); 35 35 36 void PrintOutl ayers(Float_t s) const;36 void PrintOutliers(Float_t sigma) const; 37 37 38 38 ClassDef(MHCamEvent, 1) // Histogram to sum camera events
Note:
See TracChangeset
for help on using the changeset viewer.