ant
A2 ant: class-based analysis framework
ant::analysis::utils::TriggerSimulation Class Reference

#include <TriggerSimulation.h>

Public Member Functions

 TriggerSimulation ()
 
bool ProcessEvent (const TEvent &event)
 ProcessEvent inspects the full event to tell trigger decision. More...
 
bool HasTriggered () const
 HasTriggered returns true if the experiment would have accepted this event. More...
 
double GetCBEnergySum () const
 GetCBEsum tries to calculate the energy sum. More...
 
double GetRefTiming () const
 GetRefTiming tries to calculate the reference timing, typically given by the analog energy sum. More...
 
double GetCorrectedTaggerTime (const TTaggerHit &taggerhit) const
 GetCorrectedTaggerTime improves the timing resolution by removing the trigger offset. More...
 

Constructor & Destructor Documentation

◆ TriggerSimulation()

TriggerSimulation::TriggerSimulation ( )

Member Function Documentation

◆ GetCBEnergySum()

double ant::analysis::utils::TriggerSimulation::GetCBEnergySum ( ) const
inline

GetCBEsum tries to calculate the energy sum.

Returns
Crystal Ball energy sum in MeV

◆ GetCorrectedTaggerTime()

double TriggerSimulation::GetCorrectedTaggerTime ( const TTaggerHit taggerhit) const

GetCorrectedTaggerTime improves the timing resolution by removing the trigger offset.

Parameters
taggerhitthe taggerhit to be corrected
Returns
corrected tagger timing in ns
Note
Typically calculated as "Taggertime - RefTiming", but might differ for various beamtimes

◆ GetRefTiming()

double ant::analysis::utils::TriggerSimulation::GetRefTiming ( ) const
inline

GetRefTiming tries to calculate the reference timing, typically given by the analog energy sum.

Returns
Crystal Ball timing offset in nanoseconds

◆ HasTriggered()

bool ant::analysis::utils::TriggerSimulation::HasTriggered ( ) const
inline

HasTriggered returns true if the experiment would have accepted this event.

Returns
the trigger decision

◆ ProcessEvent()

bool TriggerSimulation::ProcessEvent ( const TEvent event)

ProcessEvent inspects the full event to tell trigger decision.

Parameters
eventthe event under investigation
Returns
true if successful, false on failure
Todo:
The multiplicity is a much harder business, see acqu/root/src/TA2BasePhysics.cc the code there might only apply to the old trigger system before 2012

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