Diana Software
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
MCoincidence Class Reference

Version of MCoincidenceMultiplicity that uses neighbours. More...

Inheritance diagram for MCoincidence:

Classes

struct  ChannelInfo
 

Public Member Functions

void Init (Diana::QEvent &ev)
 Init method. More...
 
void Do (Diana::QEvent &ev, const Diana::QEventList &neighbours)
 Do method. More...
 
void Done ()
 Done method. More...
 
double GetTime (const Diana::QEvent &ev)
 Get time of the event. More...
 

Private Types

enum  TimeVariable { TV_RAW , TV_OF }
 

Private Member Functions

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. More...
 
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. More...
 

Private Attributes

int fDataset
 
bool fUseRunningWindow
 
bool fSyncTime
 
std::string fSyncType
 
bool fOkInvalidTotalEnergy
 
std::string fSyncSource
 
std::string fSyncTowerSource
 
double fCoincidenceWindow
 
std::string fEnergyLabel
 
std::vector< std::string > fPSALabels
 
TimeVariable fTimeVariable
 
QRunData fRunData
 
int fThisRun
 
std::map< int, ChannelInfofSyncTimeDifference
 
bool fStorePosition
 
std::set< int > fBlackList
 
std::string fOFLabel
 
double fCoincidenceRadius
 
std::map< int, double > fChannelPositionX
 
std::map< int, double > fChannelPositionY
 
std::map< int, double > fChannelPositionZ
 

Detailed Description

Version of MCoincidenceMultiplicity that uses neighbours.

   With respect to that module, computed quantities are stored in the
   QCoincidenceData QObject.
Author
Marco Vignati, Claudia Tomei

Definition at line 72 of file MCoincidence.hh.

Member Enumeration Documentation

◆ TimeVariable

Enumerator
TV_RAW 
TV_OF 

Definition at line 88 of file MCoincidence.hh.

Member Function Documentation

◆ Do()

void MCoincidence::Do ( Diana::QEvent &  ev,
const Diana::QEventList &  neighbours 
)

◆ Done()

void MCoincidence::Done ( )

Done method.

Definition at line 241 of file MCoincidence.cc.

◆ GetDistanceMm()

double MCoincidence::GetDistanceMm ( const Diana::QEvent &  ev,
const Diana::QEvent *  coincident 
)
private

Get the distance in mm between the centers of the main and the coincident crystals.

Definition at line 345 of file MCoincidence.cc.

References pow().

◆ GetEventEnergy()

void MCoincidence::GetEventEnergy ( const Diana::QEvent &  ev,
double &  energy,
bool &  valid 
) const
private

Get the energy of the event. Throws if event is invalid and fOkInvalidTotalEnergy is false.

Definition at line 321 of file MCoincidence.cc.

References Q_DOUBLE_DEFAULT.

◆ GetTime()

double MCoincidence::GetTime ( const Diana::QEvent &  ev)

Get time of the event.

Definition at line 246 of file MCoincidence.cc.

References channel, QJitter::fJitter, QJitter::fRefChannel, QEvent::Get(), and QHeader::GetTime().

◆ Init()

void MCoincidence::Init ( Diana::QEvent &  ev)

Init method.

Definition at line 22 of file MCoincidence.cc.

Member Data Documentation

◆ fBlackList

std::set<int> MCoincidence::fBlackList
private

Definition at line 117 of file MCoincidence.hh.

◆ fChannelPositionX

std::map<int,double> MCoincidence::fChannelPositionX
private

Definition at line 120 of file MCoincidence.hh.

◆ fChannelPositionY

std::map<int,double> MCoincidence::fChannelPositionY
private

Definition at line 121 of file MCoincidence.hh.

◆ fChannelPositionZ

std::map<int,double> MCoincidence::fChannelPositionZ
private

Definition at line 122 of file MCoincidence.hh.

◆ fCoincidenceRadius

double MCoincidence::fCoincidenceRadius
private

Definition at line 119 of file MCoincidence.hh.

◆ fCoincidenceWindow

double MCoincidence::fCoincidenceWindow
private

Definition at line 105 of file MCoincidence.hh.

◆ fDataset

int MCoincidence::fDataset
private

Definition at line 98 of file MCoincidence.hh.

◆ fEnergyLabel

std::string MCoincidence::fEnergyLabel
private

Definition at line 106 of file MCoincidence.hh.

◆ fOFLabel

std::string MCoincidence::fOFLabel
private

Definition at line 118 of file MCoincidence.hh.

◆ fOkInvalidTotalEnergy

bool MCoincidence::fOkInvalidTotalEnergy
private

Definition at line 102 of file MCoincidence.hh.

◆ fPSALabels

std::vector<std::string> MCoincidence::fPSALabels
private

Definition at line 107 of file MCoincidence.hh.

◆ fRunData

QRunData MCoincidence::fRunData
private

Definition at line 109 of file MCoincidence.hh.

◆ fStorePosition

bool MCoincidence::fStorePosition
private

Definition at line 116 of file MCoincidence.hh.

◆ fSyncSource

std::string MCoincidence::fSyncSource
private

Definition at line 103 of file MCoincidence.hh.

◆ fSyncTime

bool MCoincidence::fSyncTime
private

Definition at line 100 of file MCoincidence.hh.

◆ fSyncTimeDifference

std::map<int,ChannelInfo> MCoincidence::fSyncTimeDifference
private

Definition at line 115 of file MCoincidence.hh.

◆ fSyncTowerSource

std::string MCoincidence::fSyncTowerSource
private

Definition at line 104 of file MCoincidence.hh.

◆ fSyncType

std::string MCoincidence::fSyncType
private

Definition at line 101 of file MCoincidence.hh.

◆ fThisRun

int MCoincidence::fThisRun
private

Definition at line 110 of file MCoincidence.hh.

◆ fTimeVariable

TimeVariable MCoincidence::fTimeVariable
private

Definition at line 108 of file MCoincidence.hh.

◆ fUseRunningWindow

bool MCoincidence::fUseRunningWindow
private

Definition at line 99 of file MCoincidence.hh.


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