ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Factory.cpp
Go to the documentation of this file.
1 #include "Factory.h"
2 
3 Tool* Factory(std::string tool){
4 Tool* ret=0;
5 
6 // if (tool=="Type") tool=new Type;
7 if (tool=="DummyTool") ret=new DummyTool;
8 
9 if (tool=="TriggerOutput") ret=new TriggerOutput;
10 if (tool=="WCSimASCIReader") ret=new WCSimASCIReader;
11 if (tool=="NHits") ret=new NHits;
12 if (tool=="test_vertices") ret=new test_vertices;
13 if (tool=="WCSimReader") ret=new WCSimReader;
14 if (tool=="DataOut") ret=new DataOut;
15 #ifdef BONSAIEXISTS
16 if (tool=="BONSAI") ret=new BONSAI;
17 #endif //BONSAIEXISTS
18 if (tool=="ReconDataOut") ret=new ReconDataOut;
19 if (tool=="dimfit") ret=new dimfit;
20 if (tool=="ReconRandomiser") ret=new ReconRandomiser;
21 if (tool=="ReconDataIn") ret=new ReconDataIn;
22 if (tool=="pass_all") ret=new pass_all;
23 
24 if (tool=="ReconFilter") ret=new ReconFilter;
25 if (tool=="ReconReset") ret=new ReconReset;
26 if (tool=="PrepareSubSamples") ret=new PrepareSubSamples;
27 #ifdef FLOWEREXISTS
28 if (tool=="FLOWERRecon") ret=new FLOWERRecon;
29 #endif //FLOWEREXISTS
30 if (tool=="SupernovaDirectionCalculator") ret=new SupernovaDirectionCalculator;
31 if (tool=="Calibrate") ret=new Calibrate;
32 if (tool=="test_vertices_reconstruction") ret=new test_vertices_reconstruction;
33 if (tool=="TriggersComparison") ret=new TriggersComparison;
34 
35 return ret;
36 }
37 
Definition: nhits.h:12
Definition: dimfit.h:11
Definition: BONSAI.h:14
Tool * Factory(std::string tool)
Definition: Factory.cpp:3