BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
WidgetQuality.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// WidgetQuality is a class that creates some basic validation plots that are
8// useful for determining the momentum range for a sample.
9//
10// Plots include: cos(theta), momentum, momentum vs. cos(theta), nhit vs. pt,
11// and dE/dx vs. momentum (with lines defining mom. range used in calibration)
12//
13// For additional details, see the Widget document.
14//
15//********************************************************************************
16#ifndef WIDGETQUALITY_H
17#define WIDGETQUALITY_H
18
19#include <vector>
20#include <string>
21#include <iostream>
22#include <stdlib.h>
23#include <sys/stat.h>
24#include <unistd.h>
25
26#include "TFile.h"
27#include "TTree.h"
28#include "TH1F.h"
29#include "TH2F.h"
30#include "TCanvas.h"
31#include "TLine.h"
32
33#include "WidgetConstants.h"
34
36
37 public:
38
40 WidgetQuality(int type, double* bgmax, double* bgmin);
41 virtual ~WidgetQuality() {};
42
43 // make histograms for validation (no plotting)
44 void makeHistograms( std::vector<TString> filenames, TString outfilename );
45
46 // plot histograms for validation
47 void plotHistograms( TString outfilename );
48
49 private:
50
51 int m_type; // flag for MC type: 0 if BESIII, 1 if BELLEII
52
53 double m_mass[5]; // particle masses
54 double m_upperp[5]; // upper bound on the momentum
55 double m_lowerp[5]; // lower bound on the momentum
56};
57#endif
void makeHistograms(std::vector< TString > filenames, TString outfilename)
void plotHistograms(TString outfilename)
virtual ~WidgetQuality()