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

Last change on this file since 13494 was 13492, checked in by Jens Buss, 12 years ago
added bool for saving histograms or not
File size: 2.6 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 DeletePixelHistos();
81 void DrawHistograms(
82 TCanvas *pixelCanvas, //Array of Canvases
83 int *histoFrameNR //Array with Canvas Frame numbers
84 );
85
86 void BookDistributionHistos();
87 void DeleteDistributionHistos();
88 void DrawDistributionHistograms(
89 TCanvas *pixelCanvas, //Array of Canvases
90 int *histoFrameNr //Array with Canvas Frame numbers
91 );
92
93 void SavePixelHistograms(const char *loc_fname, bool);
94
95// ACCESS
96// INQUIRY
97 int mChid;
98 int mMaxPulseOrder;
99 int mVerbosityLevel;
100 int mPixelOverlayXaxisLeft;
101 int mPixelOverlayXaxisRight;
102 int mBSLMean;
103 int mGainMean;
104 TString mOptions;
105
106 TH2F** hMaxOverlay; //histogrammm for overlay of detected Peaks
107 TH2F** hEdgeOverlay;
108 TProfile** hMaxProfile; //histogrammm for Profile of detected Peaks
109 TProfile** hEdgeProfile; //histogrammm for Profile of detected Peaks
110 TH1F** hSlopeRisingEdge;
111 TH1F** hRisingEdgeToMax;
112 TH1F** hPosOfMax;
113 TObjArray* hList;
114
115protected:
116private:
117};
118
119// INLINE METHODS
120//
121
122// EXTERNAL REFERENCES
123//
124
125#endif // _PIXEL_H_
Note: See TracBrowser for help on using the repository browser.