Changeset 12918 for fact


Ignore:
Timestamp:
02/22/12 17:37:54 (13 years ago)
Author:
Jens Buss
Message:
Bug Fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/gainfit2.C

    r12754 r12918  
    9797
    9898int 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",
    103107        bool showHistos = false,
    104108        bool debug = false,
     
    144148    TF1 *fspek_fit = new TF1("fspek_fit", spek_fit, 5, 60, 6);
    145149    fspek_fit->SetParNames("1.Max", "Gain", "Sigma", "2.Max", "Baseline", "Xtalk");
    146     TF1 *fspek_fit2 = new TF1("fspek_fit2g3", spek_fit2, 5, 60, 4);
     150    TF1 *fspek_fit2 = new TF1("fspek_fit2", spek_fit2, 5, 60, 4);
    147151    fspek_fit2->SetParNames("1.Max", "Gain", "Sigma", "2.Max");
    148152//Create Canvases
     
    276280
    277281        if( showHistos ){
     282        cGainFit->cd(4);
    278283        hPixelAmplSpek[ pixel ]->Draw();
    279284        }
     
    482487
    483488    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
    485492    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
    487496    hListCrazy.Write(); // write histos into subdirector
     497
    488498    tf.Close(); // close the file
    489499}
Note: See TracChangeset for help on using the changeset viewer.