Commit 9bde8b96 authored by Andreas Gad's avatar Andreas Gad
Browse files

renamed analysis

parent 5e56589a
......@@ -28,9 +28,9 @@ using namespace AUSA::EnergyLoss;
using namespace AUSA::Constants;
class SinglesAnalysis : public AbstractSortedAnalyzer {
class MyAnalysis : public AbstractSortedAnalyzer {
public:
SinglesAnalysis(Target &target, TFile *output) : target(target) {
MyAnalysis(Target &target, TFile *output) : target(target) {
NUM = 0;
ALPHA = new ParticleType{"He4"};
......@@ -245,13 +245,13 @@ int main(int argc, char *argv[]) {
bool sim = false;
int run = 0;
auto setup = JSON::readSetupFromJSON("../setup/setup.json");
auto target = JSON::readTargetFromJSON("../setup/targets/target.json");
auto setup = JSON::readSetupFromJSON("../../setup/setup.json");
auto target = JSON::readTargetFromJSON("../../setup/targets/target.json");
for (int i = 1; i < argc; i++) {
try {
run = stoi(argv[i]);
findFilesMatchingWildcard(Form("../data/sorted/%d*", run), input);
findFilesMatchingWildcard(Form("../../data/sorted/%d*", run), input);
} catch (invalid_argument &ia) {
cerr << "SIM!" << endl;
findFilesMatchingWildcard(argv[i], input);
......@@ -268,13 +268,13 @@ int main(int argc, char *argv[]) {
reader.setVerbose(true);
auto base = stripFileExtension(extractFileName(in));
TString outfile = ("../data/singles/" + base + "lio.root").c_str();
TString outfile = ("../../data/analyzed/" + base + "lio.root").c_str();
cout << endl << endl << "Reading from: " << in << ' ' << endl;
cout << "Printing to: " << outfile << endl;
TFile output(outfile, "RECREATE");
auto analysis = make_shared<SinglesAnalysis>(target, &output);
auto analysis = make_shared<MyAnalysis>(target, &output);
analysis->simulation = sim;
reader.attach(analysis);
reader.run();
......
......@@ -38,6 +38,6 @@ endif(CURL_FOUND)
link_libraries(${LIBRARIES})
include_directories(external/jsoncons/include)
add_executable(Singles SinglesAnalysis.cpp)
add_executable(Analysis Analysis.cpp)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment