ROOT  6.06/09
Reference Guide
Functions | Variables
binarySearchTime.cxx File Reference
#include <iostream>
#include <ctime>
#include <cstring>
#include <vector>
#include <TRandom2.h>
#include <TMath.h>
#include <TStopwatch.h>
#include <TApplication.h>
#include <TCanvas.h>
#include <TH2F.h>
#include <TGraph.h>
#include <TLegend.h>
#include <TAxis.h>
+ Include dependency graph for binarySearchTime.cxx:

Go to the source code of this file.

Functions

template<typename T >
bool testBinarySearch (const int n, double *tTMath, double *tStd)
 
bool binarySearchTime ()
 
int main (int argc, char **argv)
 

Variables

const int npass0 = 200000
 
const int maxint = 100
 
const int minsize = 10
 
const int maxsize = 1000000
 
const int increment = 10
 
const int arraysize = int(std::log10(double(maxsize/minsize)))+1
 
bool showGraphics = false
 
bool verbose = false
 

Function Documentation

bool binarySearchTime ( )

Definition at line 79 of file binarySearchTime.cxx.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 144 of file binarySearchTime.cxx.

template<typename T >
bool testBinarySearch ( const int  n,
double tTMath,
double tStd 
)

Definition at line 29 of file binarySearchTime.cxx.

Variable Documentation

const int arraysize = int(std::log10(double(maxsize/minsize)))+1

Definition at line 24 of file binarySearchTime.cxx.

Referenced by binarySearchTime(), vertexmedian(), and vertexsort().

const int increment = 10
const int maxint = 100

Definition at line 20 of file binarySearchTime.cxx.

Referenced by testBinarySearch().

const int maxsize = 1000000
const int minsize = 10

Definition at line 21 of file binarySearchTime.cxx.

Referenced by binarySearchTime(), TBranch::SetBasketSize(), and testBinarySearch().

const int npass0 = 200000

Definition at line 19 of file binarySearchTime.cxx.

Referenced by testBinarySearch().

bool showGraphics = false

Definition at line 26 of file binarySearchTime.cxx.

bool verbose = false