8 if(configfile!=
"") m_variables.Initialise(configfile);
16 bool use_stopwatch =
false;
17 m_variables.Get(
"use_stopwatch", use_stopwatch);
30 Log(
"ERROR: outfilename configuration not found. Cancelling initialisation",
ERROR,
m_verbose);
37 Log(
"DEBUG: TriggerOutput::Initialise setting up output trigger tree...",
DEBUG2,
m_verbose);
49 Log(
"DEBUG: TriggerOutput::Initialise setting up output header tree...",
DEBUG2,
m_verbose);
57 Log(
"DEBUG: TriggerOutput::Initialise filling event-independent trees...",
DEBUG2,
m_verbose);
74 std::vector<TriggerType_t> type = triggers->
m_type;
86 std::vector<std::vector<float> > info = triggers->
m_info;
88 m_ss <<
" TriggerOutput: Number of triggers " << num_triggers;
90 for(
int i=0; i<num_triggers; i++){
99 for(
unsigned int ii = 0; ii < info[i].size(); ii++)
100 m_ss <<
" info " << ii <<
" = " << info[i][ii];
TriggerType_t the_type
The type of Trigger.
std::string Result(std::string method_name, std::string output_file="")
std::string m_output_filename
Output ROOT filename that this tool RECREATE's.
double the_trigger_time
The actual time of the trigger.
void Start()
Start the stopwatch.
double the_mask_end_time
The ending time of the hit mask.
double the_mask_start_time
The starting time of the hit mask.
StopwatchTimes Stop()
Stop the stopwatch, returning the CPU time.
std::vector< TimeDelta > m_readout_end_time
The ending time of the trigger window.
std::vector< std::vector< float > > m_info
Additional information, specific to the trigger.
bool Initialise(std::string configfile, DataModel &data)
std::vector< float > the_trigger_info
extra info from the trigger
double absolute_time(TimeDelta d)
std::vector< TimeDelta > m_mask_end_time
The ending time of the hit mask.
TTree * m_triggers_tree
Tree containing triggers.
void StreamToLog(int level)
float m_interpose_interval
TTree * m_header_tree
header
std::vector< TimeDelta > m_trigger_time
The actual time of the trigger.
static std::string EnumAsString(Distribution_t dist)
std::vector< TimeDelta > m_mask_start_time
The starting time of the hit mask.
static const TimeDelta ns
TimeDelta of 1 ns.
TFile * m_output_file
Output ROOT file.
std::vector< TimeDelta > m_readout_start_time
The starting time of the trigger window.
std::string m_stopwatch_file
Image filename to save the histogram to, if required.
double the_readout_end_time
The ending time of the trigger window.
void Log(const std::string &message, const int message_level)
Format messages in the same way as for tools.
bool m_trigger_OD
Trigger on OD digits, rather than ID digits?
double the_readout_start_time
The starting time of the trigger window.
util::Stopwatch * m_stopwatch
The stopwatch, if we're using one.
unsigned int m_num_triggers
The number of triggers.
std::vector< TriggerType_t > m_type
The type of Trigger.