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
NHits Class Reference

#include <nhits.h>

Inheritance diagram for NHits:

Public Member Functions

 NHits ()
 
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 AlgNDigits (const SubSample *samples)
 CPU version of the NDigits algorithm. More...
 
void StreamToLog (int level)
 

Private Attributes

bool m_degrade_CPU
 degrade data type from float to int More...
 
std::stringstream m_ss
 
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...
 
TimeDelta m_trigger_mask_window_post
 Post-trigger time for masking digits from future tools. More...
 
TimeDelta m_trigger_mask_window_pre
 Pre-trigger time for masking digits from future tools. More...
 
bool m_trigger_OD
 Trigger on OD digits, rather than ID digits? More...
 
TimeDelta m_trigger_save_window_post
 Post-trigger time for saving digits. More...
 
TimeDelta m_trigger_save_window_pre
 Pre-trigger time for saving digits. More...
 
TimeDelta m_trigger_search_window
 Width of the sliding window. More...
 
unsigned int m_trigger_threshold
 Trigger threshold - number of digits must be above this value (equal to does not fire the trigger) More...
 
int m_verbose
 

Detailed Description

Definition at line 12 of file nhits.h.

Member Enumeration Documentation

enum NHits::LogLevel
private
Enumerator
FATAL 
ERROR 
WARN 
INFO 
DEBUG1 
DEBUG2 
DEBUG3 

Definition at line 62 of file nhits.h.

Constructor & Destructor Documentation

NHits::NHits ( )

Definition at line 3 of file nhits.cpp.

Member Function Documentation

void NHits::AlgNDigits ( const SubSample samples)
private

CPU version of the NDigits algorithm.

Definition at line 137 of file nhits.cpp.

bool NHits::Execute ( )

Definition at line 85 of file nhits.cpp.

bool NHits::Finalise ( )

Definition at line 211 of file nhits.cpp.

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

Definition at line 5 of file nhits.cpp.

void NHits::StreamToLog ( int  level)
inlineprivate

Definition at line 57 of file nhits.h.

Member Data Documentation

bool NHits::m_degrade_CPU
private

degrade data type from float to int

Definition at line 38 of file nhits.h.

std::stringstream NHits::m_ss
private

Definition at line 55 of file nhits.h.

util::Stopwatch* NHits::m_stopwatch
private

The stopwatch, if we're using one.

Definition at line 49 of file nhits.h.

std::string NHits::m_stopwatch_file
private

Image filename to save the histogram to, if required.

Definition at line 51 of file nhits.h.

TimeDelta NHits::m_trigger_mask_window_post
private

Post-trigger time for masking digits from future tools.

Definition at line 34 of file nhits.h.

TimeDelta NHits::m_trigger_mask_window_pre
private

Pre-trigger time for masking digits from future tools.

Definition at line 32 of file nhits.h.

bool NHits::m_trigger_OD
private

Trigger on OD digits, rather than ID digits?

Definition at line 36 of file nhits.h.

TimeDelta NHits::m_trigger_save_window_post
private

Post-trigger time for saving digits.

Definition at line 30 of file nhits.h.

TimeDelta NHits::m_trigger_save_window_pre
private

Pre-trigger time for saving digits.

Definition at line 28 of file nhits.h.

TimeDelta NHits::m_trigger_search_window
private

Width of the sliding window.

Definition at line 24 of file nhits.h.

unsigned int NHits::m_trigger_threshold
private

Trigger threshold - number of digits must be above this value (equal to does not fire the trigger)

Definition at line 26 of file nhits.h.

int NHits::m_verbose
private

Definition at line 53 of file nhits.h.


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