CbmRoot
Loading...
Searching...
No Matches
CbmSeedFinderSlidingWindow Class Reference

#include <CbmSeedFinderSlidingWindow.h>

Collaboration diagram for CbmSeedFinderSlidingWindow:
[legend]

Public Member Functions

 CbmSeedFinderSlidingWindow (std::vector< double > *vSeedTimes, int32_t minDigis, double dWindDur, double dDeadT)
 Create the CbmSeedFinderSlidingWindow object.
 
 CbmSeedFinderSlidingWindow ()=delete
 
 CbmSeedFinderSlidingWindow (const CbmSeedFinderSlidingWindow &)=delete
 
CbmSeedFinderSlidingWindow operator= (const CbmSeedFinderSlidingWindow &)=delete
 
void SetQa (bool doQA=true)
 Enable or disable the generation of QA information.
 
void OutputQa ()
 Output QA Information.
 
 ~CbmSeedFinderSlidingWindow ()
 Destructor.
 
template<class inType >
void FillSeedTimes (const std::vector< inType > *vIn, const std::vector< CbmMatch > *vDigiMatch=nullptr)
 Function which builds event seeds @params Vector of input data (either digis or digi times). @params Optional vector of digi matches (should match input data to MC events, used for QA).
 
void FillSeedTimes ()
 Function which builds event seeds without digi input. Can only be used in ideal mode.
 
void SetOffset (double offset)
 Sets a global constant offset which is applied to each trigger time @params Value of offset.
 
void SetIdealMode (const int32_t fileId=-1)
 Switches to `‘ideal mode’' in which event times from MC data are used as triggers (no algorithm is run in this case)
 
bool IsIdealMode ()
 Is `‘ideal mode’' switched on?
 
size_t GetNofSeeds ()
 Returns number of seed times currently stored in buffer.
 
void Init ()
 Initializes QA object if set.
 
template<>
double GetTime (const std::vector< double > *vIn, int32_t i)
 
template<>
double GetTime (const std::vector< double > *vIn, int32_t i)
 

Private Member Functions

template<class inType >
double GetTime (const std::vector< inType > *vIn, int32_t i)
 Fetches time at position i of either a digi vector or vector of times.
 

Private Attributes

CbmSeedFinderQafQa = nullptr
 Processes QA info.
 
std::vector< double > * fvSeedTimes = nullptr
 Output of the algorithm. Stores seed times for current time slice.
 
int32_t fminDigis = 0
 Minimum number of digis which must be found in the seed window.
 
double fdWindDur = 0.
 Size of sliding window.
 
double fdDeadT = 0.
 `‘Dead time’' i.e. time interval which is discarded after a seed is found.
 
double fdOffset = 0.
 Global time offset which is applied to each trigger time.
 
bool fbIdealMode = false
 `‘ideal mode’' uses MC truth as trigger times.
 
int32_t fIdealModeFileId = -1
 If only a single file is to be used in `‘ideal mode’' (-1 = all files).
 
CbmMCEventListfEventList = nullptr
 To access MC truth in `‘ideal mode’'.
 

Detailed Description

Definition at line 32 of file CbmSeedFinderSlidingWindow.h.

Constructor & Destructor Documentation

◆ CbmSeedFinderSlidingWindow() [1/3]

CbmSeedFinderSlidingWindow::CbmSeedFinderSlidingWindow ( std::vector< double > * vSeedTimes,
int32_t minDigis,
double dWindDur,
double dDeadT )
inline

Create the CbmSeedFinderSlidingWindow object.

Parameters
vSeedTimesOutput vector for the constructed seed times
minDigisMinimum number of digis which must be found in the seed window
dWindDurSize of sliding window
dDeadT`‘Dead time’' i.e. time interval which is discarded after a seed is found

Definition at line 41 of file CbmSeedFinderSlidingWindow.h.

◆ CbmSeedFinderSlidingWindow() [2/3]

CbmSeedFinderSlidingWindow::CbmSeedFinderSlidingWindow ( )
delete

◆ CbmSeedFinderSlidingWindow() [3/3]

CbmSeedFinderSlidingWindow::CbmSeedFinderSlidingWindow ( const CbmSeedFinderSlidingWindow & )
delete

◆ ~CbmSeedFinderSlidingWindow()

CbmSeedFinderSlidingWindow::~CbmSeedFinderSlidingWindow ( )

Destructor.

Definition at line 23 of file CbmSeedFinderSlidingWindow.cxx.

References fQa.

Member Function Documentation

◆ FillSeedTimes() [1/2]

void CbmSeedFinderSlidingWindow::FillSeedTimes ( )

Function which builds event seeds without digi input. Can only be used in ideal mode.

Definition at line 151 of file CbmSeedFinderSlidingWindow.cxx.

References fbIdealMode, and FillSeedTimes().

Referenced by FillSeedTimes().

◆ FillSeedTimes() [2/2]

template<class inType >
void CbmSeedFinderSlidingWindow::FillSeedTimes ( const std::vector< inType > * vIn,
const std::vector< CbmMatch > * vDigiMatch = nullptr )

◆ GetNofSeeds()

size_t CbmSeedFinderSlidingWindow::GetNofSeeds ( )
inline

Returns number of seed times currently stored in buffer.

Definition at line 88 of file CbmSeedFinderSlidingWindow.h.

References fvSeedTimes.

Referenced by CbmTaskBuildRawEvents::Exec().

◆ GetTime() [1/3]

template<>
double CbmSeedFinderSlidingWindow::GetTime ( const std::vector< double > * vIn,
int32_t i )

◆ GetTime() [2/3]

template<>
double CbmSeedFinderSlidingWindow::GetTime ( const std::vector< double > * vIn,
int32_t i )

Definition at line 173 of file CbmSeedFinderSlidingWindow.cxx.

◆ GetTime() [3/3]

template<class inType >
double CbmSeedFinderSlidingWindow::GetTime ( const std::vector< inType > * vIn,
int32_t i )
private

Fetches time at position i of either a digi vector or vector of times.

Definition at line 162 of file CbmSeedFinderSlidingWindow.cxx.

Referenced by FillSeedTimes().

◆ Init()

void CbmSeedFinderSlidingWindow::Init ( )

Initializes QA object if set.

Definition at line 192 of file CbmSeedFinderSlidingWindow.cxx.

References fbIdealMode, fEventList, fQa, and CbmSeedFinderQa::Init().

Referenced by CbmTaskBuildRawEvents::Init().

◆ IsIdealMode()

bool CbmSeedFinderSlidingWindow::IsIdealMode ( )
inline

Is `‘ideal mode’' switched on?

