hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
BlFitHistos.h
Go to the documentation of this file.
1#ifndef BLFITHISTOS_H
2#define BLFITHISTOS_H
3
4#include "TFile.h"
5#include "HistoManager.h"
6#include "TGraphErrors.h"
7#include "TKey.h"
8#include "TList.h"
9#include "TH1.h"
10#include "TrackerHit.h"
11#include "RawSvtHit.h"
12#include "HistoManager.h"
13#include "ModuleMapper.h"
14#include "TF1.h"
15#include <string>
16#include "FlatTupleMaker.h"
17#include <math.h>
18#include "TCanvas.h"
19#include <vector>
20#include "ModuleMapper.h"
21#include "TFitResult.h"
22#include "TF1.h"
23#include <fstream>
24
31
32 public:
33 BlFitHistos(int year);
35
41 std::map<std::string,TH1F*> get1dHistos() {
42 return histos1d;
43 }
44
50 std::map<std::string,TH2F*> get2dHistos() {
51 return histos2d;
52 }
53
60 void getHistosFromFile(TFile* inFile, std::string layer = "");
61
72 void fit2DHistoChannelBaselines(std::map<std::string, TH2F*> histos2d,int rebin_, int minStats_,int deadRMS_, std::string thresholdsFileIn_, FlatTupleMaker* flat_tuple_);
73
84 void iterativeGausFit(TH1D* hist, double min, double max, double sigmaRange, double hardminimum, double hardmaximum);
85
91 void setDebug(bool value){debug_ = value;};
92
100 void backwardsIterChi2Fit(TH1D* hist, double xmin, double xmax);
101
102 private:
103
104 TH1F* fitHistos{nullptr};
105
106 protected:
107 std::map<std::string, TH2F*> histos2d;
108 std::map<std::string, TH1F*> histos1d;
109 std::map<std::string,std::map<int,int>> svtIDMap;
110 std::map<std::string,std::map<std::string,std::vector<int>>> threshMap_;
112 bool debug_{false};
113};
114
115#endif
Class used to encapsulate raw svt hit information.
Class used to encapsulate tracker hit information.
description
Definition BlFitHistos.h:30
std::map< std::string, TH2F * > histos2d
description
std::map< std::string, TH1F * > get1dHistos()
description
Definition BlFitHistos.h:41
void setDebug(bool value)
Set debug.
Definition BlFitHistos.h:91
std::map< std::string, std::map< std::string, std::vector< int > > > threshMap_
description
std::map< std::string, TH2F * > get2dHistos()
description
Definition BlFitHistos.h:50
void getHistosFromFile(TFile *inFile, std::string layer="")
Get the Histos From File object.
std::map< std::string, TH1F * > histos1d
description
TH1F * fitHistos
description
std::map< std::string, std::map< int, int > > svtIDMap
description
ModuleMapper * mmapper_
description
void fit2DHistoChannelBaselines(std::map< std::string, TH2F * > histos2d, int rebin_, int minStats_, int deadRMS_, std::string thresholdsFileIn_, FlatTupleMaker *flat_tuple_)
description
bool debug_
description
void backwardsIterChi2Fit(TH1D *hist, double xmin, double xmax)
description
void iterativeGausFit(TH1D *hist, double min, double max, double sigmaRange, double hardminimum, double hardmaximum)
description
description
description