All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
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 41 of file ShowerCalo.h.

Constructor & Destructor Documentation

showerreco::ShowerCalo::ShowerCalo ( )
inline

Default constructor.

Definition at line 46 of file ShowerCalo.h.

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

Default destructor.

Definition at line 49 of file ShowerCalo.h.

49 {};

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.

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 
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  }
static const double DEFAULT_ECorr
Definition: ShowerCalo.h:28
static const double DEFAULT_ECorrError
Definition: ShowerCalo.h:29

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