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

Puts multiplicities and total energies in events. More...

Inheritance diagram for MCoincidenceMultiplicity:
QModule QBaseModule QModuleTimeProfiling

Classes

class  EventInfo
 

Public Member Functions

void Init (Diana::QEvent &ev)
 Init method. More...
 
void Do (Diana::QEvent &ev)
 Do method. More...
 
void Done ()
 Done method. More...
 
 MCoincidenceMultiplicity (QSequence *s)
 constructor More...
 
 ~MCoincidenceMultiplicity ()
 destructor More...
 
void Init ()
 Init method. More...
 
QEventDo (QEvent *ev)
 Do method. More...
 
void Done ()
 Done method. More...
 
- Public Member Functions inherited from QModule
 QModule ()
 constuctor More...
 
virtual ~QModule ()
 destructor More...
 
virtual void Init (QEvent &ev)=0
 Init method is called before event loop. More...
 
virtual void Do (QEvent &ev)
 Do method is called on each event, getting the event as argument. More...
 
virtual void Do (QEvent &ev, const QEventList &neighbours)
 Do method is called on each event, getting the event and its neighbours as argument. More...
 
- Public Member Functions inherited from QBaseModule
 QBaseModule (Type type)
 constructor More...
 
virtual ~QBaseModule ()
 constructor More...
 
double GetDouble (const std::string &parname, double defVal, bool warnCfg=true) const
 Get a double parameter from config file. More...
 
std::vector< double > GetVectorDouble (const std::string &parname, std::vector< double > defVal, bool warnCfg=true) const
 Get a std::vector<double> parameter from config file with syntax "{x,y,z}". More...
 
int GetInt (const std::string &parname, int defVal, bool warnCfg=true) const
 Get an int parameter from config file ( see GetDouble() ) More...
 
std::vector< int > GetVectorInt (const std::string &parname, std::vector< int > defVal, bool warnCfg=true) const
 Get an vector<int> parameter from config file ( see GetVectorDouble() ) More...
 
bool GetBool (const std::string &parname, bool defVal, bool warnCfg=true) const
 Get a bool parameter from config file ( see GetDouble() ) More...
 
std::vector< bool > GetVectorBool (const std::string &parname, std::vector< bool > defVal, bool warnCfg=true) const
 Get a vector<bool> parameter from config file ( see GetVectorDouble() ) More...
 
const std::string & GetString (const std::string &parname, const std::string &defVal, bool warnCfg=true) const
 Get a string parameter from config file ( see GetDouble() ) More...
 
std::vector< std::string > GetVectorString (const std::string &parname, std::vector< std::string > defVal, bool warnCfg=true) const
 Get a vector<string> parameter from config file ( see GetVectorDouble() ) More...
 
void Debug (const char *descr,...) const
 Send a debug message (used to debug the module) with printf syntax. More...
 
void Info (const char *descr,...) const
 Send an info message (information) with printf syntax. More...
 
void Warn (const char *descr,...) const
 Send a warning message (an error that the framework can recover) with printf syntax. More...
 
void Error (const char *descr,...) const
 Send an error message (an error that the framework cannot recover) with printf syntax. More...
 
void Panic (const char *descr,...) const
 Send a panic message (stops the framework) with printf syntax. More...
 
const QGlobalDataManagerGlobalData () const
 interface for saving and loading global QObjects More...
 
bool GetRunAgain () const
 Check if the sequence will be reiterated. More...
 
void SetRunAgain (bool b)
 Set that the sequence will be reiterated. More...
 
unsigned int GetIteration () const
 Get Current sequence iteration. More...
 
unsigned int GetOccurrence () const
 get the number of times the same module is loaded inside a QSequence More...
 
bool isEnabled () const
 check if module is enabled More...
 
std::string GetFullPath () const
 Get Full Path of module "GetName() + "." + GetOccurrence". More...
 
const std::string & GetName () const
 Get Module name. More...
 
const std::string & GetLabel () const
 Get Module name + the optional ExtraLabel ("name_extralabel") More...
 
MsgLevel GetVerbosity ()
 get verbosity level set from config file More...
 
const QSequenceGetSequence () const
 get reference to this sequence More...
 
void Update (QSequence *s, unsigned int occurrence)
 set the occurrence in the same sequence. MV FIXME: should not be public More...
 
bool NeedNeighbours ()
 check wheter this module needs neighbours (available after the first event is processed) More...
 
void BeginBase (QEventAssembler &ev)
 Begin Base method is called before event loop. More...
 
bool ProcessBase (QEventAssembler &ev, QEventList &evl, const bool exec, QEventList &ovl)
 ProcessBase method is called for each event, getting the event and as argument. More...
 
void EndBase ()
 EndBase method is called after event loop. More...
 
const std::vector< QEventLabel > & GetRequiredLabels () const
 Get labels of objects required by this module. More...
 

Private Attributes

std::set< int > fChannels
 List of channels to use. More...
 
double fCoincidenceWindow
 Maximum time (in seconds) between coincident events. More...
 
std::vector< EventInfofEventInfos
 time ordered vector of event info More...
 
std::map< int, int > fEventInfosIndex
 map from EventNumber to fEventInfos index More...
 
std::string fPrefix
 AuxData variable prefix string. More...
 
std::string fRelativeChannelsSource
 Source file name or 'DB' for relative channels. More...
 
std::string fThermistorRankingVariable
 AuxData variable containing thermistor rankings. More...
 
bool fUseRunningWindow
 Flag to use running or fixed window. More...
 
bool fUseThermistorRanking
 Flag to use thermistor ranking. More...
 
Diana::QEventLabel fEnergyLabel
 Energy variable label. More...
 
Diana::QEventLabel fThermistorRankingLabel
 Thermistor ranking label. More...
 

