Tools/InclinedShowers/MuonProfile/MuonProfile.cc
Go to the documentation of this file.
1 
10 #include <tls/MuonProfile.h>
11 #include "USC/USCMuonProfile.h"
13 
14 #include <utl/Reader.h>
15 #include <utl/Branch.h>
16 #include <utl/AugerException.h>
17 
18 #include <string>
19 
20 using namespace tls;
21 using namespace utl;
22 using namespace std;
23 
25 {
26  string modelo =
27  branch.GetName();
28  if (modelo == "USCMuonProfile") {
29  fMuonProfile = new USCMuonProfileNS::USCMuonProfile(branch);
30  fModel = eUSC;
31  }
32  else if (modelo == "ParametricMuonProfile") {
33  fMuonProfile = new ParametricMuonProfileNS::ParametricMuonProfile(branch);
34  fModel = eParametric;
35  }
36  else {
37  ostringstream msg;
38  msg << "unknown MuonProfile class: " << modelo;
39  throw utl::InvalidConfigurationException(msg.str());
40  }
41 }
42 
43 // Configure (x)emacs for this file ...
44 // Local Variables:
45 // mode:c++
46 // compile-command: "make -C .. -k"
47 // End:
Base class for exceptions arising because configuration data are not valid.
Class representing a document branch.
Definition: Branch.h:107
Muon profile interpolated from maps derived from Monte Carlo simulations. Tables from the Santiago de...
std::string GetName() const
function to get the Branch name
Definition: Branch.cc:374
This class wraps the muon profile implementation, which is based on a multi-dimensional parameterisat...

, generated on Tue Sep 26 2023.