|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
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 = "" |
| 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:
| file | full path to the input raw file (.data for todo = 1 or 2; RAW ROOT file for todo = 0) |
| outfile | full path to the output file with detector digits; if empty, built as bmn_run<runId><_evXX_pXX><.compress>_digi.root |
| nEvents | number of events to process, 0 means all events |
| period | BM@N run period number, to pick up mapping and calibration files |
| todo | 0 - RAW_ROOT -> DIGI, 1 - RAW -> DIGI, 2 - RAW -> RAW_ROOT |
| doHoldRawRoot | if 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().
Referenced by write_raw_info().
| TString gRawRootFilePath = "" |
Definition at line 1 of file run_raw_bmn.C.
Referenced by run_raw_bmn(), and write_raw_info().