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

Last change on this file since 13638 was 13638, checked in by Jens Buss, 12 years ago
initial commit: functions for extracting information from TH2 and putting into TH1 to compute a Pulse Template
File size: 1.1 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
14void
15CalcMaxPropabilityOfSlice(
16 TH2* inputHisto,
17 TH1* outputHisto,
18 int verbosityLevel
19 );
20
21void
22PlotMaxPropabilityPulse(
23 Pixel* CurrentPixel,
24 int verbosityLevel
25 );
26
27void
28FitMaxPropabilityPulse(
29 TH1F* inputHisto,
30 int verbosityLevel
31 );
32
33Double_t MedianOfH1 (
34 TH1* inputHisto
35 );
36
37void
38CalcMedianOfSlice(
39 Pixel* CurrentPixel,
40 TString overlayType,
41 int verbosityLevel
42 );
43
44bool
45WritePixelTemplateToCsv(
46 Pixel* CurrentPixel,
47 TString path,
48 TString overlayMethod,
49 int order,
50 int verbosityLevel
51 );
52
53#endif // TEMPLATEEXTRACTORS_H
54
Note: See TracBrowser for help on using the repository browser.