Jpp  17.3.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Typedefs | Functions
JNANOBEACON Namespace Reference

Typedefs

typedef JCombinatorics::pair_type pair_type
 

Functions

bool comparepair (const pair_type &A, const pair_type &B)
 
TFitResultPtr Fit (TH1D *h)
 

Typedef Documentation

Definition at line 9 of file JNanobeacon.hh.

Function Documentation

bool JNANOBEACON::comparepair ( const pair_type A,
const pair_type B 
)
inline

Definition at line 10 of file JNanobeacon.hh.

10  {
11  return( abs(A.first - A.second) > abs(B.first - B.second) ) ;
12  }
TFitResultPtr JNANOBEACON::Fit ( TH1D *  h)
inline

Definition at line 14 of file JNanobeacon.hh.

14  {
15  TFitResultPtr fitresult;
16  int MaxBin = h->GetMaximumBin();
17  double maximum = h->GetBinCenter(MaxBin);
18  new TF1("fit","gaus",maximum-15,maximum+15);
19  fitresult = h->Fit("fit","QRS");
20  return fitresult;
21  }