TankResponseFactory.cc
Go to the documentation of this file.
1 
7 #include <tls/TankResponseFactory.h>
8 
9 #include <utl/AugerException.h>
10 
11 #include "Simple/TankResponse.h"
12 #include "Tabular/TankResponse.h"
13 #include "USCInter/TankResponse.h"
14 #include "Aachen/TankResponse.h"
15 
16 #include <string>
17 #include <sstream>
18 
19 using namespace tls;
20 using namespace utl;
21 using namespace std;
22 
24 {
25  string model = branch.GetName();
26  if (model == "SimpleTankResponse")
28  else if (model == "TabularTankResponse")
30  else if (model == "USCInterTankResponse")
32  else if (model == "AachenTankResponse")
34  else {
35  ostringstream msg;
36  msg << "unknown TankResponse class: " << model;
37  throw NonExistentComponentException(msg.str());
38  }
39 }
40 
41 // Configure (x)emacs for this file ...
42 // Local Variables:
43 // mode:c++
44 // compile-command: "make -C .. -k"
45 // End:
VTankResponse & GetTankResponse(const utl::Branch branch)
The method
Base class for exceptions trying to access non-existing components.
Class representing a document branch.
Definition: Branch.h:107
Interface class for coupling different tank response calculations into the reconstruction code...
Definition: VTankResponse.h:26
std::string GetName() const
function to get the Branch name
Definition: Branch.cc:374

, generated on Tue Sep 26 2023.