ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ReconRandomiser Class Reference

#include <ReconRandomiser.h>

Inheritance diagram for ReconRandomiser:

Public Member Functions

 ReconRandomiser ()
 
bool Execute ()
 
bool Finalise ()
 
bool Initialise (std::string configfile, DataModel &data)
 

Private Types

enum  LogLevel {
  FATAL =-1, ERROR =0, WARN =1, INFO =2,
  DEBUG1 =3, DEBUG2 =4, DEBUG3 =5
}
 

Private Member Functions

void CreateVertex (double *pos)
 
Distribution_t GetDistributionType (double width, const char *axis)
 
double GetRandomNumber (Distribution_t dist, double max, double mean, double width, const int maxcount)
 
void StreamToLog (int level)
 

Private Attributes

long int fCurrEvent
 
bool fFlatR
 
double fMaxRPos
 
double fMaxZPos
 
long int fNEvents
 
int fNVerticesMean
 
TRandom3 * fRand
 
bool fRandomDirection
 
double fTMax
 
double fTMin
 
Distribution_t fXDistribution
 
double fXMean
 
double fXWidth
 
Distribution_t fYDistribution
 
double fYMean
 
double fYWidth
 
Distribution_t fZDistribution
 
double fZMean
 
double fZWidth
 
util::Stopwatchm_stopwatch
 The stopwatch, if we're using one. More...
 
std::string m_stopwatch_file
 Image filename to save the histogram to, if required. More...
 
int m_verbose
 
std::stringstream ss
 

Detailed Description

Definition at line 32 of file ReconRandomiser.h.

Member Enumeration Documentation

Enumerator
FATAL 
ERROR 
WARN 
INFO 
DEBUG1 
DEBUG2 
DEBUG3 

Definition at line 91 of file ReconRandomiser.h.

Constructor & Destructor Documentation

ReconRandomiser::ReconRandomiser ( )

Definition at line 3 of file ReconRandomiser.cpp.

Member Function Documentation

void ReconRandomiser::CreateVertex ( double *  pos)
private

Definition at line 175 of file ReconRandomiser.cpp.

bool ReconRandomiser::Execute ( )

Definition at line 111 of file ReconRandomiser.cpp.

bool ReconRandomiser::Finalise ( )

Definition at line 151 of file ReconRandomiser.cpp.

Distribution_t ReconRandomiser::GetDistributionType ( double  width,
const char *  axis 
)
private

Definition at line 247 of file ReconRandomiser.cpp.

double ReconRandomiser::GetRandomNumber ( Distribution_t  dist,
double  max,
double  mean,
double  width,
const int  maxcount 
)
private

Definition at line 209 of file ReconRandomiser.cpp.

bool ReconRandomiser::Initialise ( std::string  configfile,
DataModel data 
)

Definition at line 6 of file ReconRandomiser.cpp.

void ReconRandomiser::StreamToLog ( int  level)
inlineprivate

Definition at line 86 of file ReconRandomiser.h.

Member Data Documentation

long int ReconRandomiser::fCurrEvent
private

Definition at line 49 of file ReconRandomiser.h.

bool ReconRandomiser::fFlatR
private

Definition at line 63 of file ReconRandomiser.h.

double ReconRandomiser::fMaxRPos
private

Definition at line 62 of file ReconRandomiser.h.

double ReconRandomiser::fMaxZPos
private

Definition at line 61 of file ReconRandomiser.h.

long int ReconRandomiser::fNEvents
private

Definition at line 50 of file ReconRandomiser.h.

int ReconRandomiser::fNVerticesMean
private

Definition at line 52 of file ReconRandomiser.h.

TRandom3* ReconRandomiser::fRand
private

Definition at line 75 of file ReconRandomiser.h.

bool ReconRandomiser::fRandomDirection
private

Definition at line 73 of file ReconRandomiser.h.

double ReconRandomiser::fTMax
private

Definition at line 70 of file ReconRandomiser.h.

double ReconRandomiser::fTMin
private

Definition at line 69 of file ReconRandomiser.h.

Distribution_t ReconRandomiser::fXDistribution
private

Definition at line 64 of file ReconRandomiser.h.

double ReconRandomiser::fXMean
private

Definition at line 55 of file ReconRandomiser.h.

double ReconRandomiser::fXWidth
private

Definition at line 56 of file ReconRandomiser.h.

Distribution_t ReconRandomiser::fYDistribution
private

Definition at line 65 of file ReconRandomiser.h.

double ReconRandomiser::fYMean
private

Definition at line 57 of file ReconRandomiser.h.

double ReconRandomiser::fYWidth
private

Definition at line 58 of file ReconRandomiser.h.

Distribution_t ReconRandomiser::fZDistribution
private

Definition at line 66 of file ReconRandomiser.h.

double ReconRandomiser::fZMean
private

Definition at line 59 of file ReconRandomiser.h.

double ReconRandomiser::fZWidth
private

Definition at line 60 of file ReconRandomiser.h.

util::Stopwatch* ReconRandomiser::m_stopwatch
private

The stopwatch, if we're using one.

Definition at line 78 of file ReconRandomiser.h.

std::string ReconRandomiser::m_stopwatch_file
private

Image filename to save the histogram to, if required.

Definition at line 80 of file ReconRandomiser.h.

int ReconRandomiser::m_verbose
private

Definition at line 82 of file ReconRandomiser.h.

std::stringstream ReconRandomiser::ss
private

Definition at line 84 of file ReconRandomiser.h.


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