LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
showerreco::ShowerCalo Class Reference

#include "ShowerCalo.h"

Public Member Functions

 ShowerCalo ()
 Default constructor. More...
 
virtual ~ShowerCalo ()
 Default destructor. More...
 
std::pair< double, double > ShowerEnergy (double energy,::showerreco::energy::RecoType_t type=energy::kDEFAULT, bool mc=true)
 

Detailed Description

User defined class ShowerCalo ... these comments are used to generate doxygen documentation!

Definition at line 39 of file ShowerCalo.h.

Constructor & Destructor Documentation

showerreco::ShowerCalo::ShowerCalo ( )
inline

Default constructor.

Definition at line 43 of file ShowerCalo.h.

43 {};
virtual showerreco::ShowerCalo::~ShowerCalo ( )
inlinevirtual

Default destructor.

Definition at line 46 of file ShowerCalo.h.

References energy, showerreco::energy::kDEFAULT, and tca::ShowerEnergy().

46 {};

Member Function Documentation

std::pair< double, double > showerreco::ShowerCalo::ShowerEnergy ( double  energy,
::showerreco::energy::RecoType_t  type = energy::kDEFAULT,
bool  mc = true 
)

Definition at line 9 of file ShowerCalo.cxx.

References showerreco::energy::DEFAULT_ECorr, showerreco::energy::DEFAULT_ECorrError, and showerreco::energy::kDEFAULT.

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 
23  result_err = ::showerreco::energy::DEFAULT_ECorrError * result;
24  break;
25 
26  default: throw ShowerRecoException(Form("RecoType_t: %d not supported!", type));
27  }
28 
29  return std::make_pair(result, result_err);
30  }
static const double DEFAULT_ECorr
Definition: ShowerCalo.h:26
double energy
Definition: plottest35.C:25
static const double DEFAULT_ECorrError
Definition: ShowerCalo.h:27

The documentation for this class was generated from the following files: