source: fact/tools/rootmacros/PulseTemplates/pixel.h@ 13596

Last change on this file since 13596 was 13596, checked in by Jens Buss, 12 years ago
DrawHistograms changed to DrawOverlayHistograms, added function for drawing template histograms
File size: 3.5 KB
Line 
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
35class Pixel
36{
37public:
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 //Histogram Booking
88 void BookPixelHistos();
89 void BookDistributionHistos();
90 void BookTemplateHistos();
91
92 //Histogram Drawing
93 void DrawOverlayHistograms(
94 TCanvas **pixelCanvas, //Array of Canvases
95 int *histoFrameNR //Array with Canvas Frame numbers
96 );
97 void DrawDistributionHistograms(
98 TCanvas **pixelCanvas, //Array of Canvases
99 int *histoFrameNr //Array with Canvas Frame numbers
100 );
101 void DrawTemplateHistograms(
102 TCanvas **pixelCanvas, //Array of Canvases
103 int *histoFrameNr //Array with Canvas Frame numbers
104 );
105
106 //Histogram deletion
107 void DeletePixelHistos();
108 void DeleteDistributionHistos();
109 void DeleteTemplateHistos();
110
111 //File Handling
112 void SavePixelHistograms(const char *loc_fname, bool);
113 void LoadPulseHistos( );
114
115 //File Handling Service Functions
116 TString HistoTitle(TString, int );
117 TString HistoName(TString, int);
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
151protected:
152 int mConstructorType;
153private:
154};
155
156// INLINE METHODS
157//
158
159// EXTERNAL REFERENCES
160//
161
162#endif // _PIXEL_H_
Note: See TracBrowser for help on using the repository browser.