icemc
 All Classes Namespaces Files Functions Variables Friends Macros Pages
Functions
Tools Namespace Reference

Functions to make life easier. Many of these probably exist other places. More...

Functions

double dMax (double, double)
 
double dMax (const double *, int)
 
double dvMax (const vector< double >)
 
double dsMax (TSpline5 *sp)
 
double dMin (const double *, int)
 
double dMinNotZero (const double *, int)
 
double dMin (double, double)
 
double getMaxMagnitude (vector< double > v)
 
int Getifreq (double freq, double freq_low, double freq_high, int n)
 
void InterpolateReal (double *array, const unsigned n)
 
void InterpolateComplex (double *array, const unsigned n)
 
void four1 (double *data, const int isign, int nsize)
 
void realft (double *data, const int isign, int nsize)
 
void SWAP (double &a, double &b)
 
void NormalTimeOrdering (const int n, double *volts)
 
void ShiftLeft (double *x, const int n, int ishift)
 
void ShiftRight (double *x, const int n, int ishift)
 
double GetFWHM (TH1 *h1)
 
void MakeGraph (int index, int n, double *time, double *volts, TGraph *&mygraph, TH2F *&h2, double scalex, double scaley, string xaxistitle, string yaxistitle)
 
double dDot (double *, double *, int)
 
void dCross (double *, double *, double *)
 
double dSquare (double *)
 
double Step (double x)
 
double dGetTheta (double *)
 
double dGetPhi (double *)
 
int WhichIsMax (double *x, int n)
 
int WhichIsMin (double *x, int n)
 
double dSum (double *, int)
 
int iSum (int *, int)
 
void Print (double *, int)
 
void Print (int *, int)
 
void Zero (double *anarray, int n)
 
void Zero (int *anarray, int n)
 
int NonZero (double *anarray, int n)
 
void GetNumbersAsStringArray (ifstream &fin, ofstream &fout, vector< string > &vnumbers, int nelements)
 
void GetNext2NumbersAsString (ifstream &fin, ofstream &fout, string &number1, string &number2, string &stherest)
 
void GetNextNumberAsString (ifstream &fin, ofstream &fout, string &number)
 
int findIndex (double *freqlab, double freq, int npoints, double min, double max)
 
void get_random_rician (double signal, double signal_phase, double sigma, double &amplitude, double &phase)
 
void get_circular_bivariate_normal_random_variable (double &rand_gauss_a, double &rand_gauss_b)
 
int round (double number)
 
double AbbyPhiCalc (double x_abby, double y_abby)
 
template<class T , class U >
void vector_element_convert (const vector< T > &input, vector< U > &output)
 
template<class T , class U >
void nested_vector_element_convert (const vector< vector< T > > &input, vector< vector< U > > &output)
 

Detailed Description

Functions to make life easier. Many of these probably exist other places.

Function Documentation

double Tools::AbbyPhiCalc ( double  x_abby,
double  y_abby 
)
void Tools::dCross ( double *  ,
double *  ,
double *   
)
double Tools::dDot ( double *  ,
double *  ,
int   
)
double Tools::dGetPhi ( double *  )
double Tools::dGetTheta ( double *  )
double Tools::dMax ( double  a,
double  b 
)
double Tools::dMax ( const double *  x,
int  n 
)
double Tools::dMin ( const double *  x,
int  n 
)
double Tools::dMin ( double  x,
double  y 
)
double Tools::dMinNotZero ( const double *  x,
int  n 
)
double Tools::dsMax ( TSpline5 *  sp)
double Tools::dSquare ( double *  p)
double Tools::dSum ( double *  ,
int   
)
double Tools::dvMax ( const vector< double >  x)
int Tools::findIndex ( double *  freqlab,
double  freq,
int  npoints,
double  min,
double  max 
)
void Tools::four1 ( double *  data,
const int  isign,
int  nsize 
)
void Tools::get_circular_bivariate_normal_random_variable ( double &  rand_gauss_a,
double &  rand_gauss_b 
)
void Tools::get_random_rician ( double  signal,
double  signal_phase,
double  sigma,
double &  amplitude,
double &  phase 
)
double Tools::GetFWHM ( TH1 *  h1)
int Tools::Getifreq ( double  freq,
double  freq_low,
double  freq_high,
int  n 
)
double Tools::getMaxMagnitude ( vector< double >  v)
void Tools::GetNext2NumbersAsString ( ifstream &  fin,
ofstream &  fout,
string &  number1,
string &  number2,
string &  stherest 
)
void Tools::GetNextNumberAsString ( ifstream &  fin,
ofstream &  fout,
string &  number 
)
void Tools::GetNumbersAsStringArray ( ifstream &  fin,
ofstream &  fout,
vector< string > &  vnumbers,
int  nelements 
)
void Tools::InterpolateComplex ( double *  array,
const unsigned  n 
)
void Tools::InterpolateReal ( double *  array,
const unsigned  n 
)
int Tools::iSum ( int *  thisarray,
int  n 
)
void Tools::MakeGraph ( int  index,
int  n,
double *  time,
double *  volts,
TGraph *&  mygraph,
TH2F *&  h2,
double  scalex,
double  scaley,
string  xaxistitle,
string  yaxistitle 
)
template<class T , class U >
void Tools::nested_vector_element_convert ( const vector< vector< T > > &  input,
vector< vector< U > > &  output 
)
int Tools::NonZero ( double *  anarray,
int  n 
)
void Tools::NormalTimeOrdering ( const int  n,
double *  volts 
)
void Tools::Print ( double *  p,
int  i 
)
void Tools::Print ( int *  p,
int  i 
)
void Tools::realft ( double *  data,
const int  isign,
int  nsize 
)
int Tools::round ( double  number)
void Tools::ShiftLeft ( double *  x,
const int  n,
int  ishift 
)
void Tools::ShiftRight ( double *  x,
const int  n,
int  ishift 
)
double Tools::Step ( double  x)
void Tools::SWAP ( double &  a,
double &  b 
)
template<class T , class U >
void Tools::vector_element_convert ( const vector< T > &  input,
vector< U > &  output 
)
int Tools::WhichIsMax ( double *  x,
int  n 
)
int Tools::WhichIsMin ( double *  x,
int  n 
)
void Tools::Zero ( double *  anarray,
int  n 
)
void Tools::Zero ( int *  anarray,
int  n 
)