Skip to content
Snippets Groups Projects
Commit ed65dd09 authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau
Browse files

Fix/adapt to the new 16ch diamond while keeping old data support in par and macro files

- Fix comp order in param file to avoid needing a channel remapping 16ch Diam
- Set spill thr for corresponding runs in BMon unp macros (monitors)
parent c7ac897e
No related branches found
No related tags found
1 merge request!880Changes from mCBM 2022 prod to mCBM macros and parameters
mcbm20??/all_*.par mcbm20??/all_*.par
mcbm20??/core_dump* mcbm20??/core_dump*
mcbm20??/*.pdf mcbm20??/*.pdf
mcbm20??/*.png
mcbm20??/*.log
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
NrOfGdpbs: Int_t 4 NrOfGdpbs: Int_t 4
GdpbIdArray: Int_t \ GdpbIdArray: Int_t \
0xabf3 0xabf2 0xabf0 0xabf1 0xabf3 0xabf2 0xabf1 0xabf0
NrOfFeesPerGdpb: Int_t 10 NrOfFeesPerGdpb: Int_t 10
NrOfGet4PerFee: Int_t 8 NrOfGet4PerFee: Int_t 8
NrOfChannelsPerGet4: Int_t 4 NrOfChannelsPerGet4: Int_t 4
...@@ -14,7 +14,7 @@ NrOfRpc: Int_t \ ...@@ -14,7 +14,7 @@ NrOfRpc: Int_t \
RpcType: Int_t \ RpcType: Int_t \
99 -1 99 -1 99 -1 99 -1 99 -1 99 -1 99 -1 99 -1
RpcSide: Int_t \ RpcSide: Int_t \
0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0
ModuleId: Int_t \ ModuleId: Int_t \
0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1
NbMsTot: Int_t 100 NbMsTot: Int_t 100
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
NrOfGdpbs: Int_t 12 NrOfGdpbs: Int_t 12
GdpbIdArray: Int_t \ GdpbIdArray: Int_t \
0xabc0 0xabc1 0xabc2 0xabc3 0xabc4 0xabc5 0xabc6 0xabc7 0xabf3 0xabf2 0xabf0 0xabf1 0xabc0 0xabc1 0xabc2 0xabc3 0xabc4 0xabc5 0xabc6 0xabc7 0xabf3 0xabf2 0xabf1 0xabf0
NrOfFeesPerGdpb: Int_t 10 NrOfFeesPerGdpb: Int_t 10
NrOfGet4PerFee: Int_t 8 NrOfGet4PerFee: Int_t 8
NrOfChannelsPerGet4: Int_t 4 NrOfChannelsPerGet4: Int_t 4
...@@ -14,7 +14,7 @@ NrOfRpc: Int_t \ ...@@ -14,7 +14,7 @@ NrOfRpc: Int_t \
RpcType: Int_t \ RpcType: Int_t \
0 0 0 0 2 2 0 0 0 0 0 0 9 9 6 9 99 -1 99 -1 99 -1 99 -1 0 0 0 0 2 2 0 0 0 0 0 0 9 9 6 9 99 -1 99 -1 99 -1 99 -1
RpcSide: Int_t \ RpcSide: Int_t \
0 1 0 1 0 1 0 1 0 1 0 1 2 2 2 0 0 0 0 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 2 2 2 0 0 0 0 0 0 0 0 0
ModuleId: Int_t \ ModuleId: Int_t \
0 0 1 1 0 0 2 2 3 3 4 4 0 -1 0 1 0 -1 0 -1 0 -1 0 -1 0 0 1 1 0 0 2 2 3 3 4 4 0 -1 0 1 0 -1 0 -1 0 -1 0 -1
NbMsTot: Int_t 100 NbMsTot: Int_t 100
......
...@@ -92,7 +92,7 @@ void run_unpack_online_bmon(std::vector<std::string> publisher = {"tcp://localho ...@@ -92,7 +92,7 @@ void run_unpack_online_bmon(std::vector<std::string> publisher = {"tcp://localho
bmonconfig = std::make_shared<CbmBmonUnpackConfig>("", runid); bmonconfig = std::make_shared<CbmBmonUnpackConfig>("", runid);
if (bmonconfig) { if (bmonconfig) {
// bmonconfig->SetDebugState(); // bmonconfig->SetDebugState();
bmonconfig->SetDoWriteOutput(); // bmonconfig->SetDoWriteOutput();
// bmonconfig->SetDoWriteOptOutA("CbmBmonErrors"); // bmonconfig->SetDoWriteOptOutA("CbmBmonErrors");
std::string parfilesbasepathBmon = Form("%s/macro/beamtime/mcbm2022/", srcDir.Data()); std::string parfilesbasepathBmon = Form("%s/macro/beamtime/mcbm2022/", srcDir.Data());
bmonconfig->SetParFilesBasePath(parfilesbasepathBmon); bmonconfig->SetParFilesBasePath(parfilesbasepathBmon);
...@@ -100,6 +100,10 @@ void run_unpack_online_bmon(std::vector<std::string> publisher = {"tcp://localho ...@@ -100,6 +100,10 @@ void run_unpack_online_bmon(std::vector<std::string> publisher = {"tcp://localho
bmonconfig->SetSystemTimeOffset(-1220); // [ns] value to be updated bmonconfig->SetSystemTimeOffset(-1220); // [ns] value to be updated
/// Enable Monitor plots /// Enable Monitor plots
bmonconfig->SetMonitor(GetTofMonitor(outfilename, true)); bmonconfig->SetMonitor(GetTofMonitor(outfilename, true));
if (2337 <= runid) {
bmonconfig->GetMonitor()->SetSpillThreshold(250);
bmonconfig->GetMonitor()->SetSpillThresholdNonPulser(100);
}
} }
// ------------- // -------------
...@@ -117,10 +121,10 @@ void run_unpack_online_bmon(std::vector<std::string> publisher = {"tcp://localho ...@@ -117,10 +121,10 @@ void run_unpack_online_bmon(std::vector<std::string> publisher = {"tcp://localho
// ----- CbmSourceTsArchive ------------------------------------------- // ----- CbmSourceTsArchive -------------------------------------------
auto source = new CbmSourceTsArchive(publisher); auto source = new CbmSourceTsArchive(publisher);
auto unpack = source->GetRecoUnpack(); auto unpack = source->GetRecoUnpack();
unpack->SetDoPerfProfiling(doPerfProfiling); //unpack->SetDoPerfProfiling(doPerfProfiling);
unpack->SetOutputFilename(perfProfFileName); //unpack->SetOutputFilename(perfProfFileName);
// Enable full time sorting instead sorting per FLIM link // Enable full time sorting instead sorting per FLIM link
unpack->SetTimeSorting(true); //unpack->SetTimeSorting(true);
unpack->SetMonitoringOnly(true); unpack->SetMonitoringOnly(true);
if (bmonconfig) unpack->SetUnpackConfig(bmonconfig); if (bmonconfig) unpack->SetUnpackConfig(bmonconfig);
...@@ -217,8 +221,8 @@ std::shared_ptr<CbmTofUnpackMonitor> GetTofMonitor(std::string treefilename, boo ...@@ -217,8 +221,8 @@ std::shared_ptr<CbmTofUnpackMonitor> GetTofMonitor(std::string treefilename, boo
return monitor; return monitor;
} }
void run_unpack_online_bmon(std::string publisher = "tcp://localhost:5556", Int_t serverHttpPort = 8080, void run_unpack_online_bmon(std::string publisher = "tcp://localhost:5556", UInt_t runid = 1905,
Int_t serverRefreshRate = 100, std::int32_t nevents = -1, UInt_t runid = 1905, Int_t serverHttpPort = 8080, Int_t serverRefreshRate = 10, std::int32_t nevents = -1,
const char* setupName = defaultSetupName, std::string outpath = "data/") const char* setupName = defaultSetupName, std::string outpath = "data/")
{ {
std::vector<std::string> vPublisher = {publisher}; std::vector<std::string> vPublisher = {publisher};
......
...@@ -113,6 +113,10 @@ void run_unpack_tsa_bmon(std::vector<std::string> infile = {"test.tsa"}, UInt_t ...@@ -113,6 +113,10 @@ void run_unpack_tsa_bmon(std::vector<std::string> infile = {"test.tsa"}, UInt_t
bmonconfig->SetSystemTimeOffset(-1220); // [ns] value to be updated bmonconfig->SetSystemTimeOffset(-1220); // [ns] value to be updated
/// Enable Monitor plots /// Enable Monitor plots
bmonconfig->SetMonitor(GetTofMonitor(outfilename, true)); bmonconfig->SetMonitor(GetTofMonitor(outfilename, true));
if (2337 <= runid) {
bmonconfig->GetMonitor()->SetSpillThreshold(250);
bmonconfig->GetMonitor()->SetSpillThresholdNonPulser(100);
}
} }
// ------------- // -------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment