1 #ifndef _M_COINCIDENCE_HH_
2 #define _M_COINCIDENCE_HH_
77 void Init(Diana::QEvent& ev);
80 void Do(Diana::QEvent& ev,
const Diana::QEventList& neighbours);
86 double GetTime(
const Diana::QEvent& ev);
94 void GetEventEnergy(
const Diana::QEvent &ev,
double &energy,
bool &valid)
const;
96 double GetDistanceMm(
const Diana::QEvent &ev,
const Diana::QEvent* coincident);
Version of MCoincidenceMultiplicity that uses neighbours.
double fCoincidenceRadius
std::map< int, double > fChannelPositionZ
std::set< int > fBlackList
std::vector< std::string > fPSALabels
std::map< int, ChannelInfo > fSyncTimeDifference
std::map< int, double > fChannelPositionY
void Do(Diana::QEvent &ev, const Diana::QEventList &neighbours)
Do method.
std::string fSyncTowerSource
double fCoincidenceWindow
void GetEventEnergy(const Diana::QEvent &ev, double &energy, bool &valid) const
Get the energy of the event. Throws if event is invalid and fOkInvalidTotalEnergy is false.
std::map< int, double > fChannelPositionX
double GetDistanceMm(const Diana::QEvent &ev, const Diana::QEvent *coincident)
Get the distance in mm between the centers of the main and the coincident crystals.
void Init(Diana::QEvent &ev)
Init method.
bool fOkInvalidTotalEnergy
TimeVariable fTimeVariable
double GetTime(const Diana::QEvent &ev)
Get time of the event.