Changeset 13572


Ignore:
Timestamp:
05/07/12 09:26:15 (13 years ago)
Author:
Jens Buss
Message:
changed distibution options from P to M
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/PulseTemplates/pixel.C

    r13559 r13572  
    5858    }
    5959
    60     if (mOptions.Contains("P") )
     60    if (mOptions.Contains("M") )
    6161    {
    6262        hPosOfMax = new TH1F*[mMaxPulseOrder];
     
    351351            }
    352352
    353             if (mOptions.Contains("P"))
     353            if (mOptions.Contains("M"))
    354354            {
    355355                histo_name =    "hPosOfMax";
     
    386386{
    387387    if (mVerbosityLevel > 2) cout << endl << "...drawing distribution histograms" ;
     388    bool nothing_to_fill = true;
    388389    for (int pulse_order = 0; pulse_order < mMaxPulseOrder; pulse_order++)
    389390    {
     391        if (mOptions.Contains("S") )
     392        {
    390393        pixelCanvas[pulse_order]->cd( histoFrameNr[0] );
    391394        hSlopeRisingEdge[pulse_order]->Draw();
     395        nothing_to_fill = false;
     396        }
     397
     398        if (mOptions.Contains("R") )
     399        {
    392400        pixelCanvas[pulse_order]->cd( histoFrameNr[1] );
    393401        hRisingEdgeToMax[pulse_order]->Draw();
    394 
     402        nothing_to_fill = false;
     403        }
     404
     405        if (mOptions.Contains("M") )
     406        {
    395407        pixelCanvas[pulse_order]->cd( histoFrameNr[2] );
    396408        hPosOfMax[pulse_order]->Draw();
     409        nothing_to_fill = false;
     410        }
     411
     412    }
     413    if (nothing_to_fill)
     414    {
     415        cout << "there were NO DISTRIBUTION HISTOGRAMS to fill"
    397416    }
    398417}
     
    506525        }
    507526
    508         if (mOptions.Contains("P"))
     527        if (mOptions.Contains("M"))
    509528        {
    510529            if (mVerbosityLevel > 3) cout << endl
     
    532551    }
    533552
    534     if (mOptions.Contains("P"))
     553    if (mOptions.Contains("M"))
    535554    {
    536555        if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hPosOfMax";
Note: See TracChangeset for help on using the changeset viewer.