FairRoot/PandaRoot
Public Member Functions | Private Attributes | List of all members
PndSdsFEAmpModelSimple Class Reference

#include <PndSdsFEAmpModelSimple.h>

Public Member Functions

 PndSdsFEAmpModelSimple ()
 
virtual ~PndSdsFEAmpModelSimple ()
 
double Definition (double *x, double *params)
 
int GetModelNumber ()
 

Private Attributes

const int fModelNumber
 

Detailed Description

Definition at line 15 of file PndSdsFEAmpModelSimple.h.

Constructor & Destructor Documentation

PndSdsFEAmpModelSimple::PndSdsFEAmpModelSimple ( )

Definition at line 11 of file PndSdsFEAmpModelSimple.cxx.

11  : fModelNumber(1) {
12 }
PndSdsFEAmpModelSimple::~PndSdsFEAmpModelSimple ( )
virtual

Definition at line 14 of file PndSdsFEAmpModelSimple.cxx.

14  {
15 }

Member Function Documentation

double PndSdsFEAmpModelSimple::Definition ( double *  x,
double *  params 
)

Definition at line 17 of file PndSdsFEAmpModelSimple.cxx.

References CAMath::Max().

Referenced by PndSdsFESimple::PndSdsFESimple().

17  {
18 
19  // params[0] = charge time [ns]
20  // params[1] = constant current to discharge the capacitor of the amplifier [e/ns]
21  // params[2] = charge [e]
22 
23  if( *x <= 0 )
24  {
25  return 0;
26  }
27  else if (*x <= params[0])
28  {
29  return *x * params[2] / params[0];
30  }
31  else
32  {
33  return TMath::Max( params[2]- ((*x- params[0])* params[1]),0.0);
34  }
35 }
static T Max(const T &x, const T &y)
Definition: PndCAMath.h:36
Double_t x
int PndSdsFEAmpModelSimple::GetModelNumber ( )

Member Data Documentation

const int PndSdsFEAmpModelSimple::fModelNumber
private

Definition at line 23 of file PndSdsFEAmpModelSimple.h.

Referenced by GetModelNumber().


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