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

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