BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
readSpillStat.C
Go to the documentation of this file.
1
2#include <TTimeStamp.h>
3
4#define PAD_WIDTH 3840
5#define PAD_HEIGHT 480
6/**
7 * readSpillStat
8 * Example of reading spill metadata
9 * @param fileName
10 */
11void readSpillStat(string fileName = "bmn_run7820_meta.root")
12{
13 if (fileName == "") {
14 cout << "File not specified!" << endl;
15 return;
16 }
17 FairLogger::GetLogger()->SetLogToScreen(true);
18 FairLogger::GetLogger()->SetLogScreenLevel("info"); // for info write "INFO"
19 const vector<string> evt_tr_names{ // "BT", "MBT", "CCT1", "CCT2"};
20 // "BT1", "MBT", "CCT1", "nFD"};
21 "BT'", "MBT", "CCT1", "nFD"};
22 //"BC0","pBT","BT","BC1","NIT","CCT1","MBT","BT1","CCT2","FHCal","BD_BA","nFD","CCT3","CCT4"};
23 BmnMetadataDecoder::ReadSpillStat(fileName, evt_tr_names);
24}
static BmnStatus ReadSpillStat(const string &FileName, const vector< string > &EvtTrNames={ "BT'", "MBT", "CCT1", "nFD"})
void readSpillStat(string fileName="bmn_run7820_meta.root")
readSpillStat Example of reading spill metadata