Ignore:
Timestamp:
05/11/12 23:14:22 (12 years ago)
Author:
Jens Buss
Message:
add functions make histogramsPritty
File:
1 edited

Legend:

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

    r13645 r13658  
    1 /**  A one line description of the class.
     1/**  container with all attributes and histograms of a pixel.
    22 *
    33 * #include "XX.h" <BR>
     
    1313
    1414// SYSTEM INCLUDES
     15//
    1516
     17// PROJECT INCLUDES
    1618#include <TROOT.h>
    1719#include <TProfile.h>
     
    2022#include <TH1F.h>
    2123#include <TString.h>
    22 
     24#include "TCanvas.h"
     25#include "TObjArray.h"
    2326//
    2427
    25 // PROJECT INCLUDES
    26 //
    2728//#include "rootfilehandler.h"
    2829//#include "rootfilehandler.C"
     
    4445    Pixel(
    4546            int         pixelID,
    46             int         maxPulsorder,
    47             int         verbosityLevel,
    48             bool        stats,
    49             TFile*      filename
    50             );
    51 
    52     Pixel(
    53             TString     pixelname,
    5447            int         maxPulsorder,
    5548            int         verbosityLevel,
     
    9689
    9790    //Histogram Booking
     91protected:
    9892    void BookPixelHistos();
    9993    void BookDistributionHistos();
     
    10195    void BookEdgeTemplateHistos();
    10296
     97    //Histogram deletion
     98    void DeletePixelHistos();
     99    void DeleteDistributionHistos();
     100    void DeleteTemplateHistos();
     101    void DeleteEdgeTemplateHistos();
     102
     103    void
     104    MakeTH1Pretty(
     105            TH1*                histo,
     106            TString             histName,
     107            TString             histTitle,
     108            int                 order
     109            );
     110    void
     111    MakeTH2Pretty(
     112            TH2*                histo,
     113            TString             histName,
     114            TString             histTitle,
     115            int                 order
     116            );
     117    void
     118    MakeTProfilePretty(
     119            TProfile*           histo,
     120            TString             histName,
     121            TString             histTitle,
     122            int                 order
     123            );
     124
     125public:
    103126    //Histogram Drawing
    104127    void DrawOverlayHistograms(
     
    119142            );
    120143
    121     //Histogram deletion
    122     void DeletePixelHistos();
    123     void DeleteDistributionHistos();
    124     void DeleteTemplateHistos();
    125     void DeleteEdgeTemplateHistos();
    126 
    127144    //File Handling
    128145    void SavePixelHistograms(TString loc_fname, bool);
     146protected:
    129147    void LoadPulseHistos( );
    130148
     149public:
    131150    //File Handling Service Functions
    132151    TString HistoTitle(TString, int );
     
    137156// INQUIRY
    138157    int             mChid;
    139     TString         mName;
    140158    bool            mStats;
    141159    int             mMaxPulseOrder;
     
    172190
    173191protected:
     192    int             mConstructorType; //0 delete distributions, 1 delete TemplateHistos
    174193private:
    175     int             mConstructorType; //0 delete distributions, 1 delete TemplateHistos
    176194};
    177195
    178 // INLINE METHODS
    179 //
    180196
    181 // EXTERNAL REFERENCES
    182 //
    183197
    184198#endif  // _PIXEL_H_
Note: See TracChangeset for help on using the changeset viewer.