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

Main steering class of reconstruction in CBM. More...

#include <CbmReco.h>

Collaboration diagram for CbmReco:
[legend]

Classes

struct  Config
 

Public Member Functions

 CbmReco (Config config, std::string source, std::string outFile, std::string configFile, int32_t numTs=std::numeric_limits< int32_t >::max(), uint16_t port=0, cbm::Monitor *monitor=nullptr)
 Default constructor.
 
 CbmReco (Config config, std::vector< std::string > sources, std::string outFile, std::string configFile, int32_t numTs=std::numeric_limits< int32_t >::max(), uint16_t port=0, cbm::Monitor *monitor=nullptr)
 Standard constructor for list of sources.
 
virtual ~CbmReco ()
 Destructor.
 
std::string ListSources () const
 List all entries in the input vector.
 
int32_t Run ()
 Configure and execute run.
 

Private Member Functions

 ClassDef (CbmReco, 1)
 

Private Attributes

Config fConfig = {}
 Configuration.
 
std::vector< std::string > fSourceNames = {}
 Sources (input files or stream)
 
std::string fOutputFileName = ""
 Output file (ROOT)
 
std::string fConfigFileName = ""
 Configuration file (YAML)
 
int32_t fNumTs = 0
 Number of timeslices to process.
 
uint16_t fHttpServerPort = 0
 
cbm::Monitor * fMonitor = nullptr
 

Detailed Description

Main steering class of reconstruction in CBM.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
14 March 2022

The class instantiates the processing steps as FairTasks, and configure and executes the run as FairRunOnline.

Currently included processing steps:

  • unpacking (STS only)
  • trigger on STS digis
  • event building (STS only)

Definition at line 44 of file CbmReco.h.

Constructor & Destructor Documentation

◆ CbmReco() [1/2]

CbmReco::CbmReco ( Config config,
std::string source,
std::string outFile,
std::string configFile,
int32_t numTs = std::numeric_limits< int32_t >::max(),
uint16_t port = 0,
cbm::Monitor * monitor = nullptr )

Default constructor.

Standard constructor for a single source

Parameters
sourceName of input file or stream
outFileName of output file
numTsNumber of timeslices to process. If negative, all available will be used.
configConfiguration
portPort number for the http server. If 0, server will not be activated.

◆ CbmReco() [2/2]

CbmReco::CbmReco ( Config config,
std::vector< std::string > sources,
std::string outFile,
std::string configFile,
int32_t numTs = std::numeric_limits< int32_t >::max(),
uint16_t port = 0,
cbm::Monitor * monitor = nullptr )

Standard constructor for list of sources.

Parameters
sourceVector of names of input files or input sources
outFileName of output file
numTsNumber of timeslices to process. If negative, all available will be used.
configConfiguration
portPort number for the http server

◆ ~CbmReco()

virtual CbmReco::~CbmReco ( )
inlinevirtual

Destructor.

Definition at line 80 of file CbmReco.h.

Member Function Documentation

◆ ClassDef()

CbmReco::ClassDef ( CbmReco ,
1  )
private

◆ ListSources()

std::string CbmReco::ListSources ( ) const

List all entries in the input vector.

Returns
String concatenating the sources names

Definition at line 65 of file CbmReco.cxx.

References fSourceNames.

Referenced by Run().

◆ Run()

Member Data Documentation

◆ fConfig

Config CbmReco::fConfig = {}
private

Configuration.

Definition at line 96 of file CbmReco.h.

Referenced by Run().

◆ fConfigFileName

std::string CbmReco::fConfigFileName = ""
private

Configuration file (YAML)

Definition at line 99 of file CbmReco.h.

Referenced by Run().

◆ fHttpServerPort

uint16_t CbmReco::fHttpServerPort = 0
private

Definition at line 101 of file CbmReco.h.

Referenced by Run().

◆ fMonitor

cbm::Monitor* CbmReco::fMonitor = nullptr
private

Definition at line 102 of file CbmReco.h.

Referenced by Run().

◆ fNumTs

int32_t CbmReco::fNumTs = 0
private

Number of timeslices to process.

Definition at line 100 of file CbmReco.h.

Referenced by Run().

◆ fOutputFileName

std::string CbmReco::fOutputFileName = ""
private

Output file (ROOT)

Definition at line 98 of file CbmReco.h.

Referenced by Run().

◆ fSourceNames

std::vector<std::string> CbmReco::fSourceNames = {}
private

Sources (input files or stream)

Definition at line 97 of file CbmReco.h.

Referenced by ListSources(), and Run().


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