8 #include "WCSimRootEvent.hh"
9 #include "WCSimRootGeom.hh"
10 #include "WCSimRootOptions.hh"
32 void ExecuteSubDet(WCSimRootEvent * wcsim_event, std::vector<SubSample> & samples, WCSimRootEvent * original_wcsim_event = 0);
42 void FillHits(WCSimRootEvent * wcsim_event, std::vector<SubSample> & samples);
46 void AddTruthInfo(WCSimRootEvent * wcsim_event, WCSimRootEvent * original_wcsim_event,
const TimeDelta & time_shift);
std::string m_stopwatch_file
Image filename to save the histogram to, if required.
void CreateSubEvents(WCSimRootEvent *wcsim_event)
std::stringstream m_ss
For easy formatting of Log messages.
void FillHits(WCSimRootEvent *wcsim_event, std::vector< SubSample > &samples)
WCSimRootEvent * m_od_wcsimevent_triggered
Output ROOT event structure for OD.
int m_event_num
Current event number.
TTree * m_event_tree
Tree contain WCSimRootEvent(s), and the original WCSim filename / event number.
TimeDelta m_trigger_offset
A time used to offset all hit times. Set by config file.
TFile * m_output_file
Output ROOT file.
bool Initialise(std::string configfile, DataModel &data)
TriggerInfo * m_all_triggers
Combined list of triggers from all sources (ID+OD)
bool m_save_multiple_hits_per_trigger
If false, only 1 hit is allowed to be saved per trigger, rather than all hits from that trigger...
void FinaliseSubEvents(WCSimRootEvent *wcsim_event)
void AddTruthInfo(WCSimRootEvent *wcsim_event, WCSimRootEvent *original_wcsim_event, const TimeDelta &time_shift)
void ExecuteSubDet(WCSimRootEvent *wcsim_event, std::vector< SubSample > &samples, WCSimRootEvent *original_wcsim_event=0)
Runs other methods to take information from the DataModel and create/populate the WCSimRootEvent...
TimeDelta GetOffset(WCSimRootEvent *original_wcsim_event=0)
int m_verbose
Verbosity level, as defined in tool parameter file.
void Log(const std::string &message, const int message_level)
Format messages in the same way as for tools.
WCSimRootEvent * m_id_wcsimevent_triggered
Output ROOT event structure for ID.
LogLevel
Log level enumerations.
void StreamToLog(int level)
util::Stopwatch * m_stopwatch
The stopwatch, if we're using one.
bool m_save_only_failed_hits
If true, saves hits that failed the trigger, rather those that passed.
std::string m_output_filename
Output ROOT filename that this tool RECREATE's.