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

Last change on this file since 13474 was 13474, checked in by Jens Buss, 12 years ago
bugfixes after first compilation
File size: 2.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(int pixelID);
43 Pixel(
44 int pixelID = 0,
45 int maxPulsorder = 1,
46 int verbosityLevel = 0,
47 int pixelOverlayXaxisLeft = 50,
48 int pixelOverlayXaxisRight = 250,
49 int bSLMean = -1,
50 int gainMean = 10,
51 TString options = ""
52 );
53
54
55// /** Copy constructor.
56// *
57// * @param from The value to copy to this object.
58// */
59// XX(const XX& from);
60
61
62 /** Destructor.
63 */
64 ~Pixel();
65
66
67// OPERATORS
68
69// /** Assignment operator.
70// *
71// * @param from THe value to assign to this object.
72// *
73// * @return A reference to this object.
74// */
75// XX& operator=(const XX& from);
76
77// OPERATIONS
78
79 void BookPixelHistos();
80 void BookDistributionHistos();
81
82 void DrawHistograms(
83 TCanvas *pixelCanvas, //Array of Canvases
84 int *histoFrameNR //Array with Canvas Frame numbers
85 );
86 void DrawDistributionHistograms(
87 TCanvas *pixelCanvas, //Array of Canvases
88 int *histoFrameNr //Array with Canvas Frame numbers
89 );
90
91 void SavePixelHistograms(const char *loc_fname);
92
93// ACCESS
94// INQUIRY
95 int mChid;
96 int mMaxPulseOrder;
97 int mVerbosityLevel;
98 int mPixelOverlayXaxisLeft;
99 int mPixelOverlayXaxisRight;
100 int mBSLMean;
101 int mGainMean;
102 TString mOptions;
103
104 TH2F** hMaxOverlay; //histogrammm for overlay of detected Peaks
105 TH2F** hEdgeOverlay;
106 TProfile** hMaxProfile; //histogrammm for Profile of detected Peaks
107 TProfile** hEdgeProfile; //histogrammm for Profile of detected Peaks
108 TH1F** hSlopeRisingEdge;
109 TH1F** hRisingEdgeToMax;
110 TH1F** hPosOfMax;
111 TObjArray* hList;
112
113protected:
114private:
115};
116
117// INLINE METHODS
118//
119
120// EXTERNAL REFERENCES
121//
122
123#endif // _PIXEL_H_
Note: See TracBrowser for help on using the repository browser.