LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 43 of file ShowerCalo.h.

Constructor & Destructor Documentation

showerreco::ShowerCalo::ShowerCalo ( )
inline

Default constructor.

Definition at line 48 of file ShowerCalo.h.

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

Default destructor.

Definition at line 51 of file ShowerCalo.h.

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

51 {};

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 8 of file ShowerCalo.cxx.

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

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 
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  }
static const double DEFAULT_ECorr
Definition: ShowerCalo.h:30
double energy
Definition: plottest35.C:25
static const double DEFAULT_ECorrError
Definition: ShowerCalo.h:31

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