Project
Loading...
Searching...
No Matches
digits-sink-workflow.cxx File Reference
#include "DPLUtils/DPLRawParser.h"
#include "DPLUtils/MakeRootTreeWriterSpec.h"
#include "DataFormatsMCH/Digit.h"
#include "DataFormatsMCH/ROFRecord.h"
#include "DigitFileFormat.h"
#include "DigitIOBaseTask.h"
#include "DigitSink.h"
#include "Framework/CallbackService.h"
#include "Framework/ConfigParamRegistry.h"
#include "Framework/ControlService.h"
#include "Framework/DataProcessorSpec.h"
#include "Framework/Lifetime.h"
#include "Framework/Output.h"
#include "Framework/Task.h"
#include "Framework/WorkflowSpec.h"
#include "Framework/CompletionPolicyHelpers.h"
#include "MCHRawDecoder/OrbitInfo.h"
#include <fstream>
#include <iostream>
#include <random>
#include <set>
#include <sstream>
#include <stdexcept>
#include <string>
#include "Framework/runDataProcessing.h"

Go to the source code of this file.

Classes

class  DigitsSinkTask
 

Typedefs

template<typename T >
using BranchDefinition = MakeRootTreeWriterSpec::BranchDefinition< T >
 

Functions

void customize (std::vector< o2::framework::CompletionPolicy > &policies)
 
void customize (std::vector< ConfigParamSpec > &workflowOptions)
 
WorkflowSpec defineDataProcessing (const ConfigContext &cc)
 

Variables

constexpr const charOPTNAME_OUTFILE = "outfile"
 
constexpr const charOPTNAME_TXT = "txt"
 
constexpr const charOPTNAME_NO_FILE = "no-file"
 
constexpr const charOPTNAME_BINARY_FORMAT = "binary-file-format"
 
constexpr const charOPTNAME_WITHOUT_ORBITS = "without-orbits"
 
constexpr const charOPTNAME_MAX_SIZE = "max-size"
 

Typedef Documentation

◆ BranchDefinition

Definition at line 59 of file digits-sink-workflow.cxx.

Function Documentation

◆ customize() [1/2]

void customize ( std::vector< ConfigParamSpec > &  workflowOptions)

Add workflow options. Note that customization needs to be declared before including Framework/runDataProcessing.

Definition at line 150 of file digits-sink-workflow.cxx.

◆ customize() [2/2]

void customize ( std::vector< o2::framework::CompletionPolicy > &  policies)

Definition at line 52 of file digits-sink-workflow.cxx.

◆ defineDataProcessing()

WorkflowSpec defineDataProcessing ( const ConfigContext cc)

To be implemented by the user to specify one or more DataProcessorSpec.

Use the ConfigContext context in input to get the value of global configuration properties like command line options, number of available CPUs or whatever can affect the creation of the actual workflow.

Returns
a std::vector of DataProcessorSpec which represents the actual workflow to be executed

The workflow executable for the stand alone CPV reconstruction workflow The basic workflow for CPV reconstruction is defined in RecoWorkflow.cxx and contains the following default processors

  • digit reader
  • clusterer

The default workflow can be customized by specifying input and output types e.g. digits, raw, tracks.

MC info is processed by default, disabled by using command line option --disable-mc

This function hooks up the the workflow specifications into the DPL driver.

The workflow executable for the stand alone CTP reconstruction workflow

  • digit and lumi reader This function hooks up the the workflow specifications into the DPL driver.

The workflow executable for the stand alone EMCAL reconstruction workflow The basic workflow for EMCAL reconstruction is defined in RecoWorkflow.cxx and contains the following default processors

  • digit reader
  • clusterer

The default workflow can be customized by specifying input and output types e.g. digits, raw, tracks.

MC info is processed by default, disabled by using command line option --disable-mc

This function hooks up the the workflow specifications into the DPL driver.

The workflow executable for the stand alone TOF reconstruction workflow The basic workflow for TOF reconstruction is defined in RecoWorkflow.cxx and contains the following default processors

  • digit reader
  • clusterer
  • cluster raw decoder
  • track-TOF matcher

The default workflow can be customized by specifying input and output types e.g. digits, raw, clusters.

MC info is processed by default, disabled by using command line option --disable-mc

This function hooks up the the workflow specifications into the DPL driver.

DPL Workflow to process MCH or MID DCS data points.

The expected input is a vector of DataPointCompositeObject containing only MCH (or only MID) data points.

Those datapoints are accumulated into DPMAPs (map from alias names to vector of DataPointValue).

The accumulated DPMAPs are sent to the output whenever :

  • they reach a given size (–xx-max-size option(s))
  • they span a given duration (–xx-max-duration option(s))
  • the workflow is ended

DPL workflow which generates fake random MCH DCS data points.

Data points are generated for HV (currents and voltages) as well as for LV (DualSampa analog and digital voltages, and SOLAR voltages).

DPL workflow which generates fake random MID DCS data points.

Data points are generated for HV (currents and voltages).

Definition at line 160 of file digits-sink-workflow.cxx.

Variable Documentation

◆ OPTNAME_BINARY_FORMAT

constexpr const char* OPTNAME_BINARY_FORMAT = "binary-file-format"
constexpr

Definition at line 48 of file digits-sink-workflow.cxx.

◆ OPTNAME_MAX_SIZE

constexpr const char* OPTNAME_MAX_SIZE = "max-size"
constexpr

Definition at line 50 of file digits-sink-workflow.cxx.

◆ OPTNAME_NO_FILE

constexpr const char* OPTNAME_NO_FILE = "no-file"
constexpr

Definition at line 47 of file digits-sink-workflow.cxx.

◆ OPTNAME_OUTFILE

constexpr const char* OPTNAME_OUTFILE = "outfile"
constexpr

Definition at line 45 of file digits-sink-workflow.cxx.

◆ OPTNAME_TXT

constexpr const char* OPTNAME_TXT = "txt"
constexpr

Definition at line 46 of file digits-sink-workflow.cxx.

◆ OPTNAME_WITHOUT_ORBITS

constexpr const char* OPTNAME_WITHOUT_ORBITS = "without-orbits"
constexpr

Definition at line 49 of file digits-sink-workflow.cxx.