Project
Loading...
Searching...
No Matches
emc-channel-data-producer.cxx File Reference

This task generates an emcal event with a number of cells. It is designed to produce data for the testing of the bad channel and time calibration of the emcal. More...

#include "DataFormatsEMCAL/Cell.h"
#include "DataFormatsEMCAL/TriggerRecord.h"
#include <Framework/DataProcessorSpec.h>
#include "Framework/Task.h"
#include "Framework/WorkflowSpec.h"
#include "Framework/DataRefUtils.h"
#include "Framework/ControlService.h"
#include "Framework/RawDeviceService.h"
#include "Algorithm/RangeTokenizer.h"
#include <random>
#include "TFile.h"
#include "TH2.h"
#include "TH1.h"
#include <unistd.h>
#include "Framework/runDataProcessing.h"

Go to the source code of this file.

Functions

DataProcessorSpec generateData (const std::string nameRootFile, const std::string nameInputHist, const std::string nameInputHistAdd, const bool isTimeCalib, const int nCellsPerEvent, const int nEventsMax)
 
void customize (std::vector< ConfigParamSpec > &workflowOptions)
 
WorkflowSpec defineDataProcessing (ConfigContext const &config)
 

Detailed Description

This task generates an emcal event with a number of cells. It is designed to produce data for the testing of the bad channel and time calibration of the emcal.

Author
Joshua Koenig joshu.nosp@m.a.ko.nosp@m.nig@c.nosp@m.ern..nosp@m.ch

Definition in file emc-channel-data-producer.cxx.

Function Documentation

◆ customize()

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

Definition at line 40 of file emc-channel-data-producer.cxx.

◆ defineDataProcessing()

WorkflowSpec defineDataProcessing ( ConfigContext const &  config)

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.

Definition at line 55 of file emc-channel-data-producer.cxx.

◆ generateData()

DataProcessorSpec generateData ( const std::string  nameRootFile,
const std::string  nameInputHist,
const std::string  nameInputHistAdd,
const bool  isTimeCalib,
const int  nCellsPerEvent,
const int  nEventsMax 
)

Definition at line 71 of file emc-channel-data-producer.cxx.