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

#include <TriggerOutput.h>

Inheritance diagram for TriggerOutput:

Public Member Functions

 TriggerOutput ()
 
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

double absolute_time (TimeDelta d)
 
void StreamToLog (int level)
 

Private Attributes

TTree * m_header_tree
 header More...
 
float m_interpose_interval
 
TFile * m_output_file
 Output ROOT file. More...
 
std::string m_output_filename
 Output ROOT filename that this tool RECREATE's. 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...
 
bool m_trigger_OD
 Trigger on OD digits, rather than ID digits? More...
 
TTree * m_triggers_tree
 Tree containing triggers. More...
 
int m_verbose
 
double the_mask_end_time
 The ending time of the hit mask. More...
 
double the_mask_start_time
 The starting time of the hit mask. More...
 
double the_readout_end_time
 The ending time of the trigger window. More...
 
double the_readout_start_time
 The starting time of the trigger window. More...
 
std::vector< float > the_trigger_info
 extra info from the trigger More...
 
double the_trigger_time
 The actual time of the trigger. More...
 
TriggerType_t the_type
 The type of Trigger. More...
 

Detailed Description

Definition at line 15 of file TriggerOutput.h.

Member Enumeration Documentation

Enumerator
FATAL 
ERROR 
WARN 
INFO 
DEBUG1 
DEBUG2 
DEBUG3 

Definition at line 72 of file TriggerOutput.h.

Constructor & Destructor Documentation

TriggerOutput::TriggerOutput ( )

Definition at line 3 of file TriggerOutput.cpp.

Member Function Documentation

double TriggerOutput::absolute_time ( TimeDelta  d)
private

Definition at line 141 of file TriggerOutput.cpp.

bool TriggerOutput::Execute ( )

The number of triggers

The type of Trigger

The starting time of the trigger window

The ending time of the trigger window

The starting time of the hit mask

The ending time of the hit mask

The actual time of the trigger

Additional information, specific to the trigger

Definition at line 65 of file TriggerOutput.cpp.

bool TriggerOutput::Finalise ( )

Definition at line 113 of file TriggerOutput.cpp.

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

Definition at line 6 of file TriggerOutput.cpp.

void TriggerOutput::StreamToLog ( int  level)
inlineprivate

Definition at line 67 of file TriggerOutput.h.

Member Data Documentation

TTree* TriggerOutput::m_header_tree
private

header

Definition at line 37 of file TriggerOutput.h.

float TriggerOutput::m_interpose_interval
private

Definition at line 41 of file TriggerOutput.h.

TFile* TriggerOutput::m_output_file
private

Output ROOT file.

Definition at line 35 of file TriggerOutput.h.

std::string TriggerOutput::m_output_filename
private

Output ROOT filename that this tool RECREATE's.

Definition at line 33 of file TriggerOutput.h.

std::stringstream TriggerOutput::m_ss
private

Definition at line 65 of file TriggerOutput.h.

util::Stopwatch* TriggerOutput::m_stopwatch
private

The stopwatch, if we're using one.

Definition at line 59 of file TriggerOutput.h.

std::string TriggerOutput::m_stopwatch_file
private

Image filename to save the histogram to, if required.

Definition at line 61 of file TriggerOutput.h.

bool TriggerOutput::m_trigger_OD
private

Trigger on OD digits, rather than ID digits?

Definition at line 30 of file TriggerOutput.h.

TTree* TriggerOutput::m_triggers_tree
private

Tree containing triggers.

Definition at line 39 of file TriggerOutput.h.

int TriggerOutput::m_verbose
private

Definition at line 63 of file TriggerOutput.h.

double TriggerOutput::the_mask_end_time
private

The ending time of the hit mask.

Definition at line 52 of file TriggerOutput.h.

double TriggerOutput::the_mask_start_time
private

The starting time of the hit mask.

Definition at line 50 of file TriggerOutput.h.

double TriggerOutput::the_readout_end_time
private

The ending time of the trigger window.

Definition at line 48 of file TriggerOutput.h.

double TriggerOutput::the_readout_start_time
private

The starting time of the trigger window.

Definition at line 46 of file TriggerOutput.h.

std::vector<float> TriggerOutput::the_trigger_info
private

extra info from the trigger

Definition at line 56 of file TriggerOutput.h.

double TriggerOutput::the_trigger_time
private

The actual time of the trigger.

Definition at line 54 of file TriggerOutput.h.

TriggerType_t TriggerOutput::the_type
private

The type of Trigger.

Definition at line 44 of file TriggerOutput.h.


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