Definition at line 85 of file CbmSeedFinderSlidingWindow.h.

References fbIdealMode.

Referenced by CbmTaskBuildRawEvents::FillSeedTimesFromSlidingWindow().

◆ operator=()

CbmSeedFinderSlidingWindow CbmSeedFinderSlidingWindow::operator= ( const CbmSeedFinderSlidingWindow & )
delete

◆ OutputQa()

void CbmSeedFinderSlidingWindow::OutputQa ( )

Output QA Information.

Definition at line 207 of file CbmSeedFinderSlidingWindow.cxx.

References fQa, and CbmSeedFinderQa::OutputQa().

Referenced by CbmTaskBuildRawEvents::Finish().

◆ SetIdealMode()

void CbmSeedFinderSlidingWindow::SetIdealMode ( const int32_t fileId = -1)
inline

Switches to `‘ideal mode’' in which event times from MC data are used as triggers (no algorithm is run in this case)

Definition at line 78 of file CbmSeedFinderSlidingWindow.h.

References fbIdealMode, and fIdealModeFileId.

Referenced by CbmTaskBuildRawEvents::SetIdealSeedFinder().

◆ SetOffset()

void CbmSeedFinderSlidingWindow::SetOffset ( double offset)
inline

Sets a global constant offset which is applied to each trigger time @params Value of offset.

Definition at line 73 of file CbmSeedFinderSlidingWindow.h.

References fdOffset.

Referenced by CbmTaskBuildRawEvents::SetSlidingWindowSeedFinder().

◆ SetQa()

void CbmSeedFinderSlidingWindow::SetQa ( bool doQA = true)

Enable or disable the generation of QA information.

Definition at line 178 of file CbmSeedFinderSlidingWindow.cxx.

References fQa.

Referenced by CbmTaskBuildRawEvents::SetSeedFinderQa().

Member Data Documentation

◆ fbIdealMode

bool CbmSeedFinderSlidingWindow::fbIdealMode = false
private

`‘ideal mode’' uses MC truth as trigger times.

Definition at line 111 of file CbmSeedFinderSlidingWindow.h.

Referenced by FillSeedTimes(), FillSeedTimes(), Init(), IsIdealMode(), and SetIdealMode().

◆ fdDeadT

double CbmSeedFinderSlidingWindow::fdDeadT = 0.
private

`‘Dead time’' i.e. time interval which is discarded after a seed is found.

Definition at line 105 of file CbmSeedFinderSlidingWindow.h.

Referenced by FillSeedTimes().

◆ fdOffset

double CbmSeedFinderSlidingWindow::fdOffset = 0.
private

Global time offset which is applied to each trigger time.

Definition at line 108 of file CbmSeedFinderSlidingWindow.h.

Referenced by FillSeedTimes(), and SetOffset().

◆ fdWindDur

double CbmSeedFinderSlidingWindow::fdWindDur = 0.
private

Size of sliding window.

Definition at line 103 of file CbmSeedFinderSlidingWindow.h.

Referenced by FillSeedTimes().

◆ fEventList

CbmMCEventList* CbmSeedFinderSlidingWindow::fEventList = nullptr
private

To access MC truth in `‘ideal mode’'.

Definition at line 117 of file CbmSeedFinderSlidingWindow.h.

Referenced by FillSeedTimes(), and Init().

◆ fIdealModeFileId

int32_t CbmSeedFinderSlidingWindow::fIdealModeFileId = -1
private

If only a single file is to be used in `‘ideal mode’' (-1 = all files).

Definition at line 114 of file CbmSeedFinderSlidingWindow.h.

Referenced by FillSeedTimes(), and SetIdealMode().

◆ fminDigis

int32_t CbmSeedFinderSlidingWindow::fminDigis = 0
private

Minimum number of digis which must be found in the seed window.

Definition at line 101 of file CbmSeedFinderSlidingWindow.h.

Referenced by FillSeedTimes().

◆ fQa

CbmSeedFinderQa* CbmSeedFinderSlidingWindow::fQa = nullptr
private

Processes QA info.

Definition at line 95 of file CbmSeedFinderSlidingWindow.h.

Referenced by FillSeedTimes(), Init(), OutputQa(), SetQa(), and ~CbmSeedFinderSlidingWindow().

◆ fvSeedTimes

std::vector<double>* CbmSeedFinderSlidingWindow::fvSeedTimes = nullptr
private

Output of the algorithm. Stores seed times for current time slice.

Definition at line 98 of file CbmSeedFinderSlidingWindow.h.

Referenced by FillSeedTimes(), and GetNofSeeds().


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