Changeset 13559 for fact/tools


Ignore:
Timestamp:
05/04/12 16:28:06 (12 years ago)
Author:
Jens Buss
Message:
changed naming of histograms
File:
1 edited

Legend:

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

    r13544 r13559  
    9797    if (mVerbosityLevel > 2) cout << endl << "...book pixel histograms" << endl;
    9898    TString histo_name;
     99    TString histo_title;
    99100
    100101    for (int order = 0; order < mMaxPulseOrder; order++)
     
    104105        histo_name +=   "_";
    105106        histo_name +=   order;
     107
     108        histo_title =   "Overlay of detected pulses of one pulse order for one Pixel ";
     109        histo_title +=   "[Pixel_Order] ";
     110        histo_title +=  mChid;
     111        histo_title +=   "_";
     112        histo_title +=   order;
     113
    106114        if (mVerbosityLevel > 3) cout << "\t...booking " << histo_name << endl;
    107115        hMaxOverlay[order]=new TH2F(
    108116                histo_name,
    109                 "Overlay of detected pulses of one pulse order for one Pixel",
     117                histo_title,
    110118                mPixelOverlayXaxisLeft + mPixelOverlayXaxisRight ,
    111119                (-1*mPixelOverlayXaxisLeft)-0.5,
     
    145153        histo_name +=   "_";
    146154        histo_name +=   order;
     155
     156        histo_title =   "Overlay at rising edge of detected pulses of one pulse order for one Pixel ";
     157        histo_title +=   "[Pixel_Order] ";
     158        histo_title +=  mChid;
     159        histo_title +=   "_";
     160        histo_title +=   order;
     161
    147162        if (mVerbosityLevel > 3) cout << "\t...booking " << histo_name << endl;
    148163        hEdgeOverlay[order] = new TH2F(
    149164                    histo_name,
    150                     "Overlay at rising edge of detected pulses of one pulse order for one Pixel ",
     165                    histo_title,
    151166                    mPixelOverlayXaxisLeft + mPixelOverlayXaxisRight ,
    152167                    (-1*mPixelOverlayXaxisLeft)-0.5,
     
    178193        histo_name +=   "_";
    179194        histo_name +=   order;
     195
     196        histo_title =   "Mean value of each slice in overlay plot (Tprofile) ";
     197        histo_title +=   "[Pixel_Order] ";
     198        histo_title +=  mChid;
     199        histo_title +=   "_";
     200        histo_title +=   order;
     201
    180202        if (mVerbosityLevel > 3) cout << "\t...booking " << histo_name << endl;
    181203        hMaxProfile[order] = new TProfile(
    182204                    histo_name,
    183                     "Mean value of each slice in overlay plot (Tprofile)",
     205                    histo_title,
    184206                    mPixelOverlayXaxisLeft + mPixelOverlayXaxisRight ,//nbinsx
    185207                    (-1*mPixelOverlayXaxisLeft)-0.5,                 //xlow
     
    212234        histo_name +=   "_";
    213235        histo_name += order;
     236
     237        histo_title =   "Mean value of each slice in overlay plot (Tprofile) ";
     238        histo_title +=   "[Pixel_Order] ";
     239        histo_title +=  mChid;
     240        histo_title +=   "_";
     241        histo_title +=   order;
     242
    214243        if (mVerbosityLevel > 3) cout << "\t...booking " << histo_name << endl;
    215244        hEdgeProfile[order] = new TProfile(
    216245                    histo_name,
    217                     "Mean value of each slice in overlay plot (Tprofile)",
     246                    histo_title,
    218247                    mPixelOverlayXaxisLeft + mPixelOverlayXaxisRight ,//nbinsx
    219248                    (-1*mPixelOverlayXaxisLeft)-0.5,                 //xlow
     
    242271void
    243272Pixel::DrawHistograms(
    244         TCanvas*    pixelCanvas,
     273        TCanvas**    pixelCanvas,
    245274        int*        histoFrameNr
    246275        )
     
    249278    for (int pulse_order = 0; pulse_order < mMaxPulseOrder; pulse_order++)
    250279    {
    251         pixelCanvas[pulse_order].cd( histoFrameNr[0] );
     280        pixelCanvas[pulse_order]->cd( histoFrameNr[0] );
    252281        hMaxOverlay[pulse_order]->Draw("COLZ");
    253         pixelCanvas[pulse_order].cd( histoFrameNr[2] );
    254         hMaxProfile[pulse_order]->Draw("COLZ");
     282        pixelCanvas[pulse_order]->cd( histoFrameNr[2] );
     283        hMaxProfile[pulse_order]->Draw();
    255284        hEdgeProfile[pulse_order]->Draw("SAME");
    256285
    257         pixelCanvas[pulse_order].cd( histoFrameNr[1] );
     286        pixelCanvas[pulse_order]->cd( histoFrameNr[1] );
    258287        hEdgeOverlay[pulse_order]->Draw("COLZ");
    259288    }
     
    269298    {
    270299        TString histo_name;
     300        TString histo_title;
    271301        for (int order =0; order < mMaxPulseOrder; order++)
    272302        {
     
    281311                histo_name +=   "_";
    282312                histo_name +=   order;
     313                histo_title =   "Distribution of rising edge [Pixel_Order]";
     314                histo_title +=  mChid;
     315                histo_title +=   "_";
     316                histo_title +=   order;
    283317                if (mVerbosityLevel > 3) cout << "\t...booking " << histo_name << endl;
    284318                hSlopeRisingEdge[order] = new TH1F (
    285319                            histo_name,
    286                             "Distribution of rising edge",
     320                            histo_title,
    287321                            600,
    288322                            -10.1,
     
    300334                histo_name +=   "_";
    301335                histo_name +=    order;
     336                histo_title =   "Deviation of rising edge and maximum [Pixel_Order]";
     337                histo_title +=  mChid;
     338                histo_title +=   "_";
     339                histo_title +=   order;
    302340                if (mVerbosityLevel > 3) cout << "\t...booking " << histo_name << endl;
    303341                hRisingEdgeToMax[order] = new TH1F (
    304342                            histo_name,
    305                             "Deviation of rising edge and maximum",
     343                            histo_title,
    306344                            600,
    307345                            -10.1,
     
    319357                histo_name +=   "_";
    320358                histo_name +=   order;
     359                histo_title =   "Deviation of rising edge and maximum [Pixel_Order]";
     360                histo_title +=  mChid;
     361                histo_title +=   "_";
     362                histo_title +=   order;
    321363                if (mVerbosityLevel > 3) cout << "\t...booking " << histo_name << endl;
    322364                hPosOfMax[order] = new TH1F (
    323365                            histo_name,
    324                             "Deviation of rising edge and maximum",
     366                            histo_title,
    325367                            600,
    326368                            -10.1,
     
    339381void
    340382Pixel::DrawDistributionHistograms(
    341         TCanvas*    pixelCanvas,
     383        TCanvas**    pixelCanvas,
    342384        int*        histoFrameNr
    343385        )
     
    346388    for (int pulse_order = 0; pulse_order < mMaxPulseOrder; pulse_order++)
    347389    {
    348         pixelCanvas[pulse_order].cd( histoFrameNr[0] );
     390        pixelCanvas[pulse_order]->cd( histoFrameNr[0] );
    349391        hSlopeRisingEdge[pulse_order]->Draw();
    350         pixelCanvas[pulse_order].cd( histoFrameNr[1] );
     392        pixelCanvas[pulse_order]->cd( histoFrameNr[1] );
    351393        hRisingEdgeToMax[pulse_order]->Draw();
    352394
    353         pixelCanvas[pulse_order].cd( histoFrameNr[2] );
     395        pixelCanvas[pulse_order]->cd( histoFrameNr[2] );
    354396        hPosOfMax[pulse_order]->Draw();
    355397    }
Note: See TracChangeset for help on using the changeset viewer.