7 if(configfile!=
"") m_variables.Initialise(configfile);
14 bool use_stopwatch =
false;
15 m_variables.Get(
"use_stopwatch", use_stopwatch);
24 Log(
"DEBUG: TriggersComparison::Initialise opening output file...",
DEBUG2,
m_verbose);
26 Log(
"ERROR: outfilename configuration not found. Cancelling initialisation",
ERROR,
m_verbose);
32 Log(
"DEBUG: TriggersComparison::Initialise opening input file 1...",
DEBUG2,
m_verbose);
34 Log(
"ERROR: inputfilename1 configuration not found. Cancelling initialisation",
ERROR,
m_verbose);
40 m_header_tree1->GetEntry(0);
46 Log(
"DEBUG: TriggersComparison::Initialise opening input file 2...",
DEBUG2,
m_verbose);
48 Log(
"ERROR: inputfilename2 configuration not found. Cancelling initialisation",
ERROR,
m_verbose);
54 m_header_tree2->GetEntry(0);
191 for(
int itime = 0; itime <= (int)(time_max - time_min + 1)/
timebinsize; itime ++){
196 if( trigger1 && trigger2 )
util::Stopwatch * m_stopwatch
The stopwatch, if we're using one.
std::string Result(std::string method_name, std::string output_file="")
std::string m_input_filename1
names of input ROOT trees
long int m_n_events2
The total number of events from file2.
void Start()
Start the stopwatch.
float the_readout_end_time1
float the_readout_start_time1
long int m_first_event_num1
The first event number from file1 to read.
StopwatchTimes Stop()
Stop the stopwatch, returning the CPU time.
TH1F * h_triggertime_1
output histograms
float m_interpose_interval1
std::string m_output_filename
Output ROOT filename that this tool RECREATE's.
long int m_current_event_num1
The current event number from file1.
TFile * m_output_file
Output ROOT file.
std::string m_input_filename2
long int m_first_event_num2
The first event number from file2 to read.
TFile * m_input_file1
input ROOT files
std::string m_stopwatch_file
Image filename to save the histogram to, if required.
TTree * m_triggers_tree1
input trees containing triggers
TH1F * h_selections_intersection
long int m_current_event_num2
The current event number from file2.
int m_verbose
Verbosity level, as defined in tool parameter file.
float the_trigger_time1
trigger time
long int m_n_events1
The total number of events from file1.
TTree * m_header_tree1
input headers trees
void Log(const std::string &message, const int message_level)
Format messages in the same way as for tools.
float m_interpose_interval2
float the_readout_end_time2
bool Initialise(std::string configfile, DataModel &data)
float the_readout_start_time2