Changeset 12918
- Timestamp:
- 02/22/12 17:37:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/gainfit2.C
r12754 r12918 97 97 98 98 int gainfit2( 99 const char * InputRootFileName = "../analysis/fpeak/20111110_005/20111110_005_fpeak.root", 100 const char * InputBaselineFileName = "../analysis/fpeak/20111110_005/20111110_005_fbsl.root", 101 const char * OutTextFileName = "../analysis/fpeak/20111110_005/20111110_005_gainfit.txt", 102 const char * RootOutFileName = "../analysis/fpeak/20111110_005/20111110_005_gainfit.root", 99 const char * InputRootFileName = "../analysis/fpeak/20111109_006/20111109_006_fpeak.root", 100 const char * InputBaselineFileName = "../analysis/fpeak/20111109_006/20111109_006_fbsl.root", 101 const char * OutTextFileName = "../analysis/fpeak/20111109_006_gainfit_test.txt", 102 const char * RootOutFileName = "../analysis/fpeak/20111109_006_gainfit_test.root", 103 // const char * InputRootFileName = "../analysis/fpeak/20111110_005/20111110_005_fpeak.root", 104 // const char * InputBaselineFileName = "../analysis/fpeak/20111110_005/20111110_005_fbsl.root", 105 // const char * OutTextFileName = "../analysis/fpeak/20111110_005/20111110_005_gainfit.txt", 106 // const char * RootOutFileName = "../analysis/fpeak/20111110_005/20111110_005_gainfit.root", 103 107 bool showHistos = false, 104 108 bool debug = false, … … 144 148 TF1 *fspek_fit = new TF1("fspek_fit", spek_fit, 5, 60, 6); 145 149 fspek_fit->SetParNames("1.Max", "Gain", "Sigma", "2.Max", "Baseline", "Xtalk"); 146 TF1 *fspek_fit2 = new TF1("fspek_fit2 g3", spek_fit2, 5, 60, 4);150 TF1 *fspek_fit2 = new TF1("fspek_fit2", spek_fit2, 5, 60, 4); 147 151 fspek_fit2->SetParNames("1.Max", "Gain", "Sigma", "2.Max"); 148 152 //Create Canvases … … 276 280 277 281 if( showHistos ){ 282 cGainFit->cd(4); 278 283 hPixelAmplSpek[ pixel ]->Draw(); 279 284 } … … 482 487 483 488 hList.Write(); // write the major histograms into the top level directory 484 tf.mkdir("PeakSpektra"); tf.cd("PeakSpektra"); // go to new subdirectory 489 490 tf.mkdir("PeakSpektra"); 491 tf.cd("PeakSpektra"); // go to new subdirectory 485 492 hListPeakSpektra.Write(); // write histos into subdirectory 486 tf.mkdir("CrazyPixels"); tf.cd("CrazyPixels"); // go to new subdirectory 493 494 tf.mkdir("CrazyPixels"); 495 tf.cd("CrazyPixels"); // go to new subdirectory 487 496 hListCrazy.Write(); // write histos into subdirector 497 488 498 tf.Close(); // close the file 489 499 }
Note:
See TracChangeset
for help on using the changeset viewer.