51void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
54 std::vector<o2::framework::ConfigParamSpec> options;
55 options.push_back(
ConfigParamSpec{
"ctf-input", VariantType::String,
"none", {
"comma-separated list CTF input files"}});
56 options.push_back(
ConfigParamSpec{
"ctf-dict", VariantType::String,
"ccdb", {
"CTF dictionary: empty or ccdb=CCDB, none=no external dictionary otherwise: local filename"}});
57 options.push_back(
ConfigParamSpec{
"onlyDet", VariantType::String, std::string{
DetID::ALL}, {
"comma-separated list of detectors to accept. Overrides skipDet"}});
58 options.push_back(
ConfigParamSpec{
"skipDet", VariantType::String, std::string{
DetID::NONE}, {
"comma-separate list of detectors to skip"}});
59 options.push_back(
ConfigParamSpec{
"loop", VariantType::Int, 0, {
"loop N times (infinite for N<0)"}});
60 options.push_back(
ConfigParamSpec{
"delay", VariantType::Float, 0.f, {
"delay in seconds between consecutive TFs sending"}});
61 options.push_back(
ConfigParamSpec{
"shuffle", VariantType::Bool,
false, {
"shuffle TF sending order (for debug)"}});
62 options.push_back(
ConfigParamSpec{
"copy-cmd", VariantType::String,
"alien_cp ?src file://?dst", {
"copy command for remote files or no-copy to avoid copying"}});
63 options.push_back(
ConfigParamSpec{
"copy-dir", VariantType::String,
"/tmp/", {
"copy base directory for remote files"}});
64 options.push_back(
ConfigParamSpec{
"ctf-file-regex", VariantType::String,
".*o2_ctf_run.+\\.root$", {
"regex string to identify CTF files"}});
65 options.push_back(
ConfigParamSpec{
"remote-regex", VariantType::String,
"^(alien://|)/alice/data/.+", {
"regex string to identify remote files"}});
66 options.push_back(
ConfigParamSpec{
"max-cached-files", VariantType::Int, 3, {
"max CTF files queued (copied for remote source)"}});
67 options.push_back(
ConfigParamSpec{
"allow-missing-detectors", VariantType::Bool,
false, {
"send empty message if detector is missing in the CTF (otherwise throw)"}});
68 options.push_back(
ConfigParamSpec{
"send-diststf-0xccdb", VariantType::Bool,
false, {
"send explicit FLP/DISTSUBTIMEFRAME/0xccdb output"}});
69 options.push_back(
ConfigParamSpec{
"ctf-reader-verbosity", VariantType::Int, 0, {
"verbosity level (0: summary per detector, 1: summary per block"}});
70 options.push_back(
ConfigParamSpec{
"ctf-data-subspec", VariantType::Int, 0, {
"subspec to use for decoded CTF messages (use non-0 if CTF writer will be attached downstream)"}});
71 options.push_back(
ConfigParamSpec{
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings"}});
72 options.push_back(
ConfigParamSpec{
"ir-frames-files", VariantType::String,
"", {
"If non empty, inject selected IRFrames from this file"}});
73 options.push_back(
ConfigParamSpec{
"run-time-span-file", VariantType::String,
"", {
"If non empty, inject selected IRFrames from this text file (run, min/max orbit or unix time)"}});
74 options.push_back(
ConfigParamSpec{
"skip-skimmed-out-tf", VariantType::Bool,
false, {
"Do not process TFs with empty IR-Frame coverage"}});
75 options.push_back(
ConfigParamSpec{
"invert-irframe-selection", VariantType::Bool,
false, {
"Select only frames mentioned in ir-frames-file (skip-skimmed-out-tf applied to TF not selected!)"}});
77 options.push_back(
ConfigParamSpec{
"its-digits", VariantType::Bool,
false, {
"convert ITS clusters to digits"}});
78 options.push_back(
ConfigParamSpec{
"mft-digits", VariantType::Bool,
false, {
"convert MFT clusters to digits"}});
80 options.push_back(
ConfigParamSpec{
"emcal-decoded-subspec", VariantType::Int, 0, {
"subspec to use for decoded EMCAL data"}});
82 options.push_back(
ConfigParamSpec{
"timeframes-shm-limit", VariantType::String,
"0", {
"Minimum amount of SHM required in order to publish data"}});
83 options.push_back(
ConfigParamSpec{
"metric-feedback-channel-format", VariantType::String,
"name=metric-feedback,type=pull,method=connect,address=ipc://{}metric-feedback-{},transport=shmem,rateLogging=0", {
"format for the metric-feedback channel for TF rate limiting"}});
84 options.push_back(
ConfigParamSpec{
"combine-devices", VariantType::Bool,
false, {
"combine multiple DPL devices (entropy decoders)"}});
86 std::swap(workflowOptions, options);
98 std::string allowedDetectors =
"ITS,TPC,TRD,TOF,PHS,CPV,EMC,HMP,MFT,MCH,MID,ZDC,FT0,FV0,FDD,CTP";
108 ctfInput.
subspec = (
unsigned int)configcontext.
options().
get<
int>(
"ctf-data-subspec");
112 throw std::runtime_error(
"--ctf-input <file,...> is not provided");
135 ctfInput.
minSHM = std::stoul(configcontext.
options().
get<std::string>(
"timeframes-shm-limit"));
143 int rateLimitingIPCID = std::stoi(configcontext.
options().
get<std::string>(
"timeframes-rate-limit-ipcid"));
144 std::string chanFmt = configcontext.
options().
get<std::string>(
"metric-feedback-channel-format");
145 if (rateLimitingIPCID > -1 && !chanFmt.empty()) {
152 LOGP(fatal,
"One cannot provide --ir-frames-files and --run-time-span-file options simultaneously");
159 auto pipes = configcontext.
options().
get<std::string>(
"pipeline");
160 std::unordered_map<std::string, int> plines;
162 for (
auto& token : ptokens) {
163 auto split = token.find(
":");
164 if (
split == std::string::npos) {
165 throw std::runtime_error(
"bad pipeline definition. Syntax <processor>:<pipeline>");
168 token.erase(0,
split + 1);
171 if (token[
error] !=
'\0') {
172 throw std::runtime_error(
"Bad pipeline definition. Expecting integer");
179 std::vector<WorkflowSpec> decSpecsV;
182 auto entry = plines.find(
s.name);
183 size_t mult = (
entry == plines.end() ||
entry->second < 2) ? 1 :
entry->second;
184 if (mult > decSpecsV.size()) {
185 decSpecsV.resize(mult);
187 decSpecsV[mult - 1].push_back(
s);
191 if (ctfInput.
detMask[DetID::ITS]) {
195 if (ctfInput.
detMask[DetID::MFT]) {
199 if (ctfInput.
detMask[DetID::TPC]) {
202 if (ctfInput.
detMask[DetID::TRD]) {
205 if (ctfInput.
detMask[DetID::TOF]) {
208 if (ctfInput.
detMask[DetID::FT0]) {
211 if (ctfInput.
detMask[DetID::FV0]) {
214 if (ctfInput.
detMask[DetID::FDD]) {
217 if (ctfInput.
detMask[DetID::MID]) {
220 if (ctfInput.
detMask[DetID::MCH]) {
223 if (ctfInput.
detMask[DetID::EMC]) {
226 if (ctfInput.
detMask[DetID::PHS]) {
229 if (ctfInput.
detMask[DetID::CPV]) {
232 if (ctfInput.
detMask[DetID::ZDC]) {
235 if (ctfInput.
detMask[DetID::HMP]) {
238 if (ctfInput.
detMask[DetID::CTP]) {
242 bool combine = configcontext.
options().
get<
bool>(
"combine-devices");
244 for (
auto& decSpecs : decSpecsV) {
245 for (
auto&
s : decSpecs) {
250 std::vector<DataProcessorSpec> remaining;
251 if (decSpecsV.size() && decSpecsV[0].size()) {
252 specs.push_back(
specCombiner(
"EntropyDecoders", decSpecsV[0], remaining));
254 bool updatePipelines =
false;
255 for (
size_t i = 1;
i < decSpecsV.size();
i++) {
256 if (decSpecsV[
i].
size() > 1) {
257 specs.push_back(
specCombiner(fmt::format(
"EntropyDecodersP{}",
i + 1), decSpecsV[
i], remaining));
258 updatePipelines =
true;
259 pipes += fmt::format(
",EntropyDecodersP{}:{}",
i + 1,
i + 1);
261 for (
auto&
s : decSpecsV[
i]) {
266 for (
auto&
s : remaining) {
269 if (updatePipelines) {
274 return std::move(specs);
Convert CTF (EncodedBlocks) to CPV digit/channels strean.
Convert CTF (EncodedBlocks) to CTP digit stream.
Convert CTF (EncodedBlocks) to EMCAL digit/channels strean.
Convert CTF (EncodedBlocks) to FDD digit/channels strean.
Convert CTF (EncodedBlocks) to FT0 digit/channels strean.
Convert CTF (EncodedBlocks) to FV0 digit/channels strean.
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone Processing proc_rtc Replace constant variables static by constexpr expressions Compile RTC in deterministic with NO_FAST_MATH flags and GPUCA_DETERMINISTIC_MODE define Use RTC to optimize GPU code h configStandalone Processing proc_rtctech Use a file lock to serialize access to the cache folder int32_t
Convert CTF (EncodedBlocks) to HMP digit/tracklets stream.
char error[CURL_ERROR_SIZE]
Convert CTF (EncodedBlocks) to clusters streams.
Convert CTF (EncodedBlocks) to MCH {Digit,ROFRecord} stream.
Convert CTF (EncodedBlocks) to MID ROFRecords/ColumnData stream.
Definition of the Names Generator class.
Convert CTF (EncodedBlocks) to PHOS digit/channels strean.
Helper function to tokenize sequences and ranges of integral numbers.
Convert CTF (EncodedBlocks) to FT0 digit/channels strean.
Convert CTF (EncodedBlocks) to TRD digit/tracklets stream.
Convert CTF (EncodedBlocks) to ZDC BCData/ChannelData/OrbitData stream.
static void updateFromString(std::string const &)
Static class with identifiers, bitmasks and names for ALICE detectors.
static constexpr std::string_view NONE
keywork for no-detector
static constexpr std::string_view ALL
keywork for all detectors
static mask_t getMask(const std::string_view detList)
detector masks from any non-alpha-num delimiter-separated list (empty if NONE is supplied)
bool helpOnCommandLine() const
ConfigParamRegistry & options() const
void override(const char *key, ConfigValueType auto const &val) const
T get(const char *key) const
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
GLsizei const GLfloat * value
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt)
create a processor spec
framework::DataProcessorSpec getCTFReaderSpec(const o2::ctf::CTFReaderInp &inp)
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt)
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspecInp, unsigned int sspecOut=0, const std::string &ctfdictOpt="none")
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt)
create a processor spec
Defining ITS Vertex explicitly as messageable.
o2::framework::DataProcessorSpec specCombiner(std::string const &name, std::vector< DataProcessorSpec > const &speccollection, std::vector< DataProcessorSpec > &remaining)
std::vector< DataProcessorSpec > WorkflowSpec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt)
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt)
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt="none")
create a processor spec
framework::DataProcessorSpec getMFTEntropyDecoderSpec(int verbosity, bool doStag, bool getDigits, unsigned int sspec, const std::string &ctfdictOpt)
framework::DataProcessorSpec getITSEntropyDecoderSpec(int verbosity, bool doStag, bool getDigits, unsigned int sspec, const std::string &ctfdictOpt)
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, const char *specName, unsigned int sspec, const std::string &ctfdictOpt="none")
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt)
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt)
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt)
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt="none")
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt="none")
create a processor spec
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec, const std::string &ctfdictOpt)
create a processor spec
std::vector< std::string > split(const std::string &str, char delimiter=',')
std::string fileRunTimeSpans
std::string metricChannel
o2::detectors::DetID::mask_t detMask
bool allowMissingDetectors
bool invertIRFramesSelection
static std::string defaultIPCFolder()
static bool isITSStaggeringEnabled(o2::framework::ConfigContext const &cfgc)
static bool isMFTStaggeringEnabled(o2::framework::ConfigContext const &cfgc)
static void addConfigOption(std::vector< o2::framework::ConfigParamSpec > &opts)
static std::vector< std::string > tokenize(const std::string &src, char delim, bool trimToken=true, bool skipEmpty=true)