#include <DataOut.h>
Definition at line 19 of file DataOut.h.
Log level enumerations.
Enumerator |
---|
FATAL |
|
ERROR |
|
WARN |
|
INFO |
|
DEBUG1 |
|
DEBUG2 |
|
DEBUG3 |
|
Definition at line 94 of file DataOut.h.
void DataOut::AddTruthInfo |
( |
WCSimRootEvent * |
wcsim_event, |
|
|
WCSimRootEvent * |
original_wcsim_event, |
|
|
const TimeDelta & |
time_shift |
|
) |
| |
|
private |
If this is an MC file, we also need to add
Definition at line 272 of file DataOut.cpp.
void DataOut::CreateSubEvents |
( |
WCSimRootEvent * |
wcsim_event | ) |
|
|
private |
If there are multiple triggers in the event, create subevents (i.e. new WCSimRootTrigger's) in the WCSimRootEvent Also sets the time correctly
Definition at line 185 of file DataOut.cpp.
bool DataOut::Execute |
( |
| ) |
|
void DataOut::ExecuteSubDet |
( |
WCSimRootEvent * |
wcsim_event, |
|
|
std::vector< SubSample > & |
samples, |
|
|
WCSimRootEvent * |
original_wcsim_event = 0 |
|
) |
| |
|
private |
Runs other methods to take information from the DataModel and create/populate the WCSimRootEvent.
Definition at line 155 of file DataOut.cpp.
void DataOut::FillHits |
( |
WCSimRootEvent * |
wcsim_event, |
|
|
std::vector< SubSample > & |
samples |
|
) |
| |
|
private |
For every hit, if it's in a trigger window, add it to the appropriate WCSimRootTrigger in the WCSimRootEvent
Definition at line 231 of file DataOut.cpp.
bool DataOut::Finalise |
( |
| ) |
|
void DataOut::FinaliseSubEvents |
( |
WCSimRootEvent * |
wcsim_event | ) |
|
|
private |
TimeDelta DataOut::GetOffset |
( |
WCSimRootEvent * |
original_wcsim_event = 0 | ) |
|
|
private |
bool DataOut::Initialise |
( |
std::string |
configfile, |
|
|
DataModel & |
data |
|
) |
| |
void DataOut::StreamToLog |
( |
int |
level | ) |
|
|
inlineprivate |
Print the current value of the streamer at the set log level, then clear the streamer
Definition at line 88 of file DataOut.h.
Combined list of triggers from all sources (ID+OD)
Definition at line 63 of file DataOut.h.
Current event number.
Definition at line 68 of file DataOut.h.
TTree* DataOut::m_event_tree |
|
private |
Tree contain WCSimRootEvent(s), and the original WCSim filename / event number.
Definition at line 56 of file DataOut.h.
WCSimRootEvent* DataOut::m_id_wcsimevent_triggered |
|
private |
Output ROOT event structure for ID.
Definition at line 58 of file DataOut.h.
WCSimRootEvent* DataOut::m_od_wcsimevent_triggered |
|
private |
Output ROOT event structure for OD.
Definition at line 60 of file DataOut.h.
TFile* DataOut::m_output_file |
|
private |
Output ROOT file.
Definition at line 54 of file DataOut.h.
std::string DataOut::m_output_filename |
|
private |
Output ROOT filename that this tool RECREATE's.
Definition at line 52 of file DataOut.h.
bool DataOut::m_save_multiple_hits_per_trigger |
|
private |
If false, only 1 hit is allowed to be saved per trigger, rather than all hits from that trigger.
Definition at line 73 of file DataOut.h.
bool DataOut::m_save_only_failed_hits |
|
private |
If true, saves hits that failed the trigger, rather those that passed.
Definition at line 71 of file DataOut.h.
std::stringstream DataOut::m_ss |
|
private |
For easy formatting of Log messages.
Definition at line 84 of file DataOut.h.
The stopwatch, if we're using one.
Definition at line 76 of file DataOut.h.
std::string DataOut::m_stopwatch_file |
|
private |
Image filename to save the histogram to, if required.
Definition at line 78 of file DataOut.h.
A time used to offset all hit times. Set by config file.
Definition at line 65 of file DataOut.h.
Verbosity level, as defined in tool parameter file.
Definition at line 81 of file DataOut.h.
The documentation for this class was generated from the following files: