CbmRoot
CbmMCPointSource Class Reference

#include <CbmMCPointSource.h>

Inheritance diagram for CbmMCPointSource:
[legend]
Collaboration diagram for CbmMCPointSource:
[legend]

Public Member Functions

 CbmMCPointSource ()=default
 
virtual ~CbmMCPointSource ()
 

Protected Member Functions

virtual void InitTask ()
 
virtual bool ConditionalRun ()
 

Protected Attributes

uint64_t fMaxEvents {0}
 
std::string fFileName {""}
 
std::vector< std::string > fInputFileList {}
 List of input files. More...
 
uint64_t fFileCounter {}
 
uint64_t fEventNumber {0}
 
uint64_t fEventCounter {0}
 
uint64_t fMessageCounter {0}
 
int fMaxMemory {0}
 

Private Member Functions

bool SendData ()
 
void CalcRuntime ()
 
void ConnectChannelIfNeeded (int, std::string, std::string, FairRootManager *)
 
template<class T >
void PrintMCPoint (TClonesArray *arr)
 
template<class T >
std::vector< T > Convert (TClonesArray *arr)
 
template<class T >
bool ConvertAndSend (TClonesArray *arr, int i)
 

Private Attributes

std::chrono::steady_clock::time_point fTime {}
 
std::vector< std::string > fAllowedChannels
 
CbmMQChannels fChan {fAllowedChannels}
 
std::vector< int > fComponentsToSend {}
 
std::vector< std::vector< std::string > > fChannelsToSend {{}}
 
std::vector< TClonesArray * > fArrays {fAllowedChannels.size(), nullptr}
 

Detailed Description

Definition at line 29 of file CbmMCPointSource.h.

Constructor & Destructor Documentation

◆ CbmMCPointSource()

CbmMCPointSource::CbmMCPointSource ( )
default

◆ ~CbmMCPointSource()

CbmMCPointSource::~CbmMCPointSource ( )
virtual

Definition at line 228 of file CbmMCPointSource.cxx.

Member Function Documentation

◆ CalcRuntime()

void CbmMCPointSource::CalcRuntime ( )
private

Definition at line 230 of file CbmMCPointSource.cxx.

◆ ConditionalRun()

bool CbmMCPointSource::ConditionalRun ( )
protectedvirtual

Definition at line 161 of file CbmMCPointSource.cxx.

References i.

◆ ConnectChannelIfNeeded()

void CbmMCPointSource::ConnectChannelIfNeeded ( int  chan_number,
std::string  channel_name,
std::string  branchname,
FairRootManager *  rootman 
)
private

Definition at line 142 of file CbmMCPointSource.cxx.

◆ Convert()

template<class T >
std::vector<T> CbmMCPointSource::Convert ( TClonesArray *  arr)
inlineprivate

Definition at line 71 of file CbmMCPointSource.h.

References i.

◆ ConvertAndSend()

template<class T >
bool CbmMCPointSource::ConvertAndSend ( TClonesArray *  arr,
int  i 
)
inlineprivate

Definition at line 89 of file CbmMCPointSource.h.

References fChannelsToSend, fComponentsToSend, and i.

◆ InitTask()

void CbmMCPointSource::InitTask ( )
protectedvirtual

Definition at line 46 of file CbmMCPointSource.cxx.

References i.

◆ PrintMCPoint()

template<class T >
void CbmMCPointSource::PrintMCPoint ( TClonesArray *  arr)
inlineprivate

Definition at line 56 of file CbmMCPointSource.h.

References i.

◆ SendData()

bool CbmMCPointSource::SendData ( )
private

Member Data Documentation

◆ fAllowedChannels

std::vector<std::string> CbmMCPointSource::fAllowedChannels
private
Initial value:
= {"MvdPoint",
"StsPoint",
"RichPoint",
"MuchPoint",
"Trdpoint",
"TofPoint",
"PsdPoint"}

Definition at line 139 of file CbmMCPointSource.h.

◆ fArrays

std::vector<TClonesArray*> CbmMCPointSource::fArrays {fAllowedChannels.size(), nullptr}
private

Definition at line 157 of file CbmMCPointSource.h.

◆ fChan

CbmMQChannels CbmMCPointSource::fChan {fAllowedChannels}
private

Definition at line 153 of file CbmMCPointSource.h.

◆ fChannelsToSend

std::vector<std::vector<std::string> > CbmMCPointSource::fChannelsToSend {{}}
private

Definition at line 156 of file CbmMCPointSource.h.

Referenced by ConvertAndSend().

◆ fComponentsToSend

std::vector<int> CbmMCPointSource::fComponentsToSend {}
private

Definition at line 155 of file CbmMCPointSource.h.

Referenced by ConvertAndSend().

◆ fEventCounter

uint64_t CbmMCPointSource::fEventCounter {0}
protected

Definition at line 42 of file CbmMCPointSource.h.

◆ fEventNumber

uint64_t CbmMCPointSource::fEventNumber {0}
protected

Definition at line 41 of file CbmMCPointSource.h.

◆ fFileCounter

uint64_t CbmMCPointSource::fFileCounter {}
protected

Definition at line 39 of file CbmMCPointSource.h.

◆ fFileName

std::string CbmMCPointSource::fFileName {""}
protected

Definition at line 37 of file CbmMCPointSource.h.

◆ fInputFileList

std::vector<std::string> CbmMCPointSource::fInputFileList {}
protected

List of input files.

Definition at line 38 of file CbmMCPointSource.h.

◆ fMaxEvents

uint64_t CbmMCPointSource::fMaxEvents {0}
protected

Definition at line 35 of file CbmMCPointSource.h.

◆ fMaxMemory

int CbmMCPointSource::fMaxMemory {0}
protected

Definition at line 45 of file CbmMCPointSource.h.

◆ fMessageCounter

uint64_t CbmMCPointSource::fMessageCounter {0}
protected

Definition at line 43 of file CbmMCPointSource.h.

◆ fTime

std::chrono::steady_clock::time_point CbmMCPointSource::fTime {}
private

Definition at line 137 of file CbmMCPointSource.h.


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