Changeset 14747 for fact


Ignore:
Timestamp:
12/13/12 18:20:15 (12 years ago)
Author:
Jens Buss
Message:
add member markerstyle, defind markers of templates
File:
1 edited

Legend:

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

    r14063 r14747  
    237237        )
    238238{
     239    int mrkStyle =1;
     240    int mrkSize  = 2;
    239241    if (mVerbosityLevel > 2) cout << "...drawing Template histograms" << endl ;
    240242    for (int pulse_order = 0; pulse_order < mMaxPulseOrder; pulse_order++)
     
    244246
    245247        pixelCanvas[pulse_order]->cd( histoFrameNr[1] );
    246         hPixelMax[pulse_order]->Draw();
     248        hPixelMax[pulse_order]->Draw("E1");
     249        hPixelMax[pulse_order]->SetMarkerColor(kBlue);
     250        hPixelMax[pulse_order]->SetLineColor(kBlack);
     251        hPixelMax[pulse_order]->SetMarkerStyle(mrkStyle);
     252        hPixelMax[pulse_order]->SetMarkerSize(mrkSize);
    247253
    248254        pixelCanvas[pulse_order]->cd( histoFrameNr[2] );
    249         hPixelMedian[pulse_order]->Draw();
     255        hPixelMedian[pulse_order]->Draw("E1");
     256        hPixelMedian[pulse_order]->SetMarkerColor(kBlue);
     257        hPixelMedian[pulse_order]->SetLineColor(kBlack);
     258        hPixelMedian[pulse_order]->SetMarkerStyle(mrkStyle);
     259        hPixelMedian[pulse_order]->SetMarkerSize(mrkSize);
    250260
    251261        pixelCanvas[pulse_order]->cd( histoFrameNr[3] );
    252         hPixelMean[pulse_order]->Draw();
     262        hPixelMean[pulse_order]->Draw("E1");
     263        hPixelMean[pulse_order]->SetMarkerColor(kBlue);
     264        hPixelMean[pulse_order]->SetLineColor(kBlack);
     265        hPixelMean[pulse_order]->SetMarkerStyle(mrkStyle);
     266        hPixelMean[pulse_order]->SetMarkerSize(mrkSize);
    253267//        hPixelMax[pulse_order]->Draw("SAME");
    254268//        hPixelMedian[pulse_order]->Draw("SAME");
     
    265279        )
    266280{
     281    int mrkStyle = 1;
     282    int mrkSize  = 3;
     283
    267284    if (mVerbosityLevel > 2) cout << endl << "...drawing Template histograms" ;
    268285    for (int pulse_order = 0; pulse_order < mMaxPulseOrder; pulse_order++)
     
    272289
    273290        pixelCanvas[pulse_order]->cd( histoFrameNr[5] );
    274         hPixelEdgeMax[pulse_order]->Draw();
     291        hPixelEdgeMax[pulse_order]->Draw("E1");
     292        hPixelEdgeMax[pulse_order]->SetLineColor(kBlack);
     293        hPixelEdgeMax[pulse_order]->SetMarkerColor(kBlue);
     294        hPixelEdgeMax[pulse_order]->SetMarkerStyle(mrkStyle);
     295        hPixelEdgeMax[pulse_order]->SetMarkerSize(mrkSize);
    275296
    276297        pixelCanvas[pulse_order]->cd( histoFrameNr[6] );
    277         hPixelEdgeMedian[pulse_order]->Draw();
     298        hPixelEdgeMedian[pulse_order]->Draw("E1");
     299        hPixelEdgeMedian[pulse_order]->SetLineColor(kBlack);
     300        hPixelEdgeMedian[pulse_order]->SetMarkerColor(kBlue);
     301        hPixelEdgeMedian[pulse_order]->SetMarkerStyle(mrkStyle);
     302        hPixelEdgeMedian[pulse_order]->SetMarkerSize(mrkSize);
    278303
    279304        pixelCanvas[pulse_order]->cd( histoFrameNr[7] );
    280         hPixelEdgeMean[pulse_order]->Draw();
     305        hPixelEdgeMean[pulse_order]->Draw("E1");
     306        hPixelEdgeMean[pulse_order]->SetLineColor(kBlack);
     307        hPixelEdgeMean[pulse_order]->SetMarkerColor(kBlue);
     308        hPixelEdgeMean[pulse_order]->SetMarkerStyle(mrkStyle);
     309        hPixelEdgeMean[pulse_order]->SetMarkerSize(mrkSize);
    281310//        hPixelEdgeMax[pulse_order]->Draw("SAME");
    282311//        hPixelEdgeMedian[pulse_order]->Draw("SAME");
     
    10221051                        (mGainMean*(order+1)) + 10,
    10231052                        "Y");
    1024 
    10251053    histo->GetXaxis()->SetTitle( "Timeslices [a.u.]" );
    10261054    histo->GetYaxis()->SetTitle( "Amplitude [mV]" );
Note: See TracChangeset for help on using the changeset viewer.