Additional Inherited Members

- Public Types inherited from QBaseModule
enum  Type {
  Module , Filter , Reader , Writer ,
  Driver
}
 
- Protected Member Functions inherited from QBaseModule
QModuleConfigGetConfig ()
 Get module config. More...
 
void SetNeedNeighbours (bool need)
 set wheter this module needs neighbours More...
 
- Protected Member Functions inherited from QModuleTimeProfiling
 QModuleTimeProfiling ()
 ctor initialized internal variables More...
 
virtual ~QModuleTimeProfiling ()
 dtor does nothing More...
 
void SetTimeProfilingOn (bool val)
 Set the time profiling on/off. More...
 
bool GetTimeProfilingOn () const
 Check if the time profiling is on. More...
 
void ResetTimer ()
 Reset the timer to now. More...
 
double GetTimer () const
 return the time since the last reset More...
 
virtual void StartProcessCall ()
 Start of a process call. More...
 
virtual void EndProcessCall ()
 End a process call and increment time and calls. More...
 
unsigned long long GetProcessCalls () const
 Return the total number of process calls. More...
 
double GetTotalProcessTime () const
 Return the total processing time. More...
 
double GetProcessCallTime () const
 Return the average time of a single process call. More...
 
std::string GetTimeProfileReport (const std::string &prefix="") const
 Report the time profiling. More...
 
- Protected Attributes inherited from QBaseModule
bool fExecuted
 
- Protected Attributes inherited from QModuleTimeProfiling
bool fTimeProfilingOn
 Report the time profiling. More...
 
unsigned long long int fProcessCalls
 NUmber of calls to the process. More...
 
double fProcessTime
 Total time spent running the process. More...
 

Detailed Description

Puts multiplicities and total energies in events.

Author
Adam Bryant (adam_.nosp@m.brya.nosp@m.nt@be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u)
Author
Adam Bryant (adam_.nosp@m.brya.nosp@m.nt@be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u)

Definition at line 56 of file MCoincidenceMultiplicity.hh.

Constructor & Destructor Documentation

◆ MCoincidenceMultiplicity()

MCoincidenceMultiplicity::MCoincidenceMultiplicity ( QSequence s)

constructor

Definition at line 18 of file MCoincidenceMultiplicity.cc.

◆ ~MCoincidenceMultiplicity()

MCoincidenceMultiplicity::~MCoincidenceMultiplicity ( )

destructor

Definition at line 23 of file MCoincidenceMultiplicity.cc.

Member Function Documentation

◆ Do() [1/2]

void MCoincidenceMultiplicity::Do ( Diana::QEvent &  ev)

Do method.

◆ Do() [2/2]

QEvent * MCoincidenceMultiplicity::Do ( QEvent ev)

◆ Done() [1/2]

void MCoincidenceMultiplicity::Done ( )
virtual

Done method.

Implements QModule.

Definition at line 145 of file MCoincidenceMultiplicity.cc.

◆ Done() [2/2]

void MCoincidenceMultiplicity::Done ( )
virtual

Done method.

Implements QModule.

◆ Init() [1/2]

void MCoincidenceMultiplicity::Init ( )

◆ Init() [2/2]

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

Init method.

Member Data Documentation

◆ fChannels

std::set< int > MCoincidenceMultiplicity::fChannels
private

List of channels to use.

Definition at line 82 of file MCoincidenceMultiplicity.hh.

Referenced by Do().

◆ fCoincidenceWindow

double MCoincidenceMultiplicity::fCoincidenceWindow
private

Maximum time (in seconds) between coincident events.

Definition at line 85 of file MCoincidenceMultiplicity.hh.

Referenced by Init().

◆ fEnergyLabel

Diana::QEventLabel MCoincidenceMultiplicity::fEnergyLabel
private

Energy variable label.

Definition at line 109 of file MCoincidenceMultiplicity.hh.

◆ fEventInfos

std::vector< EventInfo > MCoincidenceMultiplicity::fEventInfos
private

time ordered vector of event info

Definition at line 88 of file MCoincidenceMultiplicity.hh.

Referenced by Do().

◆ fEventInfosIndex

std::map< int, int > MCoincidenceMultiplicity::fEventInfosIndex
private

map from EventNumber to fEventInfos index

Definition at line 91 of file MCoincidenceMultiplicity.hh.

Referenced by Do().

◆ fPrefix

std::string MCoincidenceMultiplicity::fPrefix
private

AuxData variable prefix string.

Definition at line 94 of file MCoincidenceMultiplicity.hh.

Referenced by Do(), and Init().

◆ fRelativeChannelsSource

std::string MCoincidenceMultiplicity::fRelativeChannelsSource
private

Source file name or 'DB' for relative channels.

Definition at line 97 of file MCoincidenceMultiplicity.hh.

Referenced by Do(), and Init().

◆ fThermistorRankingLabel

Diana::QEventLabel MCoincidenceMultiplicity::fThermistorRankingLabel
private

Thermistor ranking label.

Definition at line 112 of file MCoincidenceMultiplicity.hh.

◆ fThermistorRankingVariable

std::string MCoincidenceMultiplicity::fThermistorRankingVariable
private

AuxData variable containing thermistor rankings.

Definition at line 100 of file MCoincidenceMultiplicity.hh.

Referenced by Do(), and Init().

◆ fUseRunningWindow

bool MCoincidenceMultiplicity::fUseRunningWindow
private

Flag to use running or fixed window.

Definition at line 103 of file MCoincidenceMultiplicity.hh.

Referenced by Init().

◆ fUseThermistorRanking

bool MCoincidenceMultiplicity::fUseThermistorRanking
private

Flag to use thermistor ranking.

Definition at line 106 of file MCoincidenceMultiplicity.hh.


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