Changeset 2372 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 10/02/03 23:00:51 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r2264 r2372 258 258 *fLog << " of " << (int)GetNumPixels() << "Pixels" << endl; 259 259 260 TGraph *graph = new TGraph;260 TGraph *graphhi = new TGraph; 261 261 262 262 for (int i=0; i<nh; i++) 263 graph->SetPoint(graph->GetN(), i, higains[i]); 264 265 graph->SetMaximum(256); 266 graph->SetMinimum(0); 267 268 graph->SetBit(kCanDelete); 269 graph->Draw(same ? "C*" : "AC*"); 270 271 TH1F *hist = graph->GetHistogram(); 272 273 hist->SetXTitle("Time/FADC Slices"); 274 hist->SetYTitle("Signal/FADC Units"); 263 graphhi->SetPoint(graphhi->GetN(), i, higains[i]); 264 265 graphhi->SetMaximum(256); 266 graphhi->SetMinimum(0); 267 268 graphhi->SetBit(kCanDelete); 269 graphhi->Draw(same ? "C*" : "AC*"); 270 271 TH1F *histhi = graphhi->GetHistogram(); 272 273 histhi->SetXTitle("Time/FADC Slices"); 274 histhi->SetYTitle("Signal/FADC Units"); 275 276 if (nl>0) 277 { 278 TGraph *graphlo = new TGraph; 279 280 for (int i=0; i<nl; i++) 281 graphlo->SetPoint(graphlo->GetN(), i, logains[i]); 282 283 graphlo->SetMaximum(256); 284 graphlo->SetMinimum(0); 285 graphlo->SetLineColor(kBlue); 286 287 graphlo->SetBit(kCanDelete); 288 graphlo->Draw("C*"); 289 290 TH1F *histlo = graphlo->GetHistogram(); 291 292 histlo->SetXTitle("Time/FADC Slices"); 293 histlo->SetYTitle("Signal/FADC Units"); 294 } 275 295 276 296 return; … … 291 311 histh->Draw(same ? "same" : ""); 292 312 293 if (n h>0)313 if (nl>0) 294 314 { 295 315 TH1F *histl = new TH1F(name+";2", "FADC Samples", nl, -0.5, nl-.5);
Note:
See TracChangeset
for help on using the changeset viewer.