BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
run_raw_bmn.C File Reference

Go to the source code of this file.

Functions

void run_raw_bmn (TString file="", TString outfile="", Long_t nEvents=0, UInt_t period=8, UInt_t todo=1, Bool_t doHoldRawRoot=kTRUE)
 Converts and/or decodes BM@N raw data file to a file with detector digits.

Variables

TString gRawRootFilePath = ""

Function Documentation

◆ run_raw_bmn()

void run_raw_bmn ( TString file = "",
TString outfile = "",
Long_t nEvents = 0,
UInt_t period = 8,
UInt_t todo = 1,
Bool_t doHoldRawRoot = kTRUE )

The macro drives BmnRawDataDecoder through up to two steps:

  1. conversion of the binary .data file into an intermediate RAW ROOT file containing the electronics digits (ADC, TDC, ..., sync);
  2. decoding of that RAW ROOT file into detector digits using the mapping and calibration files selected for the given period, run and setup.
Parameters
filefull path to the input raw file (.data for todo = 1 or 2; RAW ROOT file for todo = 0)
outfilefull path to the output file with detector digits; if empty, built as bmn_run<runId><_evXX_pXX><.compress>_digi.root
nEventsnumber of events to process, 0 means all events
periodBM@N run period number, to pick up mapping and calibration files
todo0 - RAW_ROOT -> DIGI, 1 - RAW -> DIGI, 2 - RAW -> RAW_ROOT
doHoldRawRootif kFALSE, the intermediate RAW ROOT file is deleted after decoding (ignored when todo = 2)

<- Verbosity level: 0 - summary info on progress; 1 - event level, 2 - event objects level, 3 - full debug output

Definition at line 19 of file run_raw_bmn.C.

References BmnRawDataDecoder::ConvertRawToRoot(), TStopwatch::CpuTime(), BmnRawDataDecoder::CreateDecoder(), TString::Data(), BmnRawDataDecoder::DecodeDataToDigi(), TString::Format(), BmnRawDataDecoder::GetDecoder(), BmnDecoder::GetDigiFileName(), BmnDecoder::GetRootFileName(), BmnRawDataDecoder::GetRootFileName(), BmnDecoder::GetRunId(), gRawRootFilePath, kBC, kBMNERROR, kBMNSETUP, kBMNSUCCESS, kCSC, kDCH, kFHCAL, kGEM, kHGND, kHODO, kNDET, kSCWALL, kSiBT, kSILICON, kTOF1, kTOF701, kVSP, TStopwatch::RealTime(), BmnDecoder::SetApplyThreshold(), BmnRawDataDecoder::SetBmnSetup(), BmnDecoder::SetCSCMapping(), BmnRawDataDecoder::SetDecoderConfigFileName(), BmnRawDataDecoder::SetDetectorSetup(), BmnDecoder::SetFHCalCalibration(), BmnDecoder::SetFHCalMapping(), BmnDecoder::SetGemMapping(), BmnDecoder::SetHgndCalibration(), BmnDecoder::SetHgndMapping(), BmnDecoder::SetHodoMapping(), BmnDecoder::SetMSCMapping(), BmnDecoder::SetNdetCalibration(), BmnDecoder::SetNdetMapping(), BmnDecoder::SetScWallMapping(), BmnDecoder::SetSiBTMapping(), BmnDecoder::SetSiliconMapping(), BmnDecoder::SetTof400Mapping(), BmnDecoder::SetTof701Mapping(), BmnDecoder::SetTrigChannelMapping(), BmnDecoder::SetTrigPlaceMapping(), BmnDecoder::SetUseCalibFile(), BmnRawDataDecoder::SetVerbose(), TStopwatch::Start(), and TStopwatch::Stop().

Here is the call graph for this function:

Variable Documentation

◆ gRawRootFilePath

TString gRawRootFilePath = ""

Definition at line 1 of file run_raw_bmn.C.