| 1 | /** A one line description of the class.
|
|---|
| 2 | *
|
|---|
| 3 | * #include "XX.h" <BR>
|
|---|
| 4 | * -llib
|
|---|
| 5 | *
|
|---|
| 6 | * A longer description.
|
|---|
| 7 | *
|
|---|
| 8 | * @see something
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 | #ifndef PIXEL_H
|
|---|
| 12 | #define PIXEL_H
|
|---|
| 13 |
|
|---|
| 14 | // SYSTEM INCLUDES
|
|---|
| 15 |
|
|---|
| 16 | #include <TROOT.h>
|
|---|
| 17 | #include <TProfile.h>
|
|---|
| 18 | #include <TH2F.h>
|
|---|
| 19 | #include <TString.h>
|
|---|
| 20 |
|
|---|
| 21 | //
|
|---|
| 22 |
|
|---|
| 23 | // PROJECT INCLUDES
|
|---|
| 24 | //
|
|---|
| 25 | //#include "rootfilehandler.h"
|
|---|
| 26 | //#include "rootfilehandler.C"
|
|---|
| 27 |
|
|---|
| 28 | // LOCAL INCLUDES
|
|---|
| 29 | //
|
|---|
| 30 |
|
|---|
| 31 | // FORWARD REFERENCES
|
|---|
| 32 | //
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 | class Pixel
|
|---|
| 36 | {
|
|---|
| 37 | public:
|
|---|
| 38 | // LIFECYCLE
|
|---|
| 39 |
|
|---|
| 40 | /** Default constructor.
|
|---|
| 41 | */
|
|---|
| 42 | Pixel(
|
|---|
| 43 | int pixelID,
|
|---|
| 44 | int maxPulsorder,
|
|---|
| 45 | int verbosityLevel,
|
|---|
| 46 | bool stats,
|
|---|
| 47 | TFile* filename
|
|---|
| 48 | );
|
|---|
| 49 |
|
|---|
| 50 | Pixel(
|
|---|
| 51 | int pixelID,
|
|---|
| 52 | int maxPulsorder,
|
|---|
| 53 | int verbosityLevel,
|
|---|
| 54 | bool stats,
|
|---|
| 55 | TFile* filename,
|
|---|
| 56 | int pixelOverlayXaxisLeft,
|
|---|
| 57 | int pixelOverlayXaxisRight,
|
|---|
| 58 | int bSLMean,
|
|---|
| 59 | int gainMean,
|
|---|
| 60 | TString options
|
|---|
| 61 | );
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | // /** Copy constructor.
|
|---|
| 65 | // *
|
|---|
| 66 | // * @param from The value to copy to this object.
|
|---|
| 67 | // */
|
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 | /** Destructor.
|
|---|
| 71 | */
|
|---|
| 72 | ~Pixel();
|
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 | // OPERATORS
|
|---|
| 76 |
|
|---|
| 77 | // /** Assignment operator.
|
|---|
| 78 | // *
|
|---|
| 79 | // * @param from THe value to assign to this object.
|
|---|
| 80 | // *
|
|---|
| 81 | // * @return A reference to this object.
|
|---|
| 82 | // */
|
|---|
| 83 | // XX& operator=(const XX& from);
|
|---|
| 84 |
|
|---|
| 85 | // OPERATIONS
|
|---|
| 86 |
|
|---|
| 87 | void BookPixelHistos();
|
|---|
| 88 | void DeletePixelHistos();
|
|---|
| 89 | void DrawHistograms(
|
|---|
| 90 | TCanvas **pixelCanvas, //Array of Canvases
|
|---|
| 91 | int *histoFrameNR //Array with Canvas Frame numbers
|
|---|
| 92 | );
|
|---|
| 93 |
|
|---|
| 94 | //Distributions
|
|---|
| 95 | void BookDistributionHistos();
|
|---|
| 96 | void DeleteDistributionHistos();
|
|---|
| 97 | void DrawDistributionHistograms(
|
|---|
| 98 | TCanvas **pixelCanvas, //Array of Canvases
|
|---|
| 99 | int *histoFrameNr //Array with Canvas Frame numbers
|
|---|
| 100 | );
|
|---|
| 101 |
|
|---|
| 102 | void BookTemplateHistos();
|
|---|
| 103 | void DeleteTemplateHistos();
|
|---|
| 104 |
|
|---|
| 105 | //File Handling
|
|---|
| 106 | void SavePixelHistograms(const char *loc_fname, bool);
|
|---|
| 107 | void LoadPulseHistos( );
|
|---|
| 108 |
|
|---|
| 109 | TString HistoTitle(
|
|---|
| 110 | TString histo_title,
|
|---|
| 111 | int order
|
|---|
| 112 | );
|
|---|
| 113 |
|
|---|
| 114 | TString HistoName(
|
|---|
| 115 | TString histoname,
|
|---|
| 116 | int order
|
|---|
| 117 | );
|
|---|
| 118 |
|
|---|
| 119 | // ACCESS
|
|---|
| 120 | // INQUIRY
|
|---|
| 121 | int mChid;
|
|---|
| 122 | bool mStats;
|
|---|
| 123 | int mMaxPulseOrder;
|
|---|
| 124 | int mVerbosityLevel;
|
|---|
| 125 | int mPixelOverlayXaxisLeft;
|
|---|
| 126 | int mPixelOverlayXaxisRight;
|
|---|
| 127 | int mBSLMean;
|
|---|
| 128 | int mGainMean;
|
|---|
| 129 | TString mOptions;
|
|---|
| 130 |
|
|---|
| 131 | //Pixel Histos
|
|---|
| 132 | TH2F** hMaxOverlay; //histogrammm for overlay of detected Peaks
|
|---|
| 133 | TH2F** hEdgeOverlay;
|
|---|
| 134 | TProfile** hMaxProfile; //histogrammm for Profile of detected Peaks
|
|---|
| 135 | TProfile** hEdgeProfile; //histogrammm for Profile of detected Peaks
|
|---|
| 136 |
|
|---|
| 137 | //Distribution Histos
|
|---|
| 138 | TH1F** hSlopeRisingEdge;
|
|---|
| 139 | TH1I** hRisingEdgeToMax;
|
|---|
| 140 | TH1I** hPosOfMax;
|
|---|
| 141 |
|
|---|
| 142 | //Template Histos
|
|---|
| 143 | TH1F** hPixelMax;
|
|---|
| 144 | TH1F** hPixelMedian;
|
|---|
| 145 | TH1F** hPixelMean;
|
|---|
| 146 |
|
|---|
| 147 | TObjArray* hList;
|
|---|
| 148 |
|
|---|
| 149 | TFile* mRootFile;
|
|---|
| 150 |
|
|---|
| 151 | protected:
|
|---|
| 152 | int mConstructorType;
|
|---|
| 153 | private:
|
|---|
| 154 | };
|
|---|
| 155 |
|
|---|
| 156 | // INLINE METHODS
|
|---|
| 157 | //
|
|---|
| 158 |
|
|---|
| 159 | // EXTERNAL REFERENCES
|
|---|
| 160 | //
|
|---|
| 161 |
|
|---|
| 162 | #endif // _PIXEL_H_
|
|---|