forked from JustynaMedrala/NewAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
57 lines (51 loc) · 2.03 KB
/
Copy pathmain.cpp
File metadata and controls
57 lines (51 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* @copyright Copyright 2020 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @file main.cpp
*/
#include "Downscaler.h"
#include "EventCategorizer.h"
#include "EventFinder.h"
#include "HitFinder.h"
#include "SignalFinder.h"
#include "SignalTransformer.h"
#include "TimeWindowCreator.h"
#include <JPetManager/JPetManager.h>
using namespace std;
int main(int argc, const char* argv[])
{
try
{
JPetManager& manager = JPetManager::getManager();
//manager.registerTask<TimeWindowCreator>("TimeWindowCreator");
//manager.registerTask<SignalFinder>("SignalFinder");
//manager.registerTask<SignalTransformer>("SignalTransformer");
//manager.registerTask<HitFinder>("HitFinder");
manager.registerTask<EventFinder>("EventFinder");
//manager.registerTask<Downscaler>("Downscaler");
manager.registerTask<EventCategorizer>("EventCategorizer");
//manager.useTask("TimeWindowCreator", "hld", "tslot.calib");
//manager.useTask("SignalFinder", "tslot.calib", "raw.sig");
//manager.useTask("SignalTransformer", "raw.sig", "phys.sig");
//manager.useTask("HitFinder", "phys.sig", "hits");
manager.useTask("EventFinder", "hits", "unk.evt");
//manager.useTask("Downscaler", "unk.evt", "presel.evt");
manager.useTask("EventCategorizer", "unk.evt", "cat.evt");
manager.run(argc, argv);
}
catch (const std::exception& except)
{
std::cerr << "Unrecoverable error occured:" << except.what() << "Exiting the program!" << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}