source: fact/tools/rootmacros/PulseTemplates/templateextractors.h@ 13961

Last change on this file since 13961 was 13786, checked in by Jens Buss, 13 years ago
add include of TSystem.h
File size: 2.0 KB
Line 
1#ifndef TEMPLATEEXTRACTORS_H
2#define TEMPLATEEXTRACTORS_H
3
4#include <TROOT.h>
5#include <TMath.h>
6#include <TProfile.h>
7#include <TH2F.h>
8#include <TH1I.h>
9#include <TH1F.h>
10#include <TString.h>
11#include <TSystem.h>
12
13#include "pixel.h"
14
15/** Assignment operator.
16* @todo do me
17* @warning not implemented
18* @param from THe value to assign to this object.
19*
20* @return A reference to this object.
21*/
22
23/** CalcMaxPropabilityOfSlice(
24 TH2* inputHisto,
25 TH1* outputHisto,
26 int verbosityLevel
27 );
28* Generates a Y-Projection for each slice of a TH2 histogram
29* Then calls the Value of the bin with Maximum Value and puts it
30* into the corresponding bin of a TH1 histogram
31* @see Event::CalibrateAllPixel()
32* @see Event::CalculatePhotonCharge()
33*/
34void
35CalcMaxPropabilityOfSlice(
36 TH2* inputHisto,
37 TH1* outputHisto,
38 int verbosityLevel
39 );
40
41void
42PlotMaxPropabilityPulse(
43 Pixel* CurrentPixel,
44 TString overlayType,
45 int verbosityLevel
46 );
47
48void
49FitMaxPropabilityPulse(
50 TH1F* inputHisto,
51 int verbosityLevel
52 );
53
54Double_t MedianOfH1 (
55 TH1* inputHisto
56 );
57
58void
59PlotMedianOfSlice(
60 Pixel* CurrentPixel,
61 TString overlayType,
62 int verbosityLevel
63 );
64
65void
66PlotMeanOfSlice(
67 Pixel* CurrentPixel,
68 TString overlayType,
69 int verbosityLevel
70 );
71
72void
73ExtractPulseTemplate(
74 Pixel* CurrentPixel,
75 TString overlayType,
76 int order,
77 int verbosityLevel
78 );
79
80bool
81WritePixelTemplateToCsv(
82 Pixel* CurrentPixel,
83 TString path,
84 TString overlayMethod,
85 int order,
86 int verbosityLevel
87 );
88
89#endif // TEMPLATEEXTRACTORS_H
90
Note: See TracBrowser for help on using the repository browser.