LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
ShowerCalo.cxx
Go to the documentation of this file.
1 #ifndef RECOTOOL_SHOWERCALO_CXX
2 #define RECOTOOL_SHOWERCALO_CXX
3 
4 #include "ShowerCalo.h"
5 
6 namespace showerreco {
7 
8  std::pair<double,double> ShowerCalo::ShowerEnergy(double energy,
10  bool mc)
11  {
12  double result = -1;
13  double result_err = -1;
14 
15  switch(type) {
16 
18 
19  if(!mc) throw ShowerRecoException(Form("DATA correction not yet supported!"));
20 
21  result = ::showerreco::energy::DEFAULT_ECorr * energy + 10;
22  result_err = ::showerreco::energy::DEFAULT_ECorrError * result;
23  break;
24 
25  default:
26 
27  throw ShowerRecoException(Form("RecoType_t: %d not supported!",type));
28  }
29 
30  return std::make_pair(result,result_err);
31  }
32 
33 }
34 #endif
static const double DEFAULT_ECorr
Definition: ShowerCalo.h:30
std::pair< double, double > ShowerEnergy(double energy,::showerreco::energy::RecoType_t type=energy::kDEFAULT, bool mc=true)
Definition: ShowerCalo.cxx:8
double energy
Definition: plottest35.C:25
static const double DEFAULT_ECorrError
Definition: ShowerCalo.h:31
Class def header for a class ShowerCalo.