Changeset 5127 for trunk/MagicSoft/Mars/mtemp
- Timestamp:
- 09/24/04 18:15:19 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/Changelog
r5119 r5127 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2004/09/24: Hendrik Bartko 22 * mtemp/mmpi/macros/calibration_shape.C 23 - fine tuning of the plots 24 * mtemp/mmpi/macros/data_shape.C 25 - added new macro to compute the signal shape for cosmics runs 26 * mtemp/mmpi/macros/calculate_of_weights.C 27 - added new macro to compute the weights for the optimal filter 28 29 20 30 21 31 2004/09/19: Hendrik Bartko -
trunk/MagicSoft/Mars/mtemp/mmpi/macros/calibration_shape.C
r5119 r5127 30 30 31 31 Int_t pedr = 36038; 32 Int_t calr = 3604 0;32 Int_t calr = 36042; 33 33 //Int_t datar = 12517; 34 34 35 35 36 36 37 void calibration_shape(const TString inpath = "/.magic/magicserv01/scratch/hbartko/rootdata/2004_09_06/", Int_t pedruns = pedr, Int_t calruns = calr, Int_t ipix= 297)37 void calibration_shape(const TString inpath = "/.magic/magicserv01/scratch/hbartko/rootdata/2004_09_06/", Int_t pedruns = pedr, Int_t calruns = calr, Int_t ipix=316) 38 38 39 39 { … … 112 112 plist2.AddToList(&badcam); 113 113 114 gLog << endl;; 115 gLog << "Calculate MCalibrationCam from Runs " << cruns.GetRunsAsString() << endl; 116 gLog << endl; 117 114 118 115 MReadMarsFile read2("Events"); 119 116 read2.DisableAutoScheme(); … … 149 146 MExtractTimeHighestIntegral timeext; 150 147 timeext.SetRange(0, 14, 0, 14); 148 //timeext.SetWindowSize(10,10); 151 149 timeext.SetWindowSize(WindowSize,WindowSize); 152 150 … … 195 193 int count = 1; 196 194 197 TH2F * shape = new TH2F("shape","shape",30 ,0,30,1000,-20,250);195 TH2F * shape = new TH2F("shape","shape",300,0,30,1000,-20,250); 198 196 TH2F * shape_corr = new TH2F("shape_corr","shape_corr",300,0,30,1000,-20,250); 199 197 TH2F * shape_corr_all = new TH2F("shape_corr_all","shape_corr_all",300,0,30,1000,-20,250); … … 225 223 sigcam.GetPixelContent(sig, ipix, geomcam, 0); 226 224 225 Byte_t sat = (sigcam)[ipix].GetNumHiGainSaturated(); 226 227 227 228 htime->Fill(time); 228 229 hsig->Fill(sig); … … 243 244 const Float_t ABoffs = pedcam[ipix].GetPedestalABoffset(); 244 245 246 245 247 Float_t PedMean[2]; 246 248 PedMean[0] = ped_mean + ABoffs; … … 254 256 shape->Fill(sample+15.5,logains[sample]-PedMean[(sample+ABFlag)&0x1]); 255 257 shape_corr->Fill(sample+0.5+5.-time,higains[sample]-PedMean[(sample+ABFlag)&0x1]); 256 shape_corr->Fill(sample+15.5+5.-time,logains[sample]-PedMean[(sample+ABFlag)&0x1]); 257 shape_corr_all->Fill(sample+0.5+5.-time,(higains[sample]-PedMean[(sample+ABFlag)&0x1])/sig*250); 258 shape_corr_all->Fill(sample+15.5+5.-time,(logains[sample]-PedMean[(sample+ABFlag)&0x1])/sig*250); 258 shape_corr->Fill(sample+15.5+5.-time,logains[sample]-PedMean[(sample+nh+ABFlag)&0x1]); 259 if (sat==0){ 260 shape_corr_all->Fill(sample+0.5+5.-time,(higains[sample]-PedMean[(sample+ABFlag)&0x1])/sig*250); 261 shape_corr_all->Fill(sample+15.5+5.-time,(logains[sample]-PedMean[(sample+nh+ABFlag)&0x1])/sig*250); 262 } 259 263 } 260 264 … … 350 354 htime->Draw(); 351 355 356 357 TCanvas * c7 = new TCanvas("c7","c7",600,400); 358 c7->cd(); 359 c7->SetGridx(); 360 c7->SetGridy(); 361 c7->SetFillColor(0); 362 // c7->SetBordermode(0); 363 364 TProfile * shape_corr_all_pfx = (TProfile*)shape_corr_all->ProfileX(); 365 366 shape_corr_all_pfx->SetStats(0); 367 TString title6 = "Average Calibration Signal Shape, Amplitude + Arrival Time Corrected, Pixel"; 368 title6+=ipix; 369 shape_corr_all_pfx->SetTitle(title6); 370 shape_corr_all_pfx->SetXTitle("FADC sample no. + (<t_{arrival}> - t_{arrival}) / T_{ADC}"); 371 shape_corr_all_pfx->SetYTitle("signal [a.u.]"); 372 shape_corr_all_pfx->SetMarkerStyle(20); 373 shape_corr_all_pfx->SetMarkerColor(4); 374 shape_corr_all_pfx->SetMarkerSize(0.5); 375 shape_corr_all_pfx->Draw(); 352 376 } 353 377
Note:
See TracChangeset
for help on using the changeset viewer.