Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larreco
larreco
ShowerFinder
ShowerReco3D
ShowerCalo.cxx
Go to the documentation of this file.
1
#include "
ShowerCalo.h
"
2
3
#include "TString.h"
4
#include "
larreco/ShowerFinder/ShowerReco3D/ShowerRecoException.h
"
5
#include <string>
6
7
namespace
showerreco
{
8
9
std::pair<double,double>
ShowerCalo::ShowerEnergy
(
double
energy
,
10
::
showerreco::energy::RecoType_t
type
,
11
bool
mc)
12
{
13
double
result
= -1;
14
double
result_err = -1;
15
16
switch
(type) {
17
18
case ::showerreco::energy::kDEFAULT
:
19
20
if
(!mc)
throw
ShowerRecoException
(Form(
"DATA correction not yet supported!"
));
21
22
result =
::showerreco::energy::DEFAULT_ECorr
* energy + 10;
23
result_err =
::showerreco::energy::DEFAULT_ECorrError
*
result
;
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
}
generate_CCQE_events.energy
string energy
Definition:
generate_CCQE_events.py:15
result
static QCString result
Definition:
fortranscanner.cpp:56614
showerreco
Definition:
ShowerCalo.cxx:7
showerreco::energy::DEFAULT_ECorr
static const double DEFAULT_ECorr
Definition:
ShowerCalo.h:28
showerreco::ShowerCalo::ShowerEnergy
std::pair< double, double > ShowerEnergy(double energy,::showerreco::energy::RecoType_t type=energy::kDEFAULT, bool mc=true)
Definition:
ShowerCalo.cxx:9
type
Definition:
ShowerProducedPtrsHolder.hh:36
showerreco::energy::kDEFAULT
Definition:
ShowerCalo.h:24
showerreco::energy::DEFAULT_ECorrError
static const double DEFAULT_ECorrError
Definition:
ShowerCalo.h:29
showerreco::ShowerRecoException
Definition:
ShowerRecoException.h:25
showerreco::energy::RecoType_t
RecoType_t
Definition:
ShowerCalo.h:23
ShowerCalo.h
Class def header for a class ShowerCalo.
ShowerRecoException.h
Class def header for exception classes in ShowerReco3D package.
Generated by
1.8.11