BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
HadronCalibration.h
Go to the documentation of this file.
1//********************************************************************************
2// This file is part of the Widget, a package for performing dE/dx calibration.
3//
4// Author: Jake Bennett
5// Date: July 8, 2015
6//
7// HadronCalibration is a class designed to perform the hadron saturation
8// correction. This entails taking the means and errors prepared by the
9// WidgetPrep class and fitting in bins of cos(theta).
10//
11// For additional details, see the Widget document.
12//
13//********************************************************************************
14#ifndef HADRONCALIBRATION_H
15#define HADRONCALIBRATION_H
16
17#include <string>
18#include <sstream>
19#include <fstream>
20#include <math.h>
21#include <iostream>
22#include <stdlib.h>
23#include <vector>
24
25#include "TFile.h"
26#include "TString.h"
27#include "TTree.h"
28#include "TGraph.h"
29#include "TGraphErrors.h"
30#include "TEfficiency.h"
31#include "TLine.h"
32#include "TMultiGraph.h"
33#include "TCanvas.h"
34#include "TLegend.h"
35#include "TFitResultPtr.h"
36
37#include "HadronSaturation.h"
40
42
43 public:
44
46 virtual ~HadronCalibration() {};
47
48 // fit the beta-gamma curve
49 void fitBGCurve( std::vector< TString > particles, TString filename, std::string paramfile );
50
51 // fit the beta-gamma curve
52 void plotBGCurve( std::vector< TString > particles, TString filename, std::string paramfile );
53
54 // fit sigma vs. nhit
55 void fitSigmaVsNHit( TString filename, std::string paramfile, int mcFlag, int type );
56
57 // fit sigma vs. sin(theta)
58 void fitSigmaVsSin( TString filename, std::string paramfile, int mcFlag, int type );
59
60 // plot efficiency
61 void plotEfficiency( TString filenames[5], TString saveas, std::string paramfile, int mcFlag, int type );
62
63 private:
64
65 HadronSaturation m_hadsat;
66
67};
68#endif
void fitSigmaVsSin(TString filename, std::string paramfile, int mcFlag, int type)
void plotEfficiency(TString filenames[5], TString saveas, std::string paramfile, int mcFlag, int type)
void plotBGCurve(std::vector< TString > particles, TString filename, std::string paramfile)
virtual ~HadronCalibration()
void fitBGCurve(std::vector< TString > particles, TString filename, std::string paramfile)
void fitSigmaVsNHit(TString filename, std::string paramfile, int mcFlag, int type)