BluetAnalyzer/main.cc
2024-11-23 16:56:50 +08:00

29 lines
606 B
C++

#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();
bluet->drawHistograms();
return 0;
}