ShowerCalo.cxx
Go to the documentation of this file.
1 #include "ShowerCalo.h"
2 
3 #include "TString.h"
5 #include <string>
6 
7 namespace showerreco {
8 
9  std::pair<double,double> ShowerCalo::ShowerEnergy(double energy,
11  bool mc)
12  {
13  double result = -1;
14  double result_err = -1;
15 
16  switch(type) {
17 
19 
20  if(!mc) throw ShowerRecoException(Form("DATA correction not yet supported!"));
21 
22  result = ::showerreco::energy::DEFAULT_ECorr * energy + 10;
24  break;
25 
26  default:
27 
28  throw ShowerRecoException(Form("RecoType_t: %d not supported!",type));
29  }
30 
31  return std::make_pair(result,result_err);
32  }
33 
34 }
static QCString result
static const double DEFAULT_ECorr
Definition: ShowerCalo.h:28
std::pair< double, double > ShowerEnergy(double energy,::showerreco::energy::RecoType_t type=energy::kDEFAULT, bool mc=true)
Definition: ShowerCalo.cxx:9
static const double DEFAULT_ECorrError
Definition: ShowerCalo.h:29
Class def header for a class ShowerCalo.
Class def header for exception classes in ShowerReco3D package.