LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
,
9
::
showerreco::energy::RecoType_t
type,
10
bool
mc)
11
{
12
double
result = -1;
13
double
result_err = -1;
14
15
switch
(type) {
16
17
case ::showerreco::energy::kDEFAULT
:
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
showerreco
Definition:
ShowerCalo.cxx:6
showerreco::energy::DEFAULT_ECorr
static const double DEFAULT_ECorr
Definition:
ShowerCalo.h:30
showerreco::ShowerCalo::ShowerEnergy
std::pair< double, double > ShowerEnergy(double energy,::showerreco::energy::RecoType_t type=energy::kDEFAULT, bool mc=true)
Definition:
ShowerCalo.cxx:8
energy
double energy
Definition:
plottest35.C:25
showerreco::energy::kDEFAULT
Definition:
ShowerCalo.h:26
showerreco::energy::DEFAULT_ECorrError
static const double DEFAULT_ECorrError
Definition:
ShowerCalo.h:31
showerreco::ShowerRecoException
Definition:
ShowerRecoException.h:25
showerreco::energy::RecoType_t
RecoType_t
Definition:
ShowerCalo.h:25
ShowerCalo.h
Class def header for a class ShowerCalo.
larreco
v06_64_02
source
larreco
ShowerFinder
ShowerReco3D
ShowerCalo.cxx
Generated on Thu Jul 26 2018 13:10:16 for LArSoft by
1.8.11