Changeset 13583 for fact/tools/rootmacros
- Timestamp:
- 05/07/12 11:44:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/pixel.C
r13577 r13583 55 55 if (mOptions.Contains("R") ) 56 56 { 57 hRisingEdgeToMax = new TH1 F*[mMaxPulseOrder];57 hRisingEdgeToMax = new TH1I*[mMaxPulseOrder]; 58 58 } 59 59 60 60 if (mOptions.Contains("M") ) 61 61 { 62 hPosOfMax = new TH1 F*[mMaxPulseOrder];62 hPosOfMax = new TH1I*[mMaxPulseOrder]; 63 63 } 64 64 … … 297 297 if (!mOptions.IsNull() ) 298 298 { 299 int x_min = 0; 300 int x_max = 0; 299 301 TString histo_name; 300 302 TString histo_title; 303 301 304 for (int order =0; order < mMaxPulseOrder; order++) 302 305 { … … 307 310 if (mOptions.Contains("S")) 308 311 { 312 309 313 histo_name = "hSlopeRisingEdge"; 310 314 histo_name += mChid; 311 315 histo_name += "_"; 312 316 histo_name += order; 313 histo_title = "Distribution of rising edge [Pixel_Order]";317 histo_title = "Distribution of rising edge's slope [Pixel_Order] "; 314 318 histo_title += mChid; 315 319 histo_title += "_"; … … 323 327 10.1 324 328 ); 325 hSlopeRisingEdge[order]->GetXaxis()->SetTitle( " Timeslices [a.u.]" );329 hSlopeRisingEdge[order]->GetXaxis()->SetTitle( "Slope Amplitude/time [mV/timeslices]" ); 326 330 hSlopeRisingEdge[order]->GetYaxis()->SetTitle( "counts" ); 327 331 hList->Add( hSlopeRisingEdge[order] ); … … 330 334 if (mOptions.Contains("R")) 331 335 { 336 x_min = -15; 337 x_max = 35; 338 332 339 histo_name = "hRisingEdgeToMax"; 333 340 histo_name += mChid; 334 341 histo_name += "_"; 335 342 histo_name += order; 336 histo_title = "D eviation of rising edge and maximum [Pixel_Order]";343 histo_title = "Distance from rising edge to pulse's maximum [Pixel_Order] "; 337 344 histo_title += mChid; 338 345 histo_title += "_"; 339 346 histo_title += order; 340 347 if (mVerbosityLevel > 3) cout << "\t...booking " << histo_name << endl; 341 hRisingEdgeToMax[order] = new TH1 F(348 hRisingEdgeToMax[order] = new TH1I ( 342 349 histo_name, 343 350 histo_title, 344 600,345 -10.1,346 10.1351 x_max -x_min, 352 x_min, 353 x_max 347 354 ); 348 355 hRisingEdgeToMax[order]->GetXaxis()->SetTitle( "Timeslices [a.u.]" ); … … 353 360 if (mOptions.Contains("M")) 354 361 { 362 x_min = 10; 363 x_max = 290; 364 355 365 histo_name = "hPosOfMax"; 356 366 histo_name += mChid; 357 367 histo_name += "_"; 358 368 histo_name += order; 359 histo_title = "D eviation of rising edge and maximum [Pixel_Order]";369 histo_title = "Distribution of pulse's maximum's positon [Pixel_Order] "; 360 370 histo_title += mChid; 361 371 histo_title += "_"; 362 372 histo_title += order; 363 373 if (mVerbosityLevel > 3) cout << "\t...booking " << histo_name << endl; 364 hPosOfMax[order] = new TH1 F(374 hPosOfMax[order] = new TH1I ( 365 375 histo_name, 366 376 histo_title, 367 600,368 -10.1,369 10.1377 x_max - x_min, 378 x_min, 379 x_max 370 380 ); 371 381 hPosOfMax[order]->GetXaxis()->SetTitle( "Timeslices [a.u.]" );
Note:
See TracChangeset
for help on using the changeset viewer.