2024-11-23 16:56:50 +08:00
|
|
|
#include "BluetAnalyzer.hh"
|
|
|
|
|
|
|
|
#include "iostream"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
if (argc < 3) {
|
|
|
|
cout << "Usage: " << argv[0] << " <config file> <data file>" << endl;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
string cfgfile = argv[1];
|
|
|
|
string datafile = argv[2];
|
|
|
|
vector<string> runfiles;
|
|
|
|
runfiles.push_back(datafile);
|
|
|
|
|
|
|
|
BluetAnalyzer *bluet = new BluetAnalyzer();
|
|
|
|
bluet->readCutParameters(cfgfile);
|
|
|
|
bluet->defineFitFunctions();
|
|
|
|
bluet->defineHistograms();
|
|
|
|
bluet->readTreeData(runfiles);
|
|
|
|
bluet->FillHistograms();
|
|
|
|
bluet->postOperations();
|
2024-11-23 21:15:36 +08:00
|
|
|
bluet->saveHistograms();
|
2024-11-23 16:56:50 +08:00
|
|
|
bluet->drawHistograms();